hatch multi
Create multiple discrete packages from optional-dependencies (extras)
Overview
A small hatch plugin to create multiple discrete packages from a single package, via optional-dependencies.
pyproject.toml
[project]
name = "my-project"
...
dynamic = ["dependencies"]
[project.optional-dependencies]
main = [...]
other = [...]
[tool.hatch.metadata.hooks.multi]
primary = "main"
python -m build
# Produces my-project wheel and sdist, with dependencies from [project.optional-dependencies.main]
HATCH_MULTI_BUILD=other python -m build
# Produces my-project-other wheel and sdist, with dependencies from [project.optional-dependencies.other]
[!NOTE] This library was generated using copier from the Base Python Project Template repository.
Metadata
Release files for hatch-multi 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hatch_multi-1.0.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hatch_multi-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / hatch_multi-1.0.0.tar.gz
| Download URL | hatch_multi-1.0.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68b89a590d0e8f0e9a5a92987f429e8e3fdf47270757012c93adc2f9569be566
|
|
BLAKE2b-256 checksum How to use checksums |
621886ab23effd4ab232eefba266031f29e80bf228c1c551e1752ebecae478d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / hatch_multi-1.0.0-py3-none-any.whl
| Download URL | hatch_multi-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e37dc559abe90114d5e5b19f6302695bb24d3e009c4357f5040608f786823b2
|
|
BLAKE2b-256 checksum How to use checksums |
63c8f11c8730a1ea5d3da62e3bed0231ce46670e422c4a2f27ed2c9b3548db67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|