Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.57 KB

RELEASE.md

File metadata and controls

73 lines (51 loc) · 1.57 KB

Release Instructions

These build and release instructions are intended for the maintainers and future maintainers of this project.

Preparing a new version

  • a version update in packet/__init__.py
  • Update CHANGELOG.md with the new release notes
  • Add a stub for the next set of Unreleased changes
  • Create a PR with these changes
  • Merge

Tagging and Building

Pull down the merged changes:

git fetch origin
git checkout origin/master

Tag the commit:

git tag -a vAA.BB.CC origin/master -m vAA.BB.CC # use -s if gpg is available

Build the package using setuptools:

python setup.py sdist bdist_wheel

Publishing

Make sure you have ~/.pypirc correctly populated, as of today should look something like:

[distutils]
index-servers =
    pypi
    testpypi

[pypi]
username: username-here
password: password-here

[testpypi]
repository: https://test.pypi.org/legacy/
username: username-here (not necessarily same as real pypi)
password: password-here (not necessarily same as real pypi)

If you are using a token, the username is __token__. Make sure you have been added to the project and the test project.

Then upload using twine to testpypi first:

twine upload -r testpypi dist/*

If everything looks good, push the tag to GH, and then push to the real pypi:

git push origin --tags vAA.BB.CC
twine upload dist/*

Congratulations, you published packet-python, 🙌!