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 bug breaking pip-sync on Python 3, raising TypeError #570

Merged
merged 1 commit into from
Sep 27, 2017

Conversation

vphilippon
Copy link
Member

@vphilippon vphilippon commented Sep 27, 2017

Fixes #569
Moved and renamed resolver._dep_key to utils.key_from_ireq and use it
for the InstallRequirements sort in sync.sync.

In the future, we might want to change calls like
key_from_req(ireq.req) to key_from_ireq(ireq), but I'll keep the
change to a minimum here for this bugfix before doing additional tests.

Contributor checklist
  • Provided the tests for the changes
  • Added the changes to CHANGELOG.md
  • Requested (or received) a review from another contributor

@vphilippon vphilippon added this to the 1.10.1 milestone Sep 27, 2017
Fixes jazzband#569
Moved and renamed `resolver._dep_key` to `utils.key_from_ireq` and use it
for the `InstallRequirement`s sort in `sync.sync`.

In the future, we might want to change calls like
`key_from_req(ireq.req)` to `key_from_ireq(ireq)`, but I'll keep the
change to a minimum here for this bugfix.
@vphilippon
Copy link
Member Author

@jdufresne This works on Docker for me, can you confirm this works for you?
(pip install git+https://github.com/vphilippon/pip-tools@fix-pip-sync-py3#egg=pip-tools)

Copy link
Contributor

@davidovich davidovich left a comment

Choose a reason for hiding this comment

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

LGTM

@jdufresne
Copy link
Member

Worked for me! Thanks for the quick fix.

@vphilippon vphilippon merged commit 6651d2d into jazzband:master Sep 27, 2017
@jezdez
Copy link
Member

jezdez commented Sep 27, 2017

@vphilippon 1.10.1 is out.

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.

pip-sync 1.10: TypeError: '<' not supported between instances of 'InstallRequirement' and 'InstallRequirement'
4 participants