Skip to main content

Hatch plugin to customize build dependencies

Project description

Hatch plugin to customize build dependencies

Simple Hatch plugin to customize dependencies according to whether the build is editable or standard. This may be useful for example in mono-repo 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.hooks.flex] section of the pyproject.toml. These dependencies, according to the build type, will be added to the dependencies already declared in the project section.

[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

Changes

0.0.1

  • Initial release

0.0.2

  • Added config type checking

Project details


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

hatch_flex-0.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

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