setuptools-download
setuptools plugin to download external files
usage
this plugin is intended to be used through setuptools declarative metadata:
the value of download_* is an ini-like string with the section being the
filename.
file settings
url(required): url to download the file fromsha256(required): checksum of the downloaded filegroup+marker(optional or required together)group: a name for a mutually exclusive groupmarker: a PEP 508 marker expression (can be specified multiple times)- only supports:
os_name,sys_platform,platform_machine
- only supports:
extract+extract_path(optional or required together)extract: how to extract the downloaded file (ziportar)extract_path: path to extract from archive
example
[options]
setup_requires = setuptools-download
[setuptools_download]
download_data_files =
[share/example/data.txt]
url = https://example.com/data.txt
sha256 = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
[share/example/embedded]
url = https://example.com/release-1.0.tar.gz
sha256 = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
extract = tar
extract_path = release-v1.0/share/example/embedded
download_scripts =
[example-tool]
group = example-tool-binary
marker = sys_platform == "linux" and platform_machine == "x86_64"
url = https://example.com/example-tool-linux-x86-64
sha256 = ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
[example-tool]
group = example-tool-binary
marker = sys_platform == "darwin" and platform_machine == "x86_64"
marker = sys_platform == "darwin" and platform_machine == "arm64"
url = https://example.com/example-tool-darwin-x86-64
sha256 = ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
[example-tool.exe]
group = example-tool-binary
marker = sys_platform == "win32" and platform_machine == "AMD64"
url = https://example.com/example-tool-win32.exe
sha256 = eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Metadata
Release files for setuptools-download 1.1.0
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_download-1.1.0.tar.gz | 5.8 kB | Without provenance | Details for setuptools_download-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setuptools_download-1.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for setuptools_download-1.1.0-py2.py3-none-any.whl |
Total release size: 12.1 kB
Release files / setuptools_download-1.1.0.tar.gz
| Download URL | setuptools_download-1.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f91f1b6b73104b064519759688d2ccfb37e955a5e475d64526474f248f66a7b6
|
|
BLAKE2b-256 checksum How to use checksums |
7f63a8dd51f599b21cbd34e09485e6086e9b1aa9d0b0f6b749b7e4efab8f3727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.12
|
Release files / setuptools_download-1.1.0-py2.py3-none-any.whl
| Download URL | setuptools_download-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f11d92f40622df97390e249316366f868cbcdd1100a7569d0f22973e405028f7
|
|
BLAKE2b-256 checksum How to use checksums |
0d1ab49efff1c04e5aa0dd09415d0f0c0a2d75c7735e78b0fa18a7864d3d260c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.12
|
Security for setuptools-download 1.1.0
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.