Skip to content

Commit eea073e

Browse files
authored
pep639: setuptools license and license-files fields (#337)
1 parent 82c79be commit eea073e

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
requires = [
44
"Cython",
55
"numpy>=2",
6-
"setuptools>=61",
7-
"setuptools_scm[toml]>=7",
6+
"setuptools>=77.0.3",
7+
"setuptools_scm[toml]>=8",
88
"wheel",
99
]
1010
# Defined by PEP 517
@@ -17,7 +17,6 @@ authors = [
1717
classifiers = [
1818
"Development Status :: 5 - Production/Stable",
1919
"Intended Audience :: Science/Research",
20-
"License :: OSI Approved :: BSD License",
2120
"Operating System :: POSIX",
2221
"Operating System :: POSIX :: Linux",
2322
"Operating System :: Unix",
@@ -44,7 +43,8 @@ keywords = [
4443
"python",
4544
"ocean-science",
4645
]
47-
license = {text = "BSD-3-Clause"}
46+
license = "BSD-3-Clause"
47+
license-files = ["LICENSE"]
4848
name = "stratify"
4949
requires-python = ">=3.10"
5050

@@ -53,7 +53,6 @@ Code = "https://github.com/SciTools-incubator/python-stratify"
5353
Issues = "https://github.com/SciTools-incubator/python-stratify/issues"
5454

5555
[tool.setuptools]
56-
license-files = ["LICENSE"]
5756
zip-safe = false
5857

5958
[tool.setuptools.dynamic]

requirements/py310.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ dependencies:
77
- python=3.10
88

99
# Setup dependencies.
10-
- setuptools
11-
- setuptools-scm
10+
- setuptools>=77.0.3
11+
- setuptools-scm>=8
1212

1313
# Core dependencies.
1414
- numpy>=2

requirements/py311.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ dependencies:
77
- python=3.11
88

99
# Setup dependencies.
10-
- setuptools
11-
- setuptools-scm
10+
- setuptools>=77.0.3
11+
- setuptools-scm>=8
1212

1313
# Core dependencies.
1414
- numpy>=2

requirements/py312.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ dependencies:
77
- python=3.12
88

99
# Setup dependencies.
10-
- setuptools
11-
- setuptools-scm
10+
- setuptools>=77.0.3
11+
- setuptools-scm>=8
1212

1313
# Core dependencies.
1414
- numpy>=2

0 commit comments

Comments
 (0)