Create multiple discrete packages from optional-dependencies (extras)
Project description
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.
Project details
Release history Release notifications | RSS feed
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_multi-1.0.0.tar.gz.
File metadata
- Download URL: hatch_multi-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b89a590d0e8f0e9a5a92987f429e8e3fdf47270757012c93adc2f9569be566
|
|
| MD5 |
3ad81b087e5591eccda005a7de1a50f7
|
|
| BLAKE2b-256 |
621886ab23effd4ab232eefba266031f29e80bf228c1c551e1752ebecae478d7
|
File details
Details for the file hatch_multi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hatch_multi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e37dc559abe90114d5e5b19f6302695bb24d3e009c4357f5040608f786823b2
|
|
| MD5 |
1be3130975d2f799a21fd9a4fc4bb5f0
|
|
| BLAKE2b-256 |
63c8f11c8730a1ea5d3da62e3bed0231ce46670e422c4a2f27ed2c9b3548db67
|