From acbbe28649635e9f777917eb1692c41311112c84 Mon Sep 17 00:00:00 2001 From: Richard Si Date: Sun, 12 Jan 2025 11:18:46 -0500 Subject: [PATCH] Postpone removal of non-bare names in egg fragment to 25.1 The only way for editable VCS URL installs to request an extra is to place them in the egg fragment. Of course, this is undocumented and deprecated behaviour, but we should ensure `pip install -e name[extra] @ VCS_URL` actually works before breaking our users. --- src/pip/_internal/cli/base_command.py | 2 +- src/pip/_internal/models/link.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pip/_internal/cli/base_command.py b/src/pip/_internal/cli/base_command.py index 5d69fcefc25..362f84b6b0b 100644 --- a/src/pip/_internal/cli/base_command.py +++ b/src/pip/_internal/cli/base_command.py @@ -231,7 +231,7 @@ def _main(self, args: List[str]) -> int: if options.no_python_version_warning: deprecated( - reason="--no-python-verison-warning is deprecated.", + reason="--no-python-version-warning is deprecated.", replacement="to remove the flag as it's a no-op", gone_in="25.1", issue=13154, diff --git a/src/pip/_internal/models/link.py b/src/pip/_internal/models/link.py index 612a42f95c1..27ad016090c 100644 --- a/src/pip/_internal/models/link.py +++ b/src/pip/_internal/models/link.py @@ -466,10 +466,10 @@ def _egg_fragment(self) -> Optional[str]: project_name = match.group(1) if not self._project_name_re.match(project_name): deprecated( - reason=f"{self} contains an egg fragment with a non-PEP 508 name", + reason=f"{self} contains an egg fragment with a non-PEP 508 name.", replacement="to use the req @ url syntax, and remove the egg fragment", - gone_in="25.0", - issue=11617, + gone_in="25.1", + issue=13157, ) return project_name