Skip to content

Commit 43caae4

Browse files
committed
💅📦 Split transitive dep constraints
This is a structural change allowing for better placement of direct dependencies and limiting the transitive ones.
1 parent f371c3d commit 43caae4

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

requirements/runtime-constraints.in

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
###############################################################################
2+
# #
3+
# This file is only meant to exclude broken dependency versions, not feature #
4+
# dependencies. #
5+
# #
6+
# GUIDELINES: #
7+
# 1. Only list PyPI project versions that need to be excluded using `!=` #
8+
# and `<`. #
9+
# 2. It is allowed to have transitive dependency limitations in this file. #
10+
# 3. Apply bare minimum constraints under narrow conditions, use #
11+
# environment markers if possible. E.g. `; python_version < "3.12"`. #
12+
# 4. Whenever there are no constraints, let the file and this header #
13+
# remain in Git. #
14+
# #
15+
###############################################################################
16+
17+
# NOTE: 1.12.0 and later enable support for metadata 2.4
18+
# NOTE: This can be dropped once twine stops using pkginfo
19+
# Ref: https://github.com/pypa/twine/pull/1180
20+
pkginfo ~= 1.12.0

requirements/runtime.in

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
twine ~= 6.0
1+
-c runtime-constraints.in # limits known broken versions
22

3-
# NOTE: 1.12.0 and later enable support for metadata 2.4
4-
# NOTE: This can be dropped once twine stops using pkginfo
5-
# Ref: https://github.com/pypa/twine/pull/1180
6-
pkginfo ~= 1.12.0
3+
twine ~= 6.0
74

85
# NOTE: Used to detect an ambient OIDC credential for OIDC publishing,
96
# NOTE: as well as PEP 740 attestations.

requirements/runtime.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ packaging==24.1
6868
# twine
6969
pkginfo==1.12.0
7070
# via
71-
# -r runtime.in
71+
# -c runtime-constraints.in
7272
# twine
7373
platformdirs==4.2.2
7474
# via sigstore

0 commit comments

Comments
 (0)