Skip to content

Commit

Permalink
issue 25: PyPI script (#26)
Browse files Browse the repository at this point in the history
* .ci/pypi.sh

While not part of continuous integration, it is a helper script for me to take a [release](https://github.com/al-niessner/DAWGIE/releases), build it, then install it at PyPI for those using DAWGIE.
  • Loading branch information
al-niessner authored Jul 28, 2019
1 parent 4d2808b commit 1b47f46
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .ci/pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ fi

# sudo pip3 install -U twine wheel setuptools
export DAWGIE_VERSION=$1
wdir=$(mkdtemp -d)
bdir=$(pwd)
wdir=$(mktemp -d)
echo "tempdir: ${wdir}"
cd $wdir
wget https://github.com/al-niessner/DAWGIE/archive/${1}.tar.gz
tar --strip-components=1 -xzf ${1}.tar.gz
cd Python
cp ../README.md README.md
cat ../COPYRIGHT.txt > LICENSE
Expand All @@ -55,7 +59,6 @@ echo "" >> LICENSE
cat ../LICENSE.txt >> LICENSE
python3 setup.py sdist bdist_wheel
twine check dist/*
#twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
#twine upload --verbose dist/*
cd -
rm -rf $wdir
twine upload --verbose dist/*
cd ${bdir}
rm -rf ${wdir}

0 comments on commit 1b47f46

Please sign in to comment.