-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No need to consider license-files when handling PEP 621 metadata for …
…setuptools plugin (#34) Previously, ini2toml was considering that project.license and project.dynamic were relevant for setting the License-file in PKG-INFO. As clarified in a recent discussion, that is not the case: setuptools can fill License-file even when project.license is static and pyproject.toml' license.file is completely unrelated to setup.cfg' license_files.
- Loading branch information
Showing
17 changed files
with
100 additions
and
141 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
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ name = "Django" | |
authors = [{name = "Django Software Foundation", email = "[email protected]"}] | ||
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." | ||
readme = "README.rst" | ||
license = {text = "BSD-3-Clause"} | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Environment :: Web Environment", | ||
|
@@ -25,14 +26,14 @@ classifiers = [ | |
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dynamic = ["license", "version"] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"asgiref >= 3.3.2", | ||
'backports.zoneinfo; python_version<"3.9"', | ||
"sqlparse >= 0.2.2", | ||
"tzdata; sys_platform == 'win32'", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://www.djangoproject.com/" | ||
|
@@ -57,8 +58,6 @@ zip-safe = false | |
find = {namespaces = false} | ||
|
||
[tool.setuptools.dynamic] | ||
license = "BSD-3-Clause" | ||
license-files = ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"] | ||
version = {attr = "django.__version__"} | ||
|
||
[tool.distutils.bdist_rpm] | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "Flask" | ||
license = {text = "BSD-3-Clause"} | ||
authors = [{name = "Armin Ronacher", email = "[email protected]"}] | ||
maintainers = [{name = "Pallets", email = "[email protected]"}] | ||
description = "A simple framework for building complex web applications." | ||
|
@@ -20,8 +21,8 @@ classifiers = [ | |
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
] | ||
dynamic = ["license", "version"] | ||
requires-python = ">= 3.6" | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://palletsprojects.com/p/flask" | ||
|
@@ -50,8 +51,6 @@ where = ["src"] | |
namespaces = false | ||
|
||
[tool.setuptools.dynamic] | ||
license = "BSD-3-Clause" | ||
license-files = ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"] | ||
version = {attr = "flask.__version__"} | ||
|
||
[tool.pytest.ini_options] | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ build-backend = "setuptools.build_meta" | |
name = "pandas" | ||
description = "Powerful data structures for data analysis, time series, and statistics" | ||
authors = [{name = "The Pandas Development Team", email = "[email protected]"}] | ||
license = {text = "BSD-3-Clause"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
|
@@ -20,13 +21,13 @@ classifiers = [ | |
"Programming Language :: Python :: 3.9", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dynamic = ["license", "version"] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"numpy>=1.18.5", | ||
"python-dateutil>=2.8.1", | ||
"pytz>=2020.1", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
|
@@ -52,6 +53,7 @@ test = [ | |
include-package-data = true | ||
zip-safe = false | ||
platforms = ["any"] | ||
license-files = ["LICENSE"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["templates/*", "_libs/**/*.dll"] | ||
|
@@ -63,10 +65,6 @@ include = ["pandas", "pandas.*"] | |
# resulting files. | ||
namespaces = false | ||
|
||
[tool.setuptools.dynamic] | ||
license = "BSD-3-Clause" | ||
license-files = ["LICENSE"] | ||
|
||
[tool.distutils.build_ext] | ||
inplace = true | ||
|
||
|
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "pluggy" | ||
description = "plugin and hook calling mechanisms for python" | ||
license = {text = "MIT"} | ||
authors = [{name = "Holger Krekel", email = "[email protected]"}] | ||
classifiers = [ | ||
"Development Status :: 6 - Mature", | ||
|
@@ -30,9 +31,9 @@ classifiers = [ | |
"Programming Language :: Python :: 3.10", | ||
] | ||
urls = {Homepage = "https://github.com/pytest-dev/pluggy"} | ||
dynamic = ["license", "version"] | ||
requires-python = ">=3.6" | ||
dependencies = ['importlib-metadata>=0.12;python_version<"3.8"'] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
file = "README.rst" | ||
|
@@ -54,9 +55,5 @@ package-dir = {"" = "src"} | |
platforms = ["unix", "linux", "osx", "win32"] | ||
include-package-data = false | ||
|
||
[tool.setuptools.dynamic] | ||
license = "MIT" | ||
license-files = ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"] | ||
|
||
[tool.devpi.upload] | ||
formats = "sdist.tgz,bdist_wheel" |
Oops, something went wrong.