Skip to content

Commit 4371374

Browse files
authored
Set license and license-files key in project metadata to follow PEP639 (#3699)
Adhere to https://peps.python.org/pep-0639 and specify exact variant of license used (BSD-3-Clause). * Pin setuptools>=77 Initial support added for PEP 639, see https://setuptools.pypa.io/en/stable/history.html#v77-0-0 * Remove tool.setuptools.license-files Fixes `setuptools.errors.InvalidConfigError: 'project.license-files' is defined already. Remove 'tool.setuptools.license-files'` when running `make package`.
1 parent f031875 commit 4371374

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyproject.toml

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

55
[project]
@@ -8,6 +8,8 @@ description = "A Python interface for the Generic Mapping Tools"
88
readme = "README.md"
99
requires-python = ">=3.11"
1010
authors = [{name = "The PyGMT Developers", email = "[email protected]"}]
11+
license = "BSD-3-Clause"
12+
license-files = ["LICENSE.txt"]
1113
keywords = [
1214
"cartography",
1315
"geodesy",
@@ -31,7 +33,6 @@ classifiers = [
3133
"Programming Language :: Python :: 3.11",
3234
"Programming Language :: Python :: 3.12",
3335
"Programming Language :: Python :: 3.13",
34-
"License :: OSI Approved :: BSD License",
3536
]
3637
dependencies = [
3738
"numpy>=1.25",
@@ -58,9 +59,6 @@ all = [
5859
"Changelog" = "https://www.pygmt.org/latest/changes.html"
5960
"Issue Tracker" = "https://github.com/GenericMappingTools/pygmt/issues"
6061

61-
[tool.setuptools]
62-
license-files = ["LICENSE.txt"]
63-
6462
[tool.setuptools.packages.find]
6563
include = ["pygmt*"]
6664
exclude = ["doc"]

0 commit comments

Comments
 (0)