Skip to content

Instantly share code, notes, and snippets.

@reustonium
Last active September 23, 2015 19:28
Show Gist options
  • Save reustonium/d54bc6d9f3a47a15395b to your computer and use it in GitHub Desktop.
Save reustonium/d54bc6d9f3a47a15395b to your computer and use it in GitHub Desktop.
PyPi Release Checklist
  • Update HISTORY.rst

  • Install the package for local development:python setup.py develop

  • Run the tests:python setup.py test

  • Commit the changes:

git add .
git commit -m "Release 0.1.1"
  • Bump Version bumpversion minor

  • Build the source distribution:python setup.py sdist

  • Test that the sdist installs:

conda create -n tmp python=3
activate tmp
cd dist
unzip my_project-0.1.1.tar.gz
cd my_project-0.1.1/
python setup.py install
<try out my_project>
deactivate
conda env remove -n tmp
  • Test that it pip installs:
conda create -n tmp
activate tmp
pip install my_project
<try out my_project>
deactivate
conda env remove -n tmp

Push it

  • Push: git push
  • Push tags: git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment