Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 86d24fd

Browse files
authoredAug 19, 2024··
Merge branch 'main' into setuptools-simple-typeshed-params
2 parents 5a7b9ac + 4147b09 commit 86d24fd

33 files changed

+155
-773
lines changed
 

‎.bumpversion.cfg

+1-1
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

+34
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

-1
This file was deleted.

‎newsfragments/4503.feature.rst

-1
This file was deleted.

‎newsfragments/4505.feature.rst

-1
This file was deleted.

‎newsfragments/4534.misc.rst

-1
This file was deleted.

‎newsfragments/4546.misc.rst

-2
This file was deleted.

‎newsfragments/4554.misc.rst

-1
This file was deleted.

‎pyproject.toml

+1-2
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 = "distutils-sig@python.org" },
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

+1-1
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

+1-1
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

+7
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

-1
This file was deleted.

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

-158
This file was deleted.

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

-8
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

-4
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.