Skip to main content

Create multiple discrete packages from optional-dependencies (extras)

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_multi-0.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_multi-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file hatch_multi-0.1.1.tar.gz.

File metadata

  • Download URL: hatch_multi-0.1.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for hatch_multi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 16f27da11edbfc2c8fb714b590818199d6b67902e1f10ee2c432daceee5f1868
MD5 1763b5dfeb43b71e704c72be7d09c645
BLAKE2b-256 5794c185c20647fc04b1dd4235aa2276e79d25fb07aab72b1231422d3e8c77f7

See more details on using hashes here.

File details

Details for the file hatch_multi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hatch_multi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for hatch_multi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3424eb04a5bbf53cc65c15a234f2cc62c90c6eb85af50e9ce360984fb81e5370
MD5 f9786a49c5ab628f2d5009559186ea8c
BLAKE2b-256 29aa953bbe945c3a446dfb57886c90381be6f45251f1cd23d22c312dde4f8789

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page