Skip to main content

Adds twine_check and twine_upload commands to setuptools.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setuptools-twine-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

setuptools_twine-0.1.3-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file setuptools-twine-0.1.3.tar.gz.

File metadata

  • Download URL: setuptools-twine-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for setuptools-twine-0.1.3.tar.gz
Algorithm Hash digest
SHA256 138d3d099d7033013f8e61eafbe5b041671deb6bf072362a109cf674d10ba457
MD5 763f747feaff721e4af7680b3627b02f
BLAKE2b-256 d7618f90b17afe9327d12535e44b27ba3bcd1b1d3924f053533fe59a93b463c6

See more details on using hashes here.

File details

Details for the file setuptools_twine-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: setuptools_twine-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for setuptools_twine-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c0b4bf3cbc70ce19c51390ce4840c395d78533ea22bb76bfe373c414594eee6e
MD5 db07483a31ac6bde691f4fb78c5dbfae
BLAKE2b-256 96cab9e7053fd1f4c3dc749a9261a64c96d152b3fe19d128eba12208c84f711a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page