Skip to content

Commit 0f546ba

Browse files
committed
Declare license via (the accepted) PEP 639.
The License field is deprecated, as is the trove classifier. Note that pip show does not support properly detecting these yet, but it will. Refs: https://peps.python.org/pep-0639/ Refs: pypa/pip#13112 Refs: pypa/pip#6677
1 parent 9d78774 commit 0f546ba

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ name = "referencing"
1010
description = "JSON Referencing + Python"
1111
requires-python = ">=3.9"
1212
readme = "README.rst"
13+
license = "MIT"
14+
license-files = ["COPYING"]
1315
keywords = ["json", "referencing", "jsonschema", "openapi", "asyncapi"]
1416
authors = [
1517
{ name = "Julian Berman", email = "[email protected]" },
1618
]
1719
classifiers = [
1820
"Development Status :: 3 - Alpha",
1921
"Intended Audience :: Developers",
20-
"License :: OSI Approved :: MIT License",
2122
"Operating System :: OS Independent",
2223
"Programming Language :: Python",
2324
"Programming Language :: Python :: 3.9",
@@ -65,8 +66,8 @@ skip_covered = true
6566

6667
[tool.doc8]
6768
ignore = [
68-
"D000", # see PyCQA/doc8#125
69-
"D001", # one sentence per line, so max length doesn't make sense
69+
"D000", # see PyCQA/doc8#125
70+
"D001", # one sentence per line, so max length doesn't make sense
7071
]
7172

7273
[tool.mypy]
@@ -77,8 +78,8 @@ ignore_errors = true
7778
reportUnnecessaryTypeIgnoreComment = true
7879
strict = ["**/*"]
7980
exclude = [
80-
"**/tests/__init__.py",
81-
"**/tests/test_*.py",
81+
"**/tests/__init__.py",
82+
"**/tests/test_*.py",
8283
]
8384

8485
[tool.ruff]

0 commit comments

Comments
 (0)