-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Preparing an Add on release
Primož Godec edited this page Mar 7, 2018
·
16 revisions
-
Make a PyPI and PyPI Test account if you do not have them yet and ask an administrator for permission to upload on PyPI.
-
Make sure that you have your usernames and passwords for PyPI stored in the
~/.pypirc
file which should look like this:[distutils] index-servers= pypi testpypi [testpypi] repository: https://test.pypi.org/legacy/ username: <your username> password: <your password> [pypi] username: <your username> password: <your password>
-
Install Twine:
pip install twine
if you do not have it installed yet.
-
Change a version in a
setup.py
-
Build a documentation
cd doc make htmlhelp cd ..
-
Run
python setup.py sdist python setup.py bdist_wheel
-
Test release with installing
dist/<filename>.tar.gz
:pip install <path to the addon>/dist/<filenam>.tar.gz
-
Make a release:
twine upload dist/<latest tar.gz>
-
Make new tag on the Github:
git add setup.py git commit -m "Release <release number>" git push upstream master git tag <release number> git push upstream --tags
-
For add-ons available at conda-forge: Make a pull request on the appropriate conda-forge repository.