-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove license and license-files from dynamic in setuptools plugin (#27)
Now that we clarified that PEP 621 does not specify anything about the (non-standard) core metadata field License-file and that it is not necessary to add license to dynamic to be able to automatically fill it, there is no motivation for keeping this field in tool.setuptools.dynamic instead of tool.setuptools (directly).
- Loading branch information
Showing
5 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/invalid-examples/pretend-setuptools/pep621/license/empty.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`project.license` must be valid exactly by one definition (0 matches found) |
26 changes: 26 additions & 0 deletions
26
tests/invalid-examples/pretend-setuptools/pep621/license/empty.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[project] | ||
name = "some-project" | ||
author = { name = "Anderson Bravalheri" } | ||
description = "Some description" | ||
readme = "README.rst" | ||
license = {} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Topic :: Utilities", | ||
] | ||
dynamic = ["version"] | ||
requires-python = ">=3.6" | ||
dependencies = [ | ||
"importlib-metadata; python_version<\"3.8\"", | ||
"appdirs>=1.4.4,<2", | ||
] | ||
|
||
[tool.setuptools] | ||
zip-safe = false | ||
include-package-data = true | ||
exclude-package-data = { "pkg1" = ["*.yaml"] } | ||
package-dir = {"" = "src"} # all the packages under the src folder | ||
platforms = ["any"] | ||
|
||
[tool.setuptools.packages] | ||
find = { where = ["src"], exclude = ["tests"], namespaces = true } |