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 Jan 8, 2025
1 parent 770b4fc commit b055895
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 @@ -425,6 +425,7 @@ class TestPEP643:
description
description = Short description
keywords = one, two
platforms = abcd
[options]
install_requires = requests
"""
Expand All @@ -441,6 +442,9 @@ class TestPEP643:
readme = {text = "Long\\ndescription", content-type = "text/plain"}
keywords = ["one", "two"]
dependencies = ["requests"]
[tool.setuptools]
provides = ["abcd"]
obsoletes = ["abcd"]
"""
),
}
Expand All @@ -460,6 +464,7 @@ def test_static_config_has_no_dynamic(self, file, tmpdir_cwd):
{"requires-python": ("python_requires", ">=3.12")},
{"author-email": ("author_email", "snoopy@peanuts.com")},
{"keywords": ("keywords", ["hello", "world"])},
{"platform": ("platforms", ["abcd"])},
# Multiple dynamic fields
{
"summary": ("description", "hello world"),
Expand Down

0 comments on commit b055895

Please sign in to comment.