Skip to content

Commit 613a33b

Browse files
kurtmckeemrbean-bremen
authored andcommitted
Pin the build-system to setuptools>=62.1
setuptools v45.x doesn't support `pyproject.toml` files. v62.1.x and higher do, and continue to support Python 3.7. Reproducer: ``` # Create a venv python -m venv venv-demo source venv-demo/bin/activate # Install setuptools and build python -m pip install setuptools==45.0.0 build # Build the package using the already-installed setuptools python -m build --no-isolation ``` This results in the following error: ``` ERROR Backend 'setuptools.build_meta' is not available. ``` Changing the reproducer to use setuptools 61.2.0 demonstrates that the issue is resolved.
1 parent 180989d commit 613a33b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ The released versions correspond to PyPI releases.
2323
* fixed `fake_filesystem.add_package_metadata` that had never worked correctly
2424
(see [#1205](../../issues/1205))
2525

26+
### Infrastructure
27+
* updated the package build-system minimum version to setuptools v61.2 and higher
28+
2629
## [Version 5.9.2](https://pypi.python.org/pypi/pyfakefs/5.9.2) (2025-07-30)
2730
Fixes interaction with pytest.
2831

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=45"]
2+
# change this to be "setuptools>=77.0.3" after 3.8 is out of support
3+
requires = ["setuptools>=61.2"]
34
build-backend = "setuptools.build_meta"
45

56
[project]

0 commit comments

Comments
 (0)