Skip to content

Commit aad7d3d

Browse files
committed
Prepare test for PEP 643 by removing checks on Metadata-Version and Dynamic
1 parent 27475f9 commit aad7d3d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

setuptools/tests/config/test_apply_pyprojecttoml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,8 @@ def core_metadata(dist) -> str:
502502
skip_prefixes += ("Description-Content-Type:",)
503503
# Remove empty lines
504504
skip_lines.add("")
505+
# TODO: Mark static values coming from pyproject.toml with `_static.*`
506+
skip_prefixes += ("Dynamic:",)
505507

506508
result = []
507509
for line in pkg_file_txt.splitlines():

setuptools/tests/test_core_metadata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ def _normalize_metadata(msg: Message) -> str:
462462
for extra in sorted(extras):
463463
msg["Provides-Extra"] = extra
464464

465+
# TODO: Handle lack of PEP 643 implementation in pypa/wheel?
466+
del msg["Metadata-Version"]
467+
465468
return msg.as_string()
466469

467470

0 commit comments

Comments
 (0)