From b055895fa337a6e03a29c2ea6493b6b778d2ba46 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 21 Oct 2024 19:14:41 +0100 Subject: [PATCH] Add extra tests for static/dynamic metadata --- setuptools/tests/test_core_metadata.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setuptools/tests/test_core_metadata.py b/setuptools/tests/test_core_metadata.py index eba48718d6..b1edb79b40 100644 --- a/setuptools/tests/test_core_metadata.py +++ b/setuptools/tests/test_core_metadata.py @@ -425,6 +425,7 @@ class TestPEP643: description description = Short description keywords = one, two + platforms = abcd [options] install_requires = requests """ @@ -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"] """ ), } @@ -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"),