Releasing thriftcli is rather straightforward:
- Ensure you are using the correct virtualenv, and that you are able to run thriftcli from source
- Ensure you have PyPI account, and is a maintainer for thriftcli
- Do a
rm -rf dist
to clear out your dist dir - Edit
setup.py
, bumping up the version, and then merge it - Go to Github, and create a new release. Run
git log tag1..tag2
to put relevant info in the release notes. - Install Twine:
pip install twine
- Run
python setup.py sdist bdist_wheel
. Check that files are inside thedist
dir. - Do a
tar tzf dist/thriftcli-VERSION.tar.gz
and check that the files are there. - Do a
twine check dist/*
. It should pass, warnings are ok. - Run
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
if you have access to test pypi. - Release it!
twine upload dist/*
- Install it!
pip install thriftcli==VERSION
- Run it by hitting an actual server.
- Done!
The above is based on https://realpython.com/pypi-publish-python-package/.