Skip to content

Commit

Permalink
Adequate tests to the latest changes in wheel 0.41.1 (#4003)
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri authored Aug 7, 2023
2 parents 78cc54e + cdd30bd commit 1d94207
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,17 @@ def test_build_with_pyproject_config(self, tmpdir, setup_script):
"foo-0.1.dist-info/RECORD",
}
assert license == "---- placeholder MIT license ----"

metadata = metadata.replace("(", "").replace(")", "")
# ^-- compatibility hack for pypa/wheel#552

for line in (
"Summary: This is a Python package",
"License: MIT",
"Classifier: Intended Audience :: Developers",
"Requires-Dist: appdirs",
"Requires-Dist: tomli (>=1) ; extra == 'all'",
"Requires-Dist: importlib ; (python_version == \"2.6\") and extra == 'all'",
"Requires-Dist: tomli >=1 ; extra == 'all'",
"Requires-Dist: importlib ; python_version == \"2.6\" and extra == 'all'",
):
assert line in metadata

Expand Down

0 comments on commit 1d94207

Please sign in to comment.