|
|
|
|
|
The following steps need to be performed to publish a new version to PyPI.
|
|
|
1. Open setup.py and change the version, e.g., version='0.1.1'
|
|
|
2. If you added new, non-Python files to the project that need to be distributed as well, e.g., configuration files and DB init scripts, add them to MANIFEST.in Note: They need to be within the navipy subfolder, otherwise the packaged code will not work.
|
|
|
3. Open a terminal and go into the parent of the project's root dir
|
|
|
4. python setup.py sdist
|
|
|
5. Check the resulting files, especially the egg file: are all the files contained?
|
|
|
6. If everything is ok, upload the new version to PyPI: python setup.py sdist upload
|
|
|
|
|
|
Note: You need to have an account that is registered as "Admin" for the news-please package at PyPi. After you have registered a new account and have been added to the project as an "Admin", you also need to setup the ~/.pypirc file, see here. |