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
Drop dependency on attrs #179
Conversation
- replace tags.Tag with a custom implementation instead of using @attr.s - add a sanity check for __hash__() - drop attrs from setup.py This fixes pypa#178
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm cool with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are going to drop attr
then I would argue to keep the replacement as simple as possible while still providing the expected functionality.
Thanks, @dcermak for the PR and the patience while I realized why I was wrong. |
def __init__(self, interpreter, abi, platform): | ||
self._interpreter = str.lower(interpreter) | ||
self._abi = str.lower(abi) | ||
self._platform = str.lower(platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be interpreter.lower()
/ abi.lower()
/ etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asottile it wouldn't hurt, but it technically isn't wrong. :) I'll quickly fix it separately.
I would be great if there was a new release with this change. |
Yep -- @brettcannon do you reckon you can find time to cut a release in the coming week? I don't know when I'd be able to make time TBH. |
Related: you're pretty great already @benoit-pierre, if you ask me. :) |
@pradyunsg I'll see if I can find the time, but it might not be until the latter half of September (although I might squeeze some time in during the Python core dev sprint before then). |
tags.Tag
with a custom implementation instead of using@attr.s
__hash__()
setup.py
This fixes #178