Skip to content

Commit e228ec0

Browse files
authored
Resolve package build warnings (#1105)
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.
1 parent 6293865 commit e228ec0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project adheres to `Semantic Versioning <https://semver.org/>`__.
99

1010
Fixed
1111
~~~~~
12+
13+
- Fix build system warnings by @kurtmckee in `#1105 <https://github.com/jpadilla/pyjwt/pull/1105>`
1214
- Validate key against allowed types for Algorithm family in `#964 <https://github.com/jpadilla/pyjwt/pull/964>`__
1315
- Add iterator for JWKSet in `#1041 <https://github.com/jpadilla/pyjwt/pull/1041>`__
1416
- Validate `iss` claim is a string during encoding and decoding by @pachewise in `#1040 <https://github.com/jpadilla/pyjwt/pull/1040>`__

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools",
4+
"setuptools>=77.0.3",
55
]
66

77
[project]
@@ -11,7 +11,6 @@ authors = [
1111
classifiers = [
1212
"Development Status :: 5 - Production/Stable",
1313
"Intended Audience :: Developers",
14-
"License :: OSI Approved :: MIT License",
1514
"Natural Language :: English",
1615
"Programming Language :: Python",
1716
"Programming Language :: Python :: 3",
@@ -35,12 +34,10 @@ keywords = [
3534
"token",
3635
"web",
3736
]
37+
license = "MIT"
3838
name = "PyJWT"
3939
requires-python = ">=3.9"
4040

41-
[project.license]
42-
text = "MIT"
43-
4441
[project.optional-dependencies]
4542
crypto = [
4643
"cryptography>=3.4.0",

0 commit comments

Comments
 (0)