-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Do not download editables while preparing requirements #9123
Conversation
5760ea8
to
8556c95
Compare
e91e127
to
b0baedf
Compare
So 3 things here:
|
Thanks for the review and fixes, @pradyunsg ! |
tests/functional/test_download.py
Outdated
""" | ||
editable_path = data.src / 'simplewheel-1.0' | ||
requirements_path = tmpdir / "requirements.txt" | ||
requirements_path.write_text("-e " + str(editable_path.resolve()) + "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERROR: R:Temppytest-of-VssAdministratorpytest-1popen-gw1test_download_editable0datasrcsimplewheel-1.0 is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).
@pfmoore @uranusjr would you have any idea why os.path.realpath
that's running behind this call is messing up the contents of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is happening only on the Windows runners, and "it works on my machine". 😅
7a4b91e
to
30fe899
Compare
Can you add a print so that we get the value from the CI? And, maybe rebase on master, just-in-case? |
Downloading is done at the end of the download command just like any other requirement. This is necessary to avoid archiving editable requirements to a zip file when running pip wheel.
30fe899
to
a24d198
Compare
Looks like paths must be have forward slashes in req files. There is another test doing that here. |
So it's 🟢 now :) |
\o/ |
Fixes #9122