A plugin for Hatch for writing build scripts
Project description
Hatch Build Scripts
A plugin for Hatch that allows you to run arbitrary build scripts and include their artifacts in your package distributions.
Installation
To set up hatch-build-scripts for your project you'll need to configure it in your
project's pyproject.toml file. You'll need to modify two sections of the file:
build-system.requires: To addhatch-build-scriptsas a build dependency.tool.hatch.build.hooks.build-scripts: To configure the build scripts you want to run.
In practice this looks like
[build-system]
requires = ["hatchling", "hatch-build-scripts"]
build-backend = "hatchling.build"
[[tool.hatch.build.hooks.build-scripts.scripts]]
out_dir = "out"
commands = [
"echo 'Hello, world!' > hello.txt",
"echo 'Goodbye, world!' > goodbye.txt",
]
artifacts = [
"hello.txt",
"goodbye.txt",
]
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
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 hatch_build_scripts-0.0.1.tar.gz.
File metadata
- Download URL: hatch_build_scripts-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
671a074b0debd53a3abcaf62b1e087b743daf4cbae43ecc66f5a8ed053c33a15
|
|
| MD5 |
aafb30e84ff5ae77911799571744d7ab
|
|
| BLAKE2b-256 |
da61fa07429b2a2bcc276035b2f90c6e81cae8953f97936d2ae946e44dbef12d
|
File details
Details for the file hatch_build_scripts-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hatch_build_scripts-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775aef7ea92f11e6856b184c4b915d57828879839e0caa2c8d223a150c276767
|
|
| MD5 |
4a9290ef69aeef2398373e75bac7af0c
|
|
| BLAKE2b-256 |
4eec39c17cf20a8919c36179c41b0dc66888906909b8961329985c4ee8a4e5ad
|