Skip to content

Commit 4f453e5

Browse files
authored
Update license* metadata and include third-party licenses (#729)
* Make `license` SPDX compatible * Use `project`'s `license-files` entry * Package licenses for Blosc and its dependencies * Add news entry for license packaging fixes * Require Setuptools 77+ Needed for newer `license*` metadata handling. * Drop deprecated trove-classifier for license
1 parent 1fe396a commit 4f453e5

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/release.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Fixes
3232
* Fix ``const`` discard warnings in ``fletcher32``.
3333
By :user:`John Kirkham <jakirkham>`, :issue:`728`
3434

35+
* Update ``license*`` metadata and include third-party licenses.
36+
By :user:`John Kirkham <jakirkham>`, :issue:`729`
37+
3538
Maintenance
3639
~~~~~~~~~~~
3740

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=64",
3+
"setuptools>=77",
44
"setuptools-scm[toml]>=6.2",
55
"Cython",
66
"py-cpuinfo",
@@ -24,7 +24,6 @@ classifiers = [
2424
"Intended Audience :: Developers",
2525
"Intended Audience :: Information Technology",
2626
"Intended Audience :: Science/Research",
27-
"License :: OSI Approved :: MIT License",
2827
"Programming Language :: Python",
2928
"Topic :: Software Development :: Libraries :: Python Modules",
3029
"Operating System :: Unix",
@@ -34,7 +33,12 @@ classifiers = [
3433
maintainers = [
3534
{ name = "Alistair Miles", email = "[email protected]" },
3635
]
37-
license = { text = "MIT" }
36+
license = "MIT"
37+
license-files = [
38+
"LICENSE.txt",
39+
"c-blosc/LICENSE.txt",
40+
"c-blosc/LICENSES/*",
41+
]
3842

3943
[project.urls]
4044
"Bug Tracker" = "https://github.com/zarr-developers/numcodecs/issues"
@@ -94,7 +98,6 @@ crc32c = [
9498
"numcodecs.zfpy" = "numcodecs.zarr3:ZFPY"
9599

96100
[tool.setuptools]
97-
license-files = ["LICENSE.txt"]
98101
package-dir = {"" = "."}
99102
packages = ["numcodecs", "numcodecs.tests"]
100103
zip-safe = false

0 commit comments

Comments
 (0)