Skip to main content

Hatch plugin to customize build dependencies

Simple Hatch plugin to customize dependencies whether the build is editable or standard. This may be useful for example in monorepo projects where sub-projects need to be installed manually, from the local repo, and not the pypi index. In this case you can add dependencies to the standard-dependencies that will be used only when building wheels.

Usage

You can specify editable-dependencies for editable installs and standard-dependencies for other builds in the [tool.hatch.build.hook.flex] section of the pyproject.toml.

[build-system]
requires = ["hatchling", "hatch-flex"]
build-backend = "hatchling.build"

[tool.hatch.build.hooks.flex]
editable-dependencies = [...]
standard-dependencies = [...]

Related Projects & Resources

  • hatch Modern, extensible Python project management
  • issue 588 Support for Editable Dependencies

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hatch_flex-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file hatch_flex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hatch_flex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for hatch_flex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d186da6b4156a7e2aae43851811dc32042c612927ad7c5b33ef4d008972596f
MD5 dff125448b51543ca9cc10ab510dc7da
BLAKE2b-256 038136012866fea622f5308f98440b7a64f16dbf976f9666651fdece71617d87

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.2

1 file

This release

0.0.1 This release

1 file

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