Skip to content

Commit d18dc73

Browse files
fix(packaging): Update pyproject.toml for modern standards
This commit addresses two packaging issues: - Updates the license field to the modern, non-deprecated format. - Switches to automatic package discovery ( ind:) to resolve a setuptools ambiguity warning regarding the privlog.rules directory.
1 parent 9b37dd6 commit d18dc73

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ requires-python = ">=3.9"
1111
authors = [
1212
{name="Christopher Mariani"}
1313
]
14-
license = { text = "MIT" }
14+
license = "MIT"
15+
license-files = ["LICENSE"]
1516
classifiers = [
1617
"Programming Language :: Python :: 3",
1718
"Programming Language :: Python :: 3.9",
@@ -29,8 +30,9 @@ dependencies = [
2930
[project.scripts]
3031
privlog = "privlog.cli:app"
3132

32-
[tool.setuptools]
33-
packages = ["privlog"]
33+
[tool.setuptools.packages.find]
34+
where = ["."]
35+
include = ["privlog*"]
3436

3537
[tool.setuptools.package-data]
3638
privlog = ["rules/*.yml", "rules/*.yaml"]

0 commit comments

Comments
 (0)