Skip to content

Commit

Permalink
Upgrade setuptools to 68.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Jul 9, 2023
1 parent 92494e9 commit 4e2295d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions news/setuptools.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade setuptools to 68.0.0
2 changes: 0 additions & 2 deletions src/pip/_vendor/pkg_resources/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Copyright Jason R. Coombs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
Expand Down
17 changes: 9 additions & 8 deletions src/pip/_vendor/pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
.zip files and with custom PEP 302 loaders that support the ``get_data()``
method.
This module is deprecated. Users are directed to
`importlib.resources <https://docs.python.org/3/library/importlib.resources.html>`_
and
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_
instead.
This module is deprecated. Users are directed to :mod:`importlib.resources`,
:mod:`importlib.metadata` and :pypi:`packaging` instead.
"""

import sys
Expand Down Expand Up @@ -118,7 +115,12 @@
_namespace_packages = None


warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
warnings.warn(
"pkg_resources is deprecated as an API. "
"See https://setuptools.pypa.io/en/latest/pkg_resources.html",
DeprecationWarning,
stacklevel=2
)


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

# for compatibility, warn; in future
# raise ValueError(msg)
warnings.warn(
issue_warning(
msg[:-1] + " and will raise exceptions in a future release.",
DeprecationWarning,
stacklevel=4,
)

def _get(self, path):
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rich==13.4.2
pygments==2.15.1
typing_extensions==4.7.1
resolvelib==1.0.1
setuptools==67.7.2
setuptools==68.0.0
six==1.16.0
tenacity==8.2.2
tomli==2.0.1
Expand Down

0 comments on commit 4e2295d

Please sign in to comment.