Skip to content

Fix the pinned build-system version - #1212

Merged
mrbean-bremen merged 1 commit into
pytest-dev:mainfrom
kurtmckee:fix-build
Aug 27, 2025
Merged

Fix the pinned build-system version#1212
mrbean-bremen merged 1 commit into
pytest-dev:mainfrom
kurtmckee:fix-build

Conversation

@kurtmckee

Copy link
Copy Markdown
Contributor

Describe the changes

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.

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing
  • For documentation changes: The Read the Docs preview builds and looks as expected

@mrbean-bremen

Copy link
Copy Markdown
Member

Thanks, this looks sensible, as far as I can see!

I'm traveling right now, will have a closer look / merge next week when I have access to a computer.

Comment thread pyproject.toml Outdated
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.

@mrbean-bremen mrbean-bremen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mrbean-bremen
mrbean-bremen merged commit 613a33b into pytest-dev:main Aug 27, 2025
121 checks passed
@kurtmckee
kurtmckee deleted the fix-build branch August 27, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants