Merge pull request #8850 from hugovk/pep639

Replace deprecated classifier with licence expression (PEP 639)
This commit is contained in:
Hugo van Kemenade 2025-04-04 18:36:02 +03:00 committed by GitHub
commit cda26be10e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View File

@ -53,7 +53,7 @@ if [[ $(uname) != CYGWIN* ]]; then
# Pyroma uses non-isolated build and fails with old setuptools # Pyroma uses non-isolated build and fails with old setuptools
if [[ $GHA_PYTHON_VERSION == 3.9 ]]; then if [[ $GHA_PYTHON_VERSION == 3.9 ]]; then
# To match pyproject.toml # To match pyproject.toml
python3 -m pip install "setuptools>=67.8" python3 -m pip install "setuptools>=77"
fi fi
# webp # webp

View File

@ -23,5 +23,11 @@ def test_pyroma() -> None:
) )
else: else:
# Should have a perfect score # Should have a perfect score, but pyroma does not support PEP 639 yet.
assert rating == (10, []) assert rating == (
9,
[
"Your package does neither have a license field "
"nor any license classifiers."
],
)

View File

@ -1,7 +1,7 @@
[build-system] [build-system]
build-backend = "backend" build-backend = "backend"
requires = [ requires = [
"setuptools>=67.8", "setuptools>=77",
] ]
backend-path = [ backend-path = [
"_custom_build", "_custom_build",
@ -14,14 +14,14 @@ readme = "README.md"
keywords = [ keywords = [
"Imaging", "Imaging",
] ]
license = { text = "MIT-CMU" } license = "MIT-CMU"
license-files = [ "LICENSE" ]
authors = [ authors = [
{ name = "Jeffrey A. Clark", email = "aclark@aclark.net" }, { name = "Jeffrey A. Clark", email = "aclark@aclark.net" },
] ]
requires-python = ">=3.9" requires-python = ">=3.9"
classifiers = [ classifiers = [
"Development Status :: 6 - Mature", "Development Status :: 6 - Mature",
"License :: OSI Approved :: CMU License (MIT-CMU)",
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",