pre-commit-download
Custom PEP 517 compatible build-backend based on setuptools.build_meta for
downloading and installing single-file binaries during building wheel.
Usage
All binary requirements must be defined in the pyproject.toml.
Schema:
[build-system]
requires = [
"pre-commit-download~=0.1.0",
]
build-backend = "pre_commit_download.hooks"
[tool.pre-commit-download]
install_root = "src/<module_name>/bin" # optional, defaults to **/<module_name>
[tool.pre-commit-download.binaries]
"<executable-name>" = [
{sys_platform = "<sys.platform>", platform_machine = "<platform.machine()>", extract_method = "<tarfile|zipfile>", extract_path = "<executable-name-v1.0.0/executable-name>", exec_suffix="<str>", url = "https://..."},
{...},
]
"<executable-name>" = [
{...},
]
Required parameters:
<executable-name>- the name of executable file(s) without extensionsys_platform- compares tosys.platformplatform_machine- compares toplatform.machine()url- source URL
Optional parameters:
install_root- a relative path from the project root there executables should be installed, default to the client's module nameexec_suffix- optional, a platform specified executable suffix (likeexe)extract_method- optional, an archive unpacking provider (tarfileorzipfile); not required ifurlpoints to unpacked fileextract_path- optional, a relative path to the executable inside the archive, defaults to<executable-name>+<exec_suffix>(if defined); not required ifurlpoints to unpacked file
Metadata
Release files for pre-commit-download 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pre_commit_download-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pre_commit_download-0.1.0-py3-none-any.whl |
Release files / pre_commit_download-0.1.0-py3-none-any.whl
| Download URL | pre_commit_download-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0caef10182c739c5794efeb21a2d667b08f6f590c0a8bc16dec3f97247be753
|
|
BLAKE2b-256 checksum How to use checksums |
7b88cf4ef50e0c706c51b0242dd8307be045e5eb3109ad7106fc1170fc61e852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.19
|
Security for pre-commit-download 0.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.