Making an incremental release

The package is released but that is not the end of the story. Very soon, you will need to make changes to the code and make the newer version available again. In this section, we will learn how to submit incremental patches to an already deployed distribution.

Packaging and uploading the new version

Preparing for the new release is pretty simple. Just update the version number to, for instance, 2.0.1 in the setup.py file. After making this change, run the earlier command that creates a source distribution and uploads the package in one go:

$ python setup.py sdist upload -r pypitest

The incremental release of v2.0.1 will now be available on the PyPI test repository.

Upgrading the installed version

If the previous version ...

Get Learning Python Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.