Update the build-system requirements; resolve warnings and errors #327
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.
The current situation
The current build-system requires setuptools 40.8.0 or higher. However, setuptools v40.8.0 doesn't have a
build_meta
submodule.To demonstrate the problem, the following commands were run:
This results in the following error message:
Upgrading to the latest version of setuptools, 80.9.0, allows the package to build:
However, warnings are emitted:
The solution
This change addresses the lower setuptools bound based on the warnings: it sets the setuptools minimum version to v77.0.1 (v77.0.0 was not released to PyPI).
In addition, it addresses the license-related warnings by switching to the SPDX short identifier
"Apache-2.0"
and by removing theLicense
trove classifier.With this change in place, the package can be built on the lowest supported setuptools version as well as the latest released version.