Skip to content

Latest commit

 

History

History
90 lines (75 loc) · 1.84 KB

NOTES.md

File metadata and controls

90 lines (75 loc) · 1.84 KB

How to prepare a release

Prepare the pypi config file ~/.pypirc:

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository=https://pypi.python.org/pypi
username=<user>
password=<password>

[pypitest]
repository=https://test.pypi.org/legacy/
username=<user>
password=<password>

Note: the user name and password are open text, so it is wise to change permissions:

chmod 600 ~/.pypirc

Release Steps

  1. Update ChangeLog
  2. Make sure git clone is clean
  3. Edit codimension/cdmverspec.py setting the new version
  4. Run
python setup.py sdist
  1. Make sure that tar.gz in the dist directory has all the required files
  2. Upload to pypitest
python setup.py sdist upload -r pypitest
  1. Make sure it looks all right at pypitest
  2. Install it from pypitest
pip install --index-url https://test.pypi.org/simple/ codimension
  1. Check the installed version
codimension &
  1. Uninstall the pypitest version
pip uninstall codimension
  1. Upload to pypy
python setup.py sdist upload
  1. Make sure it looks all right at pypi
  2. Install it from pypi
pip install codimension
  1. Check the installed version
codimension &
  1. Create an annotated tag
git tag -a 4.0.0 -m "Release 4.0.0"
git push --tags
  1. Publish the release on github at releases

Development

# Install a develop version (create links)
python setup.py develop

# Uninstall the develop version
python setup.py develop --uninstall

Links

Peter Downs instructions

Ewen Cheslack-Postava instructions