Skip to content

Commit 86d24fd

Browse files
authored
Merge branch 'main' into setuptools-simple-typeshed-params
2 parents 5a7b9ac + 4147b09 commit 86d24fd

33 files changed

+155
-773
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 = 72.2.0
2+
current_version = 73.0.0
33
commit = True
44
tag = True
55

NEWS.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
v73.0.0
2+
=======
3+
4+
Features
5+
--------
6+
7+
- Mark abstract base classes and methods with `abc.ABC` and `abc.abstractmethod` -- by :user:`Avasam` (#4503)
8+
- Changed the order of type checks in ``setuptools.command.easy_install.CommandSpec.from_param`` to support any `collections.abc.Iterable` of `str` param -- by :user:`Avasam` (#4505)
9+
10+
11+
Bugfixes
12+
--------
13+
14+
- Prevent an error in ``bdist_wheel`` if ``compression`` is set to a `str` (even if valid) after finalizing options but before running the command. -- by :user:`Avasam` (#4383)
15+
- Raises an exception when ``py_limited_api`` is used in a build with
16+
``Py_GIL_DISABLED``. This is currently not supported (python/cpython#111506). (#4420)
17+
- Synced with pypa/distutils@30b7331 including fix for modified check on empty sources (pypa/distutils#284).
18+
19+
20+
Deprecations and Removals
21+
-------------------------
22+
23+
- ``setuptools`` is replacing the usages of :pypi:`ordered_set` with simple
24+
instances of ``dict[Hashable, None]``. This is done to remove the extra
25+
dependency and it is possible because since Python 3.7, ``dict`` maintain
26+
insertion order. (#4574)
27+
28+
29+
Misc
30+
----
31+
32+
- #4534, #4546, #4554, #4559, #4565
33+
34+
135
v72.2.0
236
=======
337

newsfragments/4383.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/4503.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/4505.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/4534.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/4546.misc.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

newsfragments/4554.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ backend-path = ["."]
55

66
[project]
77
name = "setuptools"
8-
version = "72.2.0"
8+
version = "73.0.0"
99
authors = [
1010
{ name = "Python Packaging Authority", email = "[email protected]" },
1111
]
@@ -110,7 +110,6 @@ ssl = []
110110
certs = []
111111
core = [
112112
"packaging>=24",
113-
"ordered-set>=3.1.1",
114113
"more_itertools>=8.8",
115114
"jaraco.text>=3.7",
116115
"importlib_resources>=5.10.2; python_version < '3.9'",

setuptools/_distutils/_modified.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def missing_as_newer(source):
6363
return missing == 'newer' and not os.path.exists(source)
6464

6565
ignored = os.path.exists if missing == 'ignore' else None
66-
return any(
66+
return not os.path.exists(target) or any(
6767
missing_as_newer(source) or _newer(source, target)
6868
for source in filter(ignored, sources)
6969
)

setuptools/_distutils/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def _show_help(
658658
)
659659
print()
660660

661-
for command in self.commands:
661+
for command in commands:
662662
if isinstance(command, type) and issubclass(command, Command):
663663
klass = command
664664
else:

setuptools/_distutils/tests/test_modified.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,10 @@ def test_newer_pairwise_group(groups_target):
117117
newer = newer_pairwise_group([groups_target.newer], [groups_target.target])
118118
assert older == ([], [])
119119
assert newer == ([groups_target.newer], [groups_target.target])
120+
121+
122+
def test_newer_group_no_sources_no_target(tmp_path):
123+
"""
124+
Consider no sources and no target "newer".
125+
"""
126+
assert newer_group([], str(tmp_path / 'does-not-exist'))

setuptools/_vendor/ordered_set-4.1.0.dist-info/INSTALLER

Lines changed: 0 additions & 1 deletion
This file was deleted.

setuptools/_vendor/ordered_set-4.1.0.dist-info/METADATA

Lines changed: 0 additions & 158 deletions
This file was deleted.

setuptools/_vendor/ordered_set-4.1.0.dist-info/RECORD

Lines changed: 0 additions & 8 deletions
This file was deleted.

setuptools/_vendor/ordered_set-4.1.0.dist-info/REQUESTED

Whitespace-only changes.

setuptools/_vendor/ordered_set-4.1.0.dist-info/WHEEL

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)