Skip to content

Commit ccf6f3e

Browse files
committed
fix: migrate project.license to SPDX expression (#260)
Drop the deprecated License :: trove classifier and switch project.license from the PEP 621 table form to an SPDX string expression, silencing the setuptools >=77 deprecation warnings. Bump build-system to setuptools>=77 as required by the SPDX string form (PEP 639).
1 parent 1d872d3 commit ccf6f3e

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
---------
33

4+
Unreleased
5+
~~~~~~~~~~
6+
* Migrate ``project.license`` to an SPDX expression and drop the deprecated
7+
``License ::`` trove classifier, silencing the ``setuptools >=77``
8+
deprecation warning. (#260)
9+
410
v0.16.2
511
~~~~~~~
612
* Add support for Python 3.13.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
[build-system]
2-
requires = ["setuptools>=61", "wheel", "setuptools_scm>=6.2"]
2+
requires = ["setuptools>=77", "wheel", "setuptools_scm>=6.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "python-barcode"
77
description = "Create standard barcodes with Python. No external modules needed. (optional Pillow support included)."
88
readme = "README.rst"
99
requires-python = ">=3.9"
10-
license = { text = "MIT" }
10+
license = "MIT"
1111
authors = [
1212
{ name = "Hugo Osvaldo Barrera et al", email = "hugo@whynothugo.nl" }
1313
]
1414
classifiers = [
1515
"Development Status :: 5 - Production/Stable",
1616
"Environment :: Console",
1717
"Intended Audience :: Developers",
18-
"License :: OSI Approved :: MIT License",
1918
"Operating System :: OS Independent",
2019
"Programming Language :: Python",
2120
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)