Add a packaging extra with pinned dependencies from a lock file
Project description
hatch-pinned-extra
Hatch plugin that adds a packaging extra to the wheel metadata with pinned dependencies from uv.lock.
Usage
# pyproject.toml
[build-system]
requires = [
"hatchling",
"hatch-pinned-extra<0.1.0",
]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.pinned_extra]
name = "pinned"
If your package doesn't have any optional dependencies already, you will need to mark them as dynamic:
# pyproject.toml
[project]
dynamic = [
"optional-dependencies",
]
Enabling the Plugin
The plugin requires the HATCH_PINNED_EXTRA_ENABLE environment variable to be set to activate. This design allows you to control when pinned dependencies are included:
# Build with pinned dependencies
HATCH_PINNED_EXTRA_ENABLE=1 uv build
# Update lockfile without constraints from pinned dependencies
uv lock --upgrade
This approach solves the circular dependency issue where pinned dependencies become constraints during uv lock --upgrade, preventing actual upgrades.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hatch_pinned_extra-0.0.1.tar.gz.
File metadata
- Download URL: hatch_pinned_extra-0.0.1.tar.gz
- Upload date:
- Size: 85.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb689f742c4be67a863237b4229d871c49dc6659f96d49235b20b299f2a0316a
|
|
| MD5 |
3a3a7f17a825f42904a7afa486fb5c29
|
|
| BLAKE2b-256 |
ff2e415b377ec4fe355efab8616fbf2e9454779336ba56b002641baa2911683d
|
Provenance
The following attestation bundles were made for hatch_pinned_extra-0.0.1.tar.gz:
Publisher:
build.yaml on edgarrmondragon/hatch-pinned-extra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hatch_pinned_extra-0.0.1.tar.gz -
Subject digest:
cb689f742c4be67a863237b4229d871c49dc6659f96d49235b20b299f2a0316a - Sigstore transparency entry: 716467302
- Sigstore integration time:
-
Permalink:
edgarrmondragon/hatch-pinned-extra@0a11bbec28d34e3163fddd49dc2fc914c5851b4c -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@0a11bbec28d34e3163fddd49dc2fc914c5851b4c -
Trigger Event:
push
-
Statement type:
File details
Details for the file hatch_pinned_extra-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hatch_pinned_extra-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ffcf10af584e2e42666d7fff3569e622219b69e04f376a629ff58162ef0bd4
|
|
| MD5 |
6ea4b9a7f7e888bba972471d6cbfc35c
|
|
| BLAKE2b-256 |
86ed6af7439e678efea2d64135324a6a357c3b235ad7743138fd056e711c766b
|
Provenance
The following attestation bundles were made for hatch_pinned_extra-0.0.1-py3-none-any.whl:
Publisher:
build.yaml on edgarrmondragon/hatch-pinned-extra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hatch_pinned_extra-0.0.1-py3-none-any.whl -
Subject digest:
e1ffcf10af584e2e42666d7fff3569e622219b69e04f376a629ff58162ef0bd4 - Sigstore transparency entry: 716467313
- Sigstore integration time:
-
Permalink:
edgarrmondragon/hatch-pinned-extra@0a11bbec28d34e3163fddd49dc2fc914c5851b4c -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@0a11bbec28d34e3163fddd49dc2fc914c5851b4c -
Trigger Event:
push
-
Statement type: