-
Notifications
You must be signed in to change notification settings - Fork 151
Creating a new release (GitHub and PyPi)
Kent Inverarity edited this page Feb 2, 2016
·
11 revisions
- Ensure you are on master:
git checkout master
- Make sure there are no staged changes.
- Ensure tests are passing (local and Travis CI):
py.test
- Increment
__version__
in las.py - Find changes since last version release
- Summarise these changes in CHANGELOG.md
- Commit with a message e.g.
v1.3
- Tag with the same message e.g.
git tag v1.3
- Push to github - first the commit:
git push github master
- ..and then push the new tag:
git push github tag v1.3
- Create a universal wheel:
python setup.py bdist_wheel --universal
- This will put a new wheel file in
dist/
- Upload to PyPI with:
twine upload -u USERNAME -p PASSWORD dist/blah_vmajor.minor.wheel
- Create a new GitHub release - https://github.com/kinverarity1/lasio/releases/new - select the tag, and copy the CHANGELOG text in.
- Copy the wheel file into the release page.
- Publish the release.
That's it.