-
-
Notifications
You must be signed in to change notification settings - Fork 429
PyPI How to upload a new version
Felix Hamborg edited this page Dec 18, 2016
·
3 revisions
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.
- Open
setup.py
and change the version, e.g.,version='1.0.3'
- 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 thenewsplease
subfolder, otherwise the packaged code will not work. - Open a terminal and go into the parent of the project's root dir
python setup.py sdist
- Check the resulting files, especially the egg file: are all the files contained?
- If everything is ok, upload the new version to PyPI:
python setup.py sdist upload