Skip to content

Commit b055895

Browse files
committed
Add extra tests for static/dynamic metadata
1 parent 770b4fc commit b055895

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setuptools/tests/test_core_metadata.py

+5
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ class TestPEP643:
425425
description
426426
description = Short description
427427
keywords = one, two
428+
platforms = abcd
428429
[options]
429430
install_requires = requests
430431
"""
@@ -441,6 +442,9 @@ class TestPEP643:
441442
readme = {text = "Long\\ndescription", content-type = "text/plain"}
442443
keywords = ["one", "two"]
443444
dependencies = ["requests"]
445+
[tool.setuptools]
446+
provides = ["abcd"]
447+
obsoletes = ["abcd"]
444448
"""
445449
),
446450
}
@@ -460,6 +464,7 @@ def test_static_config_has_no_dynamic(self, file, tmpdir_cwd):
460464
{"requires-python": ("python_requires", ">=3.12")},
461465
{"author-email": ("author_email", "[email protected]")},
462466
{"keywords": ("keywords", ["hello", "world"])},
467+
{"platform": ("platforms", ["abcd"])},
463468
# Multiple dynamic fields
464469
{
465470
"summary": ("description", "hello world"),

0 commit comments

Comments
 (0)