File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change
1
+ Upgrade setuptools to 68.0.0
Original file line number Diff line number Diff line change 1
- Copyright Jason R. Coombs
2
-
3
1
Permission is hereby granted, free of charge, to any person obtaining a copy
4
2
of this software and associated documentation files (the "Software"), to
5
3
deal in the Software without restriction, including without limitation the
Original file line number Diff line number Diff line change 13
13
.zip files and with custom PEP 302 loaders that support the ``get_data()``
14
14
method.
15
15
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.
21
18
"""
22
19
23
20
import sys
118
115
_namespace_packages = None
119
116
120
117
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
+ )
122
124
123
125
124
126
_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):
1659
1661
1660
1662
# for compatibility, warn; in future
1661
1663
# raise ValueError(msg)
1662
- warnings . warn (
1664
+ issue_warning (
1663
1665
msg [:- 1 ] + " and will raise exceptions in a future release." ,
1664
1666
DeprecationWarning ,
1665
- stacklevel = 4 ,
1666
1667
)
1667
1668
1668
1669
def _get (self , path ):
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ rich==13.4.2
16
16
pygments==2.15.1
17
17
typing_extensions==4.7.1
18
18
resolvelib==1.0.1
19
- setuptools==67.7.2
19
+ setuptools==68.0.0
20
20
six==1.16.0
21
21
tenacity==8.2.2
22
22
tomli==2.0.1
You can’t perform that action at this time.
0 commit comments