https://github.com/furechan/hatch-flex
Hatch plugin to customize build dependencies
https://github.com/furechan/hatch-flex
Last synced: about 2 months ago
JSON representation
Hatch plugin to customize build dependencies
- Host: GitHub
- URL: https://github.com/furechan/hatch-flex
- Owner: furechan
- License: mit
- Created: 2024-01-15T23:56:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T14:22:19.000Z (over 1 year ago)
- Last Synced: 2025-02-15T23:34:06.801Z (2 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
- [hatch](https://hatch.pypa.io/latest/) Modern, extensible Python project management
- [issue 588](https://github.com/pypa/hatch/issues/588) Support for Editable Dependencies## Changes
### 0.0.1
- Initial release### 0.0.2
- Added config type checking