From 96c43decbef6a1e99ae4580a1940495e69bab2bc Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Tue, 24 May 2022 01:32:55 +0200 Subject: [PATCH] wheel: update generator --- src/poetry/core/masonry/builders/wheel.py | 2 +- tests/masonry/builders/test_complete.py | 10 +++++----- tests/masonry/test_api.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/poetry/core/masonry/builders/wheel.py b/src/poetry/core/masonry/builders/wheel.py index aa87dde31..01533e7b6 100644 --- a/src/poetry/core/masonry/builders/wheel.py +++ b/src/poetry/core/masonry/builders/wheel.py @@ -35,7 +35,7 @@ wheel_file_template = """\ Wheel-Version: 1.0 -Generator: poetry {version} +Generator: poetry-core {version} Root-Is-Purelib: {pure_lib} Tag: {tag} """ diff --git a/tests/masonry/builders/test_complete.py b/tests/masonry/builders/test_complete.py index 87e5dfe8f..0517acd0b 100644 --- a/tests/masonry/builders/test_complete.py +++ b/tests/masonry/builders/test_complete.py @@ -82,7 +82,7 @@ def test_wheel_c_extension() -> None: re.match( f"""(?m)^\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: false Tag: cp[23]_?\\d+-cp[23]_?\\d+m?u?-.+ $""", @@ -137,7 +137,7 @@ def test_wheel_c_extension_with_no_setup() -> None: re.match( f"""(?m)^\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: false Tag: cp[23]_?\\d+-cp[23]_?\\d+m?u?-.+ $""", @@ -192,7 +192,7 @@ def test_wheel_c_extension_src_layout() -> None: re.match( f"""(?m)^\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: false Tag: cp[23]_?\\d+-cp[23]_?\\d+m?u?-.+ $""", @@ -247,7 +247,7 @@ def test_complete() -> None: wheel_data == f"""\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: true Tag: py3-none-any """ @@ -371,7 +371,7 @@ def test_complete_no_vcs() -> None: wheel_data == f"""\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: true Tag: py3-none-any """ diff --git a/tests/masonry/test_api.py b/tests/masonry/test_api.py index cb05946b7..3bec5d45e 100644 --- a/tests/masonry/test_api.py +++ b/tests/masonry/test_api.py @@ -141,7 +141,7 @@ def test_prepare_metadata_for_build_wheel() -> None: """ wheel_data = f"""\ Wheel-Version: 1.0 -Generator: poetry {__version__} +Generator: poetry-core {__version__} Root-Is-Purelib: true Tag: py3-none-any """