Skip to content

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.

  1. Open setup.py and change the version, e.g., version='1.0.3'
  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 newsplease 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
Clone this wiki locally