anticipy
anticipy copied to clipboard
CD to pypi
Use Travis for continius deployment to pypi.
For reference, here are the commands used for a release:
# Release to test.pypi.org
# From anticipy root folder
rm dist/* || true
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Will be prompted for login, password
After doing this, we need to test pip install from test.pypi:
# After activating virtualenv:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple anticipy==[current_version]
# Repeat for python 2.7, 3
If this works, we can repeat the process in pypi.org
# Release to pypi.org
# From anticipy root folder
rm dist/* || true
python setup.py sdist bdist_wheel
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
# Will be prompted for login, password
And test by running pip install:
# After activating virtualenv:
pip install anticipy==[current_version]
# Repeat for python 2.7, 3