Hatch plugin for adding `Requires-External` metadata in built packages
Project description
hatch-external-dependencies
The package is a hatch plugin.
When building with hatchling this plugin will look in the project toml configuration for an external section and adds dependencies in the built package's metadata as a Requires-External entry.
Usage
To use the plugin add hatch-external-dependencies
as a build-system requirement in your pyproject.toml
[build-system]
requires = ["hatchling", "hatch-external-dependencies"]
build-backend = "hatchling.build"
In order to activate the plugin you also need to declare the hook:
[tool.hatch.build.hooks.external-dependencies]
In order to define external dependencies there are two supported syntax:
[project]
external-dependencies = ["pkg:generic/libsomething", ...]
or (based on https://peps.python.org/pep-0725/):
[external]
dependencies = ["pkg:generic/libsomething", ...]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hatch_external_dependencies-1.0.8.tar.gz
.
File metadata
- Download URL: hatch_external_dependencies-1.0.8.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0043c93815204ec79f654c595e1d65db0895d810dcfd84b184073f2f9ea69c43 |
|
MD5 | a3bcfdb6abf5e76188d8b73a7f575b94 |
|
BLAKE2b-256 | 185e397d99ecb97083c35aa7855d54784a2c934d48c05d80273981e9f4cda62f |
File details
Details for the file hatch_external_dependencies-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: hatch_external_dependencies-1.0.8-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d9cb4845cd9d0e915ff10997522e844ac9be88829d9c41f8110f53717c66a5 |
|
MD5 | 7f9bd9788e9a471ce846c1fd301de3ba |
|
BLAKE2b-256 | 9f99fc46592456ce3f8964ef472d145d01a84405f614651ebf68eea54b2c8bac |