Skip to content
Matthew Gilbert edited this page Aug 23, 2018 · 3 revisions

Release Notes

  • Ensure working directory is clean
  • Check pep8: make lint
  • Update CHANGELOG with summary, commit

Test

  • Create a test environment, e.g.:
conda create -n "mapping-test" pandas numpy pytest pytest-cov pip
source activate mapping-test
pip install cvxpy
  • Run tests: make test

Test PyPI

  • Bump __version__ and append -dev in _version.py
  • Test submission to PyPI: python setup.py sdist upload -r pypitest
  • Pip install package into conda environment, e.g. pip install -i https://testpypi.python.org/pypi mapping
  • Remove -dev from __version__ in _version.py
  • Commit: git commit -m 'Updated _version.py for upcoming release'

Tag and deploy

  • Make an empty commit, e.g. git commit --allow-empty -m 'RLS: v0.1'
  • Tag the commit using an annotated tag, e.g. git tag -a v0.1.1 -m "Version 0.1.1"
  • Push commits git push
  • Push the tag! git push --tags
  • Create new release at https://github.com/matthewgilbert/mapping/releases, copy CHANGELOG into release notes
  • Release to PyPI:

PyPI submission

  • Done automatically by TravisCI on a tag
Clone this wiki locally