Build-backend for downloading external single file binaries.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pre_commit_download-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pre_commit_download-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0caef10182c739c5794efeb21a2d667b08f6f590c0a8bc16dec3f97247be753
|
|
| MD5 |
0b648b2ef2cb1b094da3d12d828af7d5
|
|
| BLAKE2b-256 |
7b88cf4ef50e0c706c51b0242dd8307be045e5eb3109ad7106fc1170fc61e852
|