Skip to main content

hatch multi

Create multiple discrete packages from optional-dependencies (extras)

Build Status codecov License PyPI

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)

Source distribution for hatch-multi 1.0.0
File Size Uploaded
hatch_multi-1.0.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hatch-multi 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page