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

Drop dependency on attrs #179

Merged
merged 1 commit into from Aug 15, 2019
Merged

Drop dependency on attrs #179

merged 1 commit into from Aug 15, 2019

Conversation

dcermak
Copy link
Contributor

@dcermak dcermak commented Aug 13, 2019

  • 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 #178

- 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
Copy link
Member

@pradyunsg pradyunsg left a 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.

Copy link
Member

@brettcannon brettcannon left a 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.

packaging/tags.py Show resolved Hide resolved
packaging/tags.py Show resolved Hide resolved
@brettcannon brettcannon merged commit 9bc2596 into pypa:master Aug 15, 2019
@brettcannon
Copy link
Member

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)
Copy link
Contributor

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.

Copy link
Member

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.

@dcermak dcermak deleted the drop_attrs branch August 19, 2019 09:49
@benoit-pierre
Copy link
Member

I would be great if there was a new release with this change.

@pradyunsg
Copy link
Member

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.

@pradyunsg
Copy link
Member

I would be great

Related: you're pretty great already @benoit-pierre, if you ask me. :)

@brettcannon
Copy link
Member

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

19.1 circular dependencies
5 participants