Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a pp3-none-any tag #466

Merged
merged 4 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion packaging/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,7 @@ def sys_tags(*, warn: bool = False) -> Iterator[Tag]:
else:
yield from generic_tags()

yield from compatible_tags()
if interp_name == "pp":
yield from compatible_tags(interpreter="pp3")
else:
yield from compatible_tags()
11 changes: 11 additions & 0 deletions tests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,3 +1180,14 @@ def manylinux_compatible(tag_major, tag_minor, tag_arch):
"linux_x86_64",
]
assert platforms == expected

def test_pypy_first_tag(self, monkeypatch):
mattip marked this conversation as resolved.
Show resolved Hide resolved
# When building the complete list of pypy tags, make sure the first
# <interpreter>-none-any one is pp3-none-any
monkeypatch.setattr(tags, "interpreter_name", lambda: "pp")

for tag in tags.sys_tags():
if tag.platform == "any":
mattip marked this conversation as resolved.
Show resolved Hide resolved
break

assert tag == tags.Tag("pp3", "none", "any")