Metadata-Version: 2.4
Name: hatch-multi
Version: 1.0.0
Summary: Create multiple discrete packages from optional-dependencies (extras)
Project-URL: Repository, https://github.com/python-project-templates/hatch-multi
Project-URL: Homepage, https://github.com/python-project-templates/hatch-multi
Author-email: the hatch-multi authors <t.paine154@gmail.com>
License: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.9
Requires-Dist: hatchling
Requires-Dist: pydantic
Provides-Extra: develop
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-manifest; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Description-Content-Type: text/markdown

# hatch multi

Create multiple discrete packages from optional-dependencies (extras)

[![Build Status](https://github.com/python-project-templates/hatch-multi/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/python-project-templates/hatch-multi/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/python-project-templates/hatch-multi/branch/main/graph/badge.svg)](https://codecov.io/gh/python-project-templates/hatch-multi)
[![License](https://img.shields.io/github/license/python-project-templates/hatch-multi)](https://github.com/python-project-templates/hatch-multi)
[![PyPI](https://img.shields.io/pypi/v/hatch-multi.svg)](https://pypi.python.org/pypi/hatch-multi)

## Overview

A small [hatch plugin](https://hatch.pypa.io/latest/) to create multiple discrete packages from a single package, via `optional-dependencies`.

**pyproject.toml**

```toml
[project]
name = "my-project"
...
dynamic = ["dependencies"]

[project.optional-dependencies]
main = [...]
other = [...]

[tool.hatch.metadata.hooks.multi]
primary = "main"
```

```bash
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](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
