Hatch plugin to customize build dependencies
Simple Hatch plugin to customize dependencies
according to whether the build is editable or standard.
This may be useful for example in mono-repo projects
where sub-projects need to be installed manually,
from the local repo, and not the pypi index.
In this case you can add dependencies to the
standard dependencies that will be used only
when building wheels.
Usage
You can specify editable-dependencies for editable installs
and standard-dependencies for other builds in the
[tool.hatch.build.hooks.flex] section of the pyproject.toml.
These dependencies, according to the build type, will be added
to the dependencies already declared in the project section.
[build-system]
requires = ["hatchling", "hatch-flex"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.flex]
editable-dependencies = [...]
standard-dependencies = [...]
Related Projects & Resources
Changes
0.0.1
- Initial release
0.0.2
- Added config type checking
Metadata
Release files for hatch-flex 0.0.2
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 |
|---|---|---|---|---|
| hatch_flex-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for hatch_flex-0.0.2-py3-none-any.whl |
Release files / hatch_flex-0.0.2-py3-none-any.whl
| Download URL | hatch_flex-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60a68f8a972029d17b9bbfb604cc65f28aba37c662a1335ea4e0c9e3f2e302dc
|
|
BLAKE2b-256 checksum How to use checksums |
f4442a881387eef69e8e8a677a5a18249327fdbb3d9aec1e82d8a893b5e1a80c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for hatch-flex 0.0.2
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.