-
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.
$ sudo apt-get install graphviz
$ sudo apt-get install texlive
$ doxygen docs/doxygen_conf_pyclustering
$ cd ../
$ mkdir pyclustering-website
$ cd pyclustering-website
$ git clone https://github.com/pyclustering/pyclustering.github.io.git .
$ cp -r ../pyclustering/doxygen_docs docs/<library_version>
$ git commit . -m "[docs] Upload documentation for library version <library_version>."
$ git push
- 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