Skip to content

Commit bc83f1f

Browse files
authored
PEP 751: mention dependency groups for services to look for
1 parent 66228e5 commit bc83f1f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

peps/pep-0751.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,16 @@ e.g.:
135135
if len(filename) > 11 and filename.startswith("pylock.") and filename.endswith(".toml"):
136136
name = filename.removeprefix("pylock.").removesuffix(".toml")
137137
138-
The expectation is that services that install lock files automatically will
139-
search for a lock file with the service's name, then fallback to the generic
140-
``pylock.toml`` (e.g. a cloud host service named Spam would first look for
138+
The expectation is that services that automatically install from lock files will
139+
search for:
140+
141+
1. A lock file with the service's name
142+
2. ``pylock.toml`` with a dependency group with the name of the service
143+
3. The default install with ``pylock.toml``
144+
145+
E.g. a cloud host service named "spam" would first look for
141146
``pylock.spam.toml`` to install, and if that file didn't exist then install from
142-
``pylock.toml``).
147+
``pylock.toml`` and look for a dependency group named "spam" fo use if present.
143148

144149
The lock file(s) SHOULD be located in the directory as appropriate for the scope
145150
of the lock file. Locking against a single ``pyproject.toml``, for instance,

0 commit comments

Comments
 (0)