Fix incorrect build-system
requirements
#8558
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change fixes incorrect
build-system
requirements and resolves deprecation warnings thrown in CI when building using the latest setuptools versions. [recent example]Reproducing locally
Verifying the current minimum setuptools version
The current
build-system
requirements were confirmed to be unusable by running the following commands:This results in a crash from within setuptools.
Testing setuptools v77.0.0
The
build-system
was updated and retested. (Note that "wheel" is no longer a recommended requirement, and that setuptools v77.0.0 was never actually published.)The build succeeded.
Resolving build warnings
Finally, the latest version of setuptools was installed and all warnings were resolved.
The following warnings were displayed:
project.license
as a TOML table is deprecated!!Please use a simple string containing a SPDX expression for
project.license
. You can also useproject.license-files
. (Both options available on setuptools>=77.0.0).License classifiers are deprecated.
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
Therefore, the
license
andclassifiers
inpyproject.toml
were also updated.