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

Fixed sorting for non editable requirement urls #425

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Fixed sorting for non editable requirement urls #425

merged 1 commit into from
Nov 15, 2019

Conversation

vinayinvicible
Copy link
Contributor

No description provided.

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this affects your implementation, but something to consider -- otherwise looks good 👍

return self.value.lower().partition(b'=')[-1]
for egg in (b'#egg=', b'&egg='):
if egg in self.value:
return self.value.lower().partition(egg)[-1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that egg= is optional when non-editable:

git+https://github.com/asottile/astpretty
$ pip install -r t.txt
...
Successfully installed astpretty-1.6.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, egg is optional when installing in non-editable mode.
But in that case we don't really have a way determine the package name.

@asottile asottile merged commit 8a36145 into pre-commit:master Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants