Skip to main content

Adds twine_check and twine_upload commands to setuptools.

Project description

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.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setuptools_twine-0.1.2-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: setuptools-twine-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for setuptools-twine-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6b7522fe174ec355441b42a6791f2338a8e85b39a825bbc5e6cec1233ae493d7
MD5 97f816b83e610637e66d30aaf6770d55
BLAKE2b-256 b85d02c65913727601f7639c9b3b0e5575dea59b63d614931d9c15c7476a0355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: setuptools_twine-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for setuptools_twine-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f39d6a0f620b8cbe16a052cef49945ab0dec324457370ba99fbebc3837cc0d93
MD5 7b2939edbdd42ec92d00637f28f8277d
BLAKE2b-256 da1f4083919ba9ccce701bcf4ee381d561b78cea92744c6c266a24a93af314b8

See more details on using hashes here.

Supported by

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