[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
- Update ChangeLog
- Make sure git clone is clean
- Edit
codimension/cdmverspec.py
setting the new version - Run
python setup.py sdist
- Make sure that
tar.gz
in thedist
directory has all the required files - Upload to pypitest
python setup.py sdist upload -r pypitest
- Make sure it looks all right at pypitest
- Install it from pypitest
pip install --index-url https://test.pypi.org/simple/ codimension
- Check the installed version
codimension &
- Uninstall the pypitest version
pip uninstall codimension
- Upload to pypy
python setup.py sdist upload
- Make sure it looks all right at pypi
- Install it from pypi
pip install codimension
- Check the installed version
codimension &
- Create an annotated tag
git tag -a 4.0.0 -m "Release 4.0.0"
git push --tags
- Publish the release on github at releases
# Install a develop version (create links)
python setup.py develop
# Uninstall the develop version
python setup.py develop --uninstall