Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.34 KB

UPLOAD.md

File metadata and controls

58 lines (42 loc) · 1.34 KB

How To Upload A New Version of rtwo

Uploading a new version of rtwo to the pypi can be tough. Here are some pointers.

pip install twine and wheel

pip install twine wheel

Keybase is required

This document does NOT cover:

  • Going to 'keybase.io'
  • Creating a Keybase Account
  • Installing Keybase CLI
  • calling 'keybase login'

But if you follow those steps above you will be ready to move forward.

But First, Update the Version!

Updating the version is CRITICAL when you make changes, because other projects may depend on specific solutions from older versions of rtwo.

Edit the rtwo/version.py module and change the appropriate integer in the VERSION line to reflect the changes made.

VERSION = (major_change, minor_change, patch_change, 'dev', 0)

Create New Distributables

python setup.py sdist bdist_wheel

Sign packages (KEYBASE login required)

cd dist/
gpg --no-use-agent --detach-sign -a rtwo-$VERSION-py2-none-any.whl
gpg --no-use-agent --detach-sign -a rtwo-$VERSION.tar.gz
cd ..

Upload packages (PYPI login required)

twine upload dist/*
# No longer need these files after uploading
rm dist/rtwo-$VERSION

Installing New Version On Dependant Machines

pip install rtwo==$VERSION

More Information

See links below: