Skip to content

Commit

Permalink
💅📦 Split transitive dep constraints
Browse files Browse the repository at this point in the history
This is a structural change allowing for better placement of direct
dependencies and limiting the transitive ones.
  • Loading branch information
webknjaz committed Dec 7, 2024
1 parent f371c3d commit 43caae4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
20 changes: 20 additions & 0 deletions requirements/runtime-constraints.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
###############################################################################
# #
# This file is only meant to exclude broken dependency versions, not feature #
# dependencies. #
# #
# GUIDELINES: #
# 1. Only list PyPI project versions that need to be excluded using `!=` #
# and `<`. #
# 2. It is allowed to have transitive dependency limitations in this file. #
# 3. Apply bare minimum constraints under narrow conditions, use #
# environment markers if possible. E.g. `; python_version < "3.12"`. #
# 4. Whenever there are no constraints, let the file and this header #
# remain in Git. #
# #
###############################################################################

# NOTE: 1.12.0 and later enable support for metadata 2.4
# NOTE: This can be dropped once twine stops using pkginfo
# Ref: https://github.com/pypa/twine/pull/1180
pkginfo ~= 1.12.0
7 changes: 2 additions & 5 deletions requirements/runtime.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
twine ~= 6.0
-c runtime-constraints.in # limits known broken versions

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

# NOTE: Used to detect an ambient OIDC credential for OIDC publishing,
# NOTE: as well as PEP 740 attestations.
Expand Down
2 changes: 1 addition & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packaging==24.1
# twine
pkginfo==1.12.0
# via
# -r runtime.in
# -c runtime-constraints.in
# twine
platformdirs==4.2.2
# via sigstore
Expand Down

0 comments on commit 43caae4

Please sign in to comment.