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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| setuptools-twine-0.1.3.tar.gz | 4.1 kB | Without provenance | Details for setuptools-twine-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setuptools_twine-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for setuptools_twine-0.1.3-py2.py3-none-any.whl |
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
|
Security for setuptools-twine 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.