Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/pip
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: sirosen/pip
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pep-735-support
Choose a head ref
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Feb 24, 2024

  1. Initial prototype support for PEP 735

    Introduce a new option, `--dependency-group GROUP` for `pip install`
    and `pip download` commands.
    
    `--dependency-group` is an `append` option (can be passed multiple
    times) and is resolved via a simple process:
    - the requested groups are resolved to lists of PEP 508
      specifiers, using an implementation based on the reference
      implementation in the PEP
    - those specifiers are parsed with `install_req_from_req_string`
    
    Dependency groups are parsed by `ReqCommand` internally, and
    therefore `pip wheel` provides `options.dependency_groups = []` to
    be compatible with its base class, but without exposing this option.
    
    For this initial implementation, `pyproject.toml` is discovered from
    the current working directory, and there is no option to control where
    it is found.
    
    The signature of `parse_dependency_group` is matched to the
    requirements file parser, even though the session and other arguments
    are currently ignored.
    sirosen committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    228028c View commit details
    Browse the repository at this point in the history
Loading