Skip to content

Commit 395be5d

Browse files
authored
Merge branch 'main' into ANN204-wo-ignore-fully-untyped
2 parents 9ead106 + f9bf422 commit 395be5d

File tree

14 files changed

+198
-101
lines changed

14 files changed

+198
-101
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 80.7.1
2+
current_version = 80.9.0
33
commit = True
44
tag = True
55

LICENSE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy
2+
of this software and associated documentation files (the "Software"), to
3+
deal in the Software without restriction, including without limitation the
4+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
5+
sell copies of the Software, and to permit persons to whom the Software is
6+
furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in
9+
all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
16+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
17+
IN THE SOFTWARE.

NEWS.rst

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
v80.9.0
2+
=======
3+
4+
Features
5+
--------
6+
7+
- Set a deadline for the removal of pkg_resources later this year (December). (#3085)
8+
- Removed reliance on pkg_resources in test_wheel. (#3085)
9+
10+
11+
v80.8.0
12+
=======
13+
14+
Features
15+
--------
16+
17+
- Replaced more references to pkg_resources with importlib equivalents in wheel odule. (#3085)
18+
- Restore explicit LICENSE file. (#5001)
19+
- Removed no longer used build dependency on ``coherent.licensed``. (#5003)
20+
21+
122
v80.7.1
223
=======
324

@@ -660,7 +681,7 @@ v72.2.0
660681
Features
661682
--------
662683

663-
- Merged with pypa/distutils@b7ee725f3 including: Support for Pathlike objects in data files and extensions (pypa/distutils#272, pypa/distutils#237), native support for C++ compilers (pypa/distuils#228) and removed unused get_msvcr() (pypa/distutils#274). (#4538)
684+
- Merged with pypa/distutils@b7ee725f3 including: Support for Pathlike objects in data files and extensions (pypa/distutils#272, pypa/distutils#237), native support for C++ compilers (pypa/distutils#228) and removed unused get_msvcr() (pypa/distutils#274). (#4538)
664685

665686

666687
v72.1.0

pkg_resources/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@
9797

9898
warnings.warn(
9999
"pkg_resources is deprecated as an API. "
100-
"See https://setuptools.pypa.io/en/latest/pkg_resources.html",
101-
DeprecationWarning,
100+
"See https://setuptools.pypa.io/en/latest/pkg_resources.html. "
101+
"The pkg_resources package is slated for removal as early as "
102+
"2025-11-30. Refrain from using this package or pin to "
103+
"Setuptools<81.",
104+
UserWarning,
102105
stacklevel=2,
103106
)
104107

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ requires = [
33
# "setuptools>=77",
44
# "setuptools_scm[toml]>=3.4.1",
55
# jaraco/skeleton#174
6-
"coherent.licensed",
6+
# "coherent.licensed",
77
]
88
build-backend = "setuptools.build_meta"
99
backend-path = ["."]
1010

1111
[project]
1212
name = "setuptools"
13-
version = "80.7.1"
13+
version = "80.9.0"
1414
authors = [
1515
{ name = "Python Packaging Authority", email = "distutils-sig@python.org" },
1616
]

pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ filterwarnings=
8484
# Avoid errors when testing pkg_resources.declare_namespace
8585
ignore:.*pkg_resources\.declare_namespace.*:DeprecationWarning
8686

87-
# suppress known deprecation
88-
ignore:pkg_resources is deprecated:DeprecationWarning
87+
# suppress known deprecation pypa/setuptools#3085
88+
ignore:pkg_resources is deprecated:UserWarning
8989

9090
# Dependencies might not have been updated yet
9191
default:onerror argument is deprecated, use onexc instead

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extend-select = [
2626

2727
# local
2828
"ANN2", # missing-return-type-*
29+
"ISC", # flake8-implicit-str-concat
2930
"PERF", # Perflint
3031
"PGH", # pygrep-hooks (blanket-* rules)
3132
"PT", # flake8-pytest-style

setuptools/_discovery.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import functools
2+
import operator
3+
4+
import packaging.requirements
5+
6+
7+
# from coherent.build.discovery
8+
def extras_from_dep(dep):
9+
try:
10+
markers = packaging.requirements.Requirement(dep).marker._markers
11+
except AttributeError:
12+
markers = ()
13+
return set(
14+
marker[2].value
15+
for marker in markers
16+
if isinstance(marker, tuple) and marker[0].value == 'extra'
17+
)
18+
19+
20+
def extras_from_deps(deps):
21+
"""
22+
>>> extras_from_deps(['requests'])
23+
set()
24+
>>> extras_from_deps(['pytest; extra == "test"'])
25+
{'test'}
26+
>>> sorted(extras_from_deps([
27+
... 'requests',
28+
... 'pytest; extra == "test"',
29+
... 'pytest-cov; extra == "test"',
30+
... 'sphinx; extra=="doc"']))
31+
['doc', 'test']
32+
"""
33+
return functools.reduce(operator.or_, map(extras_from_dep, deps), set())

setuptools/command/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __getattr__(name: str): # pragma: no cover
2222
if name == "_install":
2323
SetuptoolsDeprecationWarning.emit(
2424
"`setuptools.command._install` was an internal implementation detail "
25-
+ "that was left in for numpy<1.9 support.",
25+
"that was left in for numpy<1.9 support.",
2626
due_date=(2025, 5, 2), # Originally added on 2024-11-01
2727
)
2828
return orig.install

setuptools/command/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class sdist(orig.sdist):
3030
(
3131
'keep-temp',
3232
'k',
33-
"keep the distribution tree around after creating " + "archive file(s)",
33+
"keep the distribution tree around after creating archive file(s)",
3434
),
3535
(
3636
'dist-dir=',

0 commit comments

Comments
 (0)