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

Add support for installing local wheels #75

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeanChristopheMorinPerso
Copy link
Owner

TODO:

  • Add tests
  • Protect against git+https:// (though that will be though, considering someone can pass anything in requirements files...).

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (573e743) 77.76% compared to head (1fd16be) 75.91%.

Files Patch % Lines
src/rez_pip/pip.py 23.80% 16 Missing ⚠️
src/rez_pip/cli.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
- Coverage   77.76%   75.91%   -1.85%     
==========================================
  Files           8        8              
  Lines         715      739      +24     
  Branches      147      157      +10     
==========================================
+ Hits          556      561       +5     
- Misses        151      170      +19     
  Partials        8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jean-Christophe Morin <[email protected]>
if not _path.is_absolute():
raise ValueError(f"URI is not absolute: {self.download_info.url!r}")

return os.fspath(path)
Copy link
Owner Author

Choose a reason for hiding this comment

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

The return value is bad when there is a space on Windows. See #74 (comment).

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.

1 participant