These build and release instructions are intended for the maintainers and future maintainers of this project.
- 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
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
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
, 🙌!