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.0.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.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatch_multi-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 09f78611e44122c59f7a987c09d09a1d378d22bd104ee9d2690bc60c1d7332eb
MD5 8b8eb8ff130546c8fc38a598cd6f6309
BLAKE2b-256 1992875a7ad79528e631a604947cfb9621b53329c08420a5f28e40d58c985176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hatch_multi-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d32c85f9bc40fb269670bddcddd0e15ce33d75069f685d3ac5e9e9f69b3683
MD5 e658755099c19f078774610a28515680
BLAKE2b-256 ebc3f46027d4a71f274ec8850b3ee1287a10e2f9bf0f765d4dd1f7792513af46

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