-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Matthew Gilbert edited this page Aug 23, 2018
·
3 revisions
- Ensure working directory is clean
- Check pep8:
make lint
- Update CHANGELOG with summary, commit
- 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
- 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'
- 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:
- Done automatically by TravisCI on a tag