[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
- Update the
cdmcfparserversion.py
file with the new version:
version = '2.0.0'
- Make sure pandoc is installed as well as pypandoc
- 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/ cdmcfparser
- Check the installed version
cd ~/cdm-flowparser/tests
./ut.py
cd ~/cdm-flowparser/utils
./speed_test.py
- Uninstall the pypitest version
pip uninstall cdmcfparser
- Upload to pypy
python setup.py sdist upload
- Make sure it looks all right at pypi
- Install it from pypi
pip install cdmcfparser
- Check the installed version
cd ~/cdm-flowparser/tests
./ut.py
cd ~/cdm-flowparser/utils
./speed_test.py
- Create an annotated tag
git tag -a 2.0.0 -m "Release 2.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