Skip to content

Commit 4e2295d

Browse files
committed
Upgrade setuptools to 68.0.0
1 parent 92494e9 commit 4e2295d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

news/setuptools.vendor.rst

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

src/pip/_vendor/pkg_resources/LICENSE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
Copyright Jason R. Coombs
2-
31
Permission is hereby granted, free of charge, to any person obtaining a copy
42
of this software and associated documentation files (the "Software"), to
53
deal in the Software without restriction, including without limitation the

src/pip/_vendor/pkg_resources/__init__.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
.zip files and with custom PEP 302 loaders that support the ``get_data()``
1414
method.
1515
16-
This module is deprecated. Users are directed to
17-
`importlib.resources <https://docs.python.org/3/library/importlib.resources.html>`_
18-
and
19-
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_
20-
instead.
16+
This module is deprecated. Users are directed to :mod:`importlib.resources`,
17+
:mod:`importlib.metadata` and :pypi:`packaging` instead.
2118
"""
2219

2320
import sys
@@ -118,7 +115,12 @@
118115
_namespace_packages = None
119116

120117

121-
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
118+
warnings.warn(
119+
"pkg_resources is deprecated as an API. "
120+
"See https://setuptools.pypa.io/en/latest/pkg_resources.html",
121+
DeprecationWarning,
122+
stacklevel=2
123+
)
122124

123125

124126
_PEP440_FALLBACK = re.compile(r"^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)", re.I)
@@ -1659,10 +1661,9 @@ def _validate_resource_path(path):
16591661

16601662
# for compatibility, warn; in future
16611663
# raise ValueError(msg)
1662-
warnings.warn(
1664+
issue_warning(
16631665
msg[:-1] + " and will raise exceptions in a future release.",
16641666
DeprecationWarning,
1665-
stacklevel=4,
16661667
)
16671668

16681669
def _get(self, path):

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rich==13.4.2
1616
pygments==2.15.1
1717
typing_extensions==4.7.1
1818
resolvelib==1.0.1
19-
setuptools==67.7.2
19+
setuptools==68.0.0
2020
six==1.16.0
2121
tenacity==8.2.2
2222
tomli==2.0.1

0 commit comments

Comments
 (0)