Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Latest commit

 

History

History
82 lines (58 loc) · 2.19 KB

release.rst

File metadata and controls

82 lines (58 loc) · 2.19 KB

Releasing a new version

Releasing a new version of spinrewriter involves the following steps:

# Create a git tag for the release. # Push the git tag upstream to GitHub. # Generate a distribution file for the package. # Upload the generated package to Python Package Index (PyPI).

Checklist

Before every release make sure that:

  1. You have documented your changes in the HISTORY.rst file.
  2. You have modified the version identifier in the version.txt to reflect the new release.
  3. The package description (generated from README.rst and others) renders correctly by running bin/longtest.
  4. You have committed all changes to the git repository and pushed them upstream.
  5. You have the working directory checked out at the revision you wish to release.

Actions

For help with releasing we use jarn.mkreleaser. It's included in the buildout.cfg and should already be installed in your local bin by:

$ bin/mkrelease -d pypi -pq ./

Note

In order to push packages to PyPI you need to have the appropriate access rights to the package on PyPI and you need to configure your PyPI credentials in the ~/.pypirc file, e.g.:

[distutils]
index-servers =

pypi

[pypi] username = fred password = secret

Example

In the following example we are releasing version 0.1 of spinrewriter. The package has been prepared so that version.txt contains the version 0.1, this change has been committed to git and all changes have been pushed upstream to GitHub:

# Check that package description is rendered correctly
$ bin/longtest

# Make a release and upload it to PyPI
$ bin/mkrelease -d pypi -pq ./
Releasing spinrewriter 0.1
Tagging spinrewriter 0.1
To git@github.com:niteoweb/spinrewriter.git
* [new tag]         0.1 -> 0.1
running egg_info
running sdist
warning: sdist: standard file not found: should have one of README, README.txt
running register
Server response (200): OK
running upload
warning: sdist: standard file not found: should have one of README, README.txt
Server response (200): OK
done