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

Fix compatibility with pip master (pip>=20.0) #953

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

atugushev
Copy link
Member

@atugushev atugushev commented Oct 20, 2019

Problem

Cron job is failing, see: https:/jazzband/pip-tools/commit/023d7cabe36277bf9e5a5f37ebca299d87f4e36d/checks

What's fixed

  1. Update import path for PackageFinder/FormatControl Introduce an index sub-package pypa/pip#7144
    PackageFinder moved to pip._internal.index.package_finder
    FormatControl moved to pip._internal.models.format_control
  2. Add require_hashes to Resolver._resolve_one() arguments Remove RequirementSet.require_hashes pypa/pip#7068
    Pass require_hashes directly to Resolver

Additional notes

pragma: no cover prevents suddenly decreasing coverage if pip master fails again. Any other suggestions on how to achieve this?

Changelog-friendly one-liner: Add compatibility with pip>=20.0

Contributor checklist
  • Provided the tests for the changes.
  • Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md on release).
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

PackageFinder moved to pip._internal.index.package_finder
FormatControl moved to pip._internal.models.format_control
See: pypa/pip#7144
@codecov
Copy link

codecov bot commented Oct 20, 2019

Codecov Report

Merging #953 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #953      +/-   ##
=========================================
+ Coverage    99.1%   99.1%   +<.01%     
=========================================
  Files          35      35              
  Lines        2336    2338       +2     
  Branches      301     301              
=========================================
+ Hits         2315    2317       +2     
  Misses         13      13              
  Partials        8       8
Impacted Files Coverage Δ
piptools/repositories/pypi.py 95.16% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 023d7ca...10a2dcb. Read the comment docs.

@atugushev atugushev changed the title Update import path for PackageFinder/FormatControl Fix compatibility with pip master Oct 20, 2019
Copy link
Member

@codingjoe codingjoe left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@atugushev atugushev added this to the 4.3.0 milestone Oct 24, 2019
@atugushev atugushev merged commit 2996077 into jazzband:master Oct 24, 2019
@atugushev atugushev deleted the pip-new-index-sub-package branch October 24, 2019 05:19
@atugushev
Copy link
Member Author

Thanks for reviewing this, @codingjoe! 🎉

@atugushev
Copy link
Member Author

atugushev added a commit to atugushev/pip-tools that referenced this pull request Nov 4, 2019
@atugushev atugushev changed the title Fix compatibility with pip master Fix compatibility with pip master (pip>=20.0) Nov 10, 2019
JiachenSmith pushed a commit to JiachenSmith/pip-tools that referenced this pull request Mar 21, 2023
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.

3 participants