Skip to main content

Build Status PyPI Version Python Versions License

setuptools-twine

This package adds twine_check and twine_upload commands to setuptools. These commands are equivalent to running twine check or twine upload, but always operate on the latest source distribution and wheel generated by setup.py sdist and setup.py bdist_wheel.

Basic Usage

Install with pip:

pip install setuptools-twine

If you only want to simply your workflow that currently uses twine check or twine upload, you can invoke the setup.py commands manually:

python setup.py twine_check
python setup.py twine_upload

Note that you no longer need to specify the dist/* files as with twine check or twine upload; they are determined automatically from the results of the sdist and bdist_wheel commands.

Advanced Usage

If you’re a package author or maintainer looking to automate even more, you can add setuptools-twine as a setup_requires dependency in your project’s setup.cfg:

[options]
setup_requires =
    setuptools-twine

Then, create an alias command to encapsulate multiple setup.py commands in one:

[aliases]
pypi_upload = clean sdist bdist_wheel twine_check twine_upload

Now, you can build, check, and upload with a single command:

python setup.py pypi_upload

Roadmap

  • Allow passing additional options to twine_check and twine_upload commands.

  • Allow using only source distributions or wheels, instead of both.

  • Allow uploading other output formats in addition to source distributions and wheels.

Release files for setuptools-twine 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setuptools-twine 0.1.3
File Size Uploaded
setuptools-twine-0.1.3.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for setuptools-twine 0.1.3
File Interpreter ABI Platform
setuptools_twine-0.1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.6 kB

Release files / setuptools-twine-0.1.3.tar.gz

Download URL setuptools-twine-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
138d3d099d7033013f8e61eafbe5b041671deb6bf072362a109cf674d10ba457
BLAKE2b-256 checksum
How to use checksums
d7618f90b17afe9327d12535e44b27ba3bcd1b1d3924f053533fe59a93b463c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

Release files / setuptools_twine-0.1.3-py2.py3-none-any.whl

Download URL setuptools_twine-0.1.3-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c0b4bf3cbc70ce19c51390ce4840c395d78533ea22bb76bfe373c414594eee6e
BLAKE2b-256 checksum
How to use checksums
96cab9e7053fd1f4c3dc749a9261a64c96d152b3fe19d128eba12208c84f711a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page