https://github.com/agoose77/literary-build-hatch
Hatch build plugin for Literary
https://github.com/agoose77/literary-build-hatch
build hatch literary wheel
Last synced: 12 months ago
JSON representation
Hatch build plugin for Literary
- Host: GitHub
- URL: https://github.com/agoose77/literary-build-hatch
- Owner: agoose77
- Created: 2022-05-10T08:11:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T20:58:26.000Z (over 3 years ago)
- Last Synced: 2025-03-05T15:51:36.545Z (about 1 year ago)
- Topics: build, hatch, literary, wheel
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# literary-build-hatch
[![pypi-badge][]][pypi]
[pypi-badge]: https://img.shields.io/pypi/v/literary-build-hatch
[pypi]: https://pypi.org/project/literary-build-hatch
A hatch plugin to build wheels from Literary projects.
Example `pyproject.toml`:
```toml
[tool.hatch.build]
# Ensure lib is ignored so that these files *never* get accidentally included
excluded = ["src", "lib"]
[tool.hatch.build.targets.wheel.hooks.literary]
dependencies = ["literary-build-hatch>=0.3.0"]
[build-system]
requires = ["hatchling>=1.0.0"]
build-backend = "hatchling.build"
```
This hook supports editable installs, so `pdm install` just works out of the box!
## Details
The Hatch build plugin makes the following decisions:
- Anything in the builder `generated_path` is added to the built wheel
- The builder `generated_path` is added to `sys.path` for editable wheels
- Literary version `>=4.0.0` is required by editable wheel
The builder users `force_include` for standard wheels, meaning that the exclusion mechanism provided by hatch will be ignored for generated assets. You should use the Literary configuration to specify files that should not end up in the build directory.