Skip to content

Commit

Permalink
wheel: update generator
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed May 24, 2022
1 parent 38a29fe commit 96c43de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/poetry/core/masonry/builders/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
Expand Down
10 changes: 5 additions & 5 deletions tests/masonry/builders/test_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?-.+
$""",
Expand Down Expand Up @@ -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?-.+
$""",
Expand Down Expand Up @@ -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?-.+
$""",
Expand Down Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/masonry/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit 96c43de

Please sign in to comment.