distutils-twine

Use Twine to make a setup.py release command.


License
MIT
Install
pip install distutils-twine==3.0.0

Documentation

DEPRECATED: This is unmaintained. Use a PEP 517 frontend instead.

I maintain Bork, but there are others. Bork was specifically designed to handle the entire development, build, and release process without tying itself to distutils.

If you use distutils_twine and need help migrating to Bork, please open an issue on the Bork repo.


distutils_twine

A tiny library that lets you use python3 setup.py release instead of twine upload dist/*.

Setup

If you use setup.cfg, add the following to it:

[options]
setup_requires =
    twine
    wheel
    distutils_twine~=3.0

[options.entry_points]
distutils.commands =
    release = distutils_twine:release

If you use setup.py exclusively, add the following to it:

import setuptools
from distutils_twine import release

setuptools.setup(cmdclass={"release": release})