-
Notifications
You must be signed in to change notification settings - Fork 248
Release PyPi Instruction
Andrei Novikov edited this page Sep 4, 2019
·
21 revisions
Instruction to release pyclustering library to PyPi repository:
- Check version in setup.py and update it if it is required.
- Check DOI link (README.rst, PKG-INFO.rst) and update it if it is required.
- Check description PKG-INFO.rst and update it if it is required.
- Generate doxygen documentation and deploy it to github pages.
- Add core binaries to the library from cloud.
- Create pypi file description:
$ touch ~/.pypirc
$ nano ~/.pypirc
- Add following description:
[distutils]
index-servers=
testpypi
pypi
[testpypi]
repository = https://test.pypi.org/legacy/
username = <username>
password = <password>
[pypi]
repository = https://upload.pypi.org/legacy/
username = <username>
password = <password>
- Check setup file:
$ python3 setup.py check -r -s
- Create distributive:
$ python3 setup.py sdist
- Upload to test repository:
$ twine upload dist/* -r testpypi
- If everything is ok on test page then upload it to legacy:
$ twine upload dist/* -r pypi