Skip to content

Commit

Permalink
Add extra tests for static/dynamic metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Oct 21, 2024
1 parent c338d90 commit b3566fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setuptools/tests/test_core_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ class TestPEP643:
description
description = Short description
keywords = one, two
platforms = abcd
[options]
install_requires = requests
"""
Expand All @@ -420,6 +421,9 @@ class TestPEP643:
readme = {text = "Long\\ndescription", content-type = "text/plain"}
keywords = ["one", "two"]
dependencies = ["requests"]
[tool.setuptools]
provides = ["abcd"]
obsoletes = ["abcd"]
"""
),
}
Expand All @@ -439,6 +443,7 @@ def test_static_config_has_no_dynamic(self, file, tmpdir_cwd):
{"requires-python": ("python_requires", ">=3.12")},
{"author-email": ("author_email", "[email protected]")},
{"keywords": ("keywords", ["hello", "world"])},
{"platform": ("platforms", ["abcd"])},
# Multiple dynamic fields
{
"summary": ("description", "hello world"),
Expand Down

0 comments on commit b3566fc

Please sign in to comment.