anticipy icon indicating copy to clipboard operation
anticipy copied to clipboard

CD to pypi

Open ibegleris opened this issue 6 years ago • 1 comments

Use Travis for continius deployment to pypi.

ibegleris avatar Nov 21 '18 17:11 ibegleris

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

capelastegui avatar Nov 29 '18 11:11 capelastegui