-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Description
Something like:
def select(
lock: Pylock,
*,
environment: markers.Environment | None = None,
tags: Sequence[tags.Tag] | None = None,
groups: Collection[str] | None = None
) -> ...:
"""Select what to install from the lock file.
The *environment* and *tags* parameters represent the environment being
selected for. If unspecified, ``packaging.markers.default_environment()``
and ``packaging.tags.sys_tags()`` are used.
The *groups* parameter represents the groups to install. If unspecified,
the default groups are used.
"""There's no specified return type as I haven't thought that through yet as there needs to be a way to tell what sort of thing was selected (e.g. wheel or sdist; might just be isinstance) and a way to get attestation identities (might just require to get back to the appropriate entry in [[packages]] by returning a tuple of (thing, entry)).
Reactions are currently unavailable