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

Use packaging.tags.Tag to represent tag throughout the code #7563

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Jan 6, 2020

This is the standard type used by packaging.tags. Making this change
throughout the code lets us start switching over to using its
tag-generating functions in get_supported().

Progresses #6908. Split from #7354.

@chrahunt chrahunt added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Jan 6, 2020
@chrahunt chrahunt marked this pull request as ready for review January 7, 2020 01:09
@chrahunt chrahunt changed the title Use packaging.tags.Tag instead of Tuple Use packaging.tags.Tag to represent tag throughout the code Jan 7, 2020
This is the standard type used by packaging.tags. Making this change
throughout the code lets us start switching over to using its
tag-generating functions in get_supported().

We also get rid of a test, since it was superseded by `__str__` in
packaging.tags.Tag.
Since we delegate tag formatting to packaging.tags.Tag, we don't need
this function or its tests.
@chrahunt chrahunt force-pushed the maint/use-packaging-tags-tag branch from cd51cff to 58f175f Compare January 7, 2020 06:43
@chrahunt chrahunt merged commit 1d0eb46 into pypa:master Jan 7, 2020
@chrahunt chrahunt deleted the maint/use-packaging-tags-tag branch January 7, 2020 07:16
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Feb 6, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants