Skip to content

Commit 0997930

Browse files
authored
Merge branch 'main' into Optimize---find-links=<path-to-dir>
2 parents 1711538 + e57cf4f commit 0997930

19 files changed

+598
-421
lines changed

news/12477.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Make pip freeze and pip uninstall of legacy editable installs of packages whose name
2-
contains ``_`` compatible with ``setuptools>=69``.
2+
contains ``_`` compatible with ``setuptools>=69.0.3``.

news/distlib.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade distlib to 0.3.8

src/pip/_internal/operations/check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def warn_legacy_versions_and_specifiers(package_set: PackageSet) -> None:
168168
f"release a version with a conforming version number"
169169
),
170170
issue=12063,
171-
gone_in="24.0",
171+
gone_in="24.1",
172172
)
173173
for dep in package_details.dependencies:
174174
if any(isinstance(spec, LegacySpecifier) for spec in dep.specifier):
@@ -183,5 +183,5 @@ def warn_legacy_versions_and_specifiers(package_set: PackageSet) -> None:
183183
f"release a version with a conforming dependency specifiers"
184184
),
185185
issue=12063,
186-
gone_in="24.0",
186+
gone_in="24.1",
187187
)

src/pip/_internal/req/req_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def check_legacy_setup_py_options(
905905
reason="--build-option and --global-option are deprecated.",
906906
issue=11859,
907907
replacement="to use --config-settings",
908-
gone_in="24.0",
908+
gone_in="24.2",
909909
)
910910
logger.warning(
911911
"Implying --no-binary=:all: due to the presence of "

src/pip/_internal/req/req_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def warn_legacy_versions_and_specifiers(self) -> None:
9999
"or contact the package author to fix the version number"
100100
),
101101
issue=12063,
102-
gone_in="24.0",
102+
gone_in="24.1",
103103
)
104104
for dep in req.get_dist().iter_dependencies():
105105
if any(isinstance(spec, LegacySpecifier) for spec in dep.specifier):
@@ -115,5 +115,5 @@ def warn_legacy_versions_and_specifiers(self) -> None:
115115
"or contact the package author to fix the version number"
116116
),
117117
issue=12063,
118-
gone_in="24.0",
118+
gone_in="24.1",
119119
)

src/pip/_vendor/distlib/__init__.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2012-2022 Vinay Sajip.
3+
# Copyright (C) 2012-2023 Vinay Sajip.
44
# Licensed to the Python Software Foundation under a contributor agreement.
55
# See LICENSE.txt and CONTRIBUTORS.txt.
66
#
77
import logging
88

9-
__version__ = '0.3.6'
9+
__version__ = '0.3.8'
10+
1011

1112
class DistlibException(Exception):
1213
pass
1314

15+
1416
try:
1517
from logging import NullHandler
16-
except ImportError: # pragma: no cover
18+
except ImportError: # pragma: no cover
19+
1720
class NullHandler(logging.Handler):
18-
def handle(self, record): pass
19-
def emit(self, record): pass
20-
def createLock(self): self.lock = None
21+
22+
def handle(self, record):
23+
pass
24+
25+
def emit(self, record):
26+
pass
27+
28+
def createLock(self):
29+
self.lock = None
30+
2131

2232
logger = logging.getLogger(__name__)
2333
logger.addHandler(NullHandler())

0 commit comments

Comments
 (0)