Skip to content

pyproject.toml: bump setuptools for PEP 639 #2698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

threexc
Copy link
Contributor

@threexc threexc commented Jul 28, 2025

Make sure we use setuptools 77.0.0 or newer, which ensures PEP 639 support. This should've been bumped along with the changes in 7402a48, otherwise the user can run into errors like the following:

|ValueError: invalid pyproject.toml config: project.license.
| configuration error: project.license must be valid exactly by one definition (2 matches found):
| - keys:
| 'file': {type: string}
| required: ['file']
| - keys:
| 'text': {type: string}
| required: ['text']
| ERROR Backend subprocess exited when trying to invoke build_wheel

See also #2690.

Make sure we use setuptools 77.0.0 or newer, which ensures PEP 639
support. This should've been bumped along with the changes in 7402a48,
otherwise the user can run into errors like the following:

|ValueError: invalid pyproject.toml config: `project.license`.
|    configuration error: `project.license` must be valid exactly by one definition (2 matches found):
|        - keys:
|            'file': {type: string}
|          required: ['file']
|        - keys:
|            'text': {type: string}
|          required: ['text']
|    ERROR Backend subprocess exited when trying to invoke build_wheel

See also PyO3#2690.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@messense messense merged commit b9bf0e4 into PyO3:main Jul 30, 2025
43 checks passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Aug 6, 2025
https://build.opensuse.org/request/show/1297806
by user mia + dimstar_suse
- Update to 1.9.3
  * Add support for RISC-V architecture in manylinux
    gh#PyO3/maturin#2694
  * pyproject.toml: bump setuptools for PEP 639
    gh#PyO3/maturin#2698
  * Fix PEP 639 support for source distributions
    gh#PyO3/maturin#2704
  * Fix relative README rewrite in source distributions
    gh#PyO3/maturin#2705

- Update to 1.9.2
  * Respect PEP 621 dynamic fields when merging Cargo.toml metadata
    gh#PyO3/maturin#2672
  * Only use all_features=true in sdist when local path
    dependencies exist
    gh#PyO3/maturin#2674
  * auditwheel: add manylinux_2_26 policy
    gh#PyO3/maturin#2677
  * Use user-specified library search paths in RUSTFLAGS in
    auditwheel
    gh#PyO3/maturin#2676
  * pyproject.toml: add license-files
    gh#PyO3/maturin#2690
  * Update manylinux/musllinux
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