From d62a4a89574e8d3e02e3b3b77ca0a63efa16ad2a Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Wed, 22 Oct 2025 08:24:44 -0500 Subject: [PATCH] Resolve package build warnings When building pyjwt, a number of warnings are thrown: ``` SetuptoolsDeprecationWarning: License classifiers are deprecated. ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` ``` SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` These warnings are addressed in the obvious ways, and the build system (`setuptools`) now requires 77.0.3 or higher to ensure base compatibility with the changes. --- CHANGELOG.rst | 2 ++ pyproject.toml | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cb29564d..301fa0c5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,8 @@ This project adheres to `Semantic Versioning `__. Fixed ~~~~~ + +- Fix build system warnings by @kurtmckee in `#1105 ` - Validate key against allowed types for Algorithm family in `#964 `__ - Add iterator for JWKSet in `#1041 `__ - Validate `iss` claim is a string during encoding and decoding by @pachewise in `#1040 `__ diff --git a/pyproject.toml b/pyproject.toml index c09ee936..19748ce5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools", + "setuptools>=77.0.3", ] [project] @@ -11,7 +11,6 @@ authors = [ classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", @@ -35,12 +34,10 @@ keywords = [ "token", "web", ] +license = "MIT" name = "PyJWT" requires-python = ">=3.9" -[project.license] -text = "MIT" - [project.optional-dependencies] crypto = [ "cryptography>=3.4.0",