1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
DISTRO="cykhash-2.0.0.tar.gz"
cd ..
# clean up
rm -rf dist
pip uninstall cykhash
# create sdist
python setup.py sdist
# test:
cd dist
pip install "$DISTRO"
cd ../tests
sh run_unit_tests.sh
sh run_doctests.sh
#clean up
pip uninstall cykhash
# test distro
cd ..
twine check dist/"$DISTRO"
# test upload to test
twine upload --repository-url https://test.pypi.org/legacy/ dist/"$DISTRO"
cd tests
sh test_install.sh from-test-pypi
cd ..
# upload to pypi
twine upload dist/"$DISTRO"
cd tests
sh test_install.sh from-pypi
|