-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Support relative paths and regularize path handling and formatting #1650
Support relative paths and regularize path handling and formatting #1650
Commits on Oct 3, 2022
-
Add optional param from_dir to format_requirement
If passed, it will attempt to relative-ize the resulting URL (if possible). Add helper: fragment_string
Configuration menu - View commit details
-
Copy full SHA for a912b13 - Browse repository at this point
Copy the full SHA a912b13View commit details -
Configuration menu - View commit details
-
Copy full SHA for c90d969 - Browse repository at this point
Copy the full SHA c90d969View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11ffba6 - Browse repository at this point
Copy the full SHA 11ffba6View commit details -
Add abs_ireq for normalizing ireqs, and related tests
Tests: - abs_ireq_preserves_source_ireqs - format_requirement_impossible_relative_path_becomes_absolute (Windows-only) Also, ensure copy_install_requirement preserves our custom attributes.
Configuration menu - View commit details
-
Copy full SHA for 65c489c - Browse repository at this point
Copy the full SHA 65c489cView commit details -
Update test to expect and accept more Windows file URIs
Specifically ones which start like file:///C:/
Configuration menu - View commit details
-
Copy full SHA for 987d90b - Browse repository at this point
Copy the full SHA 987d90bView commit details -
Add writer test for annotation accuracy regarding source ireqs
Ensure source ireqs' comes_from attr is credited in annotations
Configuration menu - View commit details
-
Copy full SHA for 6713b60 - Browse repository at this point
Copy the full SHA 6713b60View commit details -
Add optional param from_dir to _comes_from_as_string
This brings with it more involved string manipulation
Configuration menu - View commit details
-
Copy full SHA for 0f2cf1d - Browse repository at this point
Copy the full SHA 0f2cf1dView commit details -
Add optional from_dir param to parse_requirements
If passed, from_dir will be used instead of CWD to interpret relative paths. Special care is taken to guarantee _was_relative in the yielded ireqs, if originally relative. When calling format_requirement, _was_relative's presence now determines what's passed as from_dir: either CWD or None (None leads to an absolute path output) For ths to work we also re-assign the _was_relative attr to ireqs generated from candidates in the backtracking resolver.
Configuration menu - View commit details
-
Copy full SHA for f2350e1 - Browse repository at this point
Copy the full SHA f2350e1View commit details -
Add flag for compile: --write-relative-to-output
With test, and needed changes: - Use this flag to decide what to pass as from_dir to parse_requirements - Add init param to OutputWriter: write_relative_to_output - Add corresponding from_dir logic and use to OutputWriter._format_requirement - Add test_write_relative_to_output which runs with the new flag both on and off
Configuration menu - View commit details
-
Copy full SHA for 8edf988 - Browse repository at this point
Copy the full SHA 8edf988View commit details -
Add test_local_editable_vcs_package
This ensures absolute intact paths for git+file: reqs
Configuration menu - View commit details
-
Copy full SHA for bc00d62 - Browse repository at this point
Copy the full SHA bc00d62View commit details -
Add flag to sync: --read-relative-to-input
With test_sync_relative_path If the reqs in the output were written relative to that output file (pip-compile --write-relative-to-output), then it's wise for pip-sync to interpret reqs it finds in there from the location of the output file. This is now possible with pip-sync --read-relative-to-input. To be clear: pip-sync's "input" is pip-compile's "output."
Configuration menu - View commit details
-
Copy full SHA for a9784a1 - Browse repository at this point
Copy the full SHA a9784a1View commit details -
Absolute-ize src_file paths and more safely determine output file paths
This fixes at least two problems, for which tests are added.
Configuration menu - View commit details
-
Copy full SHA for 996f21c - Browse repository at this point
Copy the full SHA 996f21cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a92729f - Browse repository at this point
Copy the full SHA a92729fView commit details -
Add flag for compile: --read-relative-to-input
And add tests via parameterization
Configuration menu - View commit details
-
Copy full SHA for f46a2d5 - Browse repository at this point
Copy the full SHA f46a2d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e55700 - Browse repository at this point
Copy the full SHA 7e55700View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4004f96 - Browse repository at this point
Copy the full SHA 4004f96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ef7b98 - Browse repository at this point
Copy the full SHA 7ef7b98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48d05fd - Browse repository at this point
Copy the full SHA 48d05fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6084450 - Browse repository at this point
Copy the full SHA 6084450View commit details -
Avoid choking on a relative path without scheme prefix, with fragment
e.g. ../../rawr#egg=rawr-cli
Configuration menu - View commit details
-
Copy full SHA for 8117c1d - Browse repository at this point
Copy the full SHA 8117c1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ece9e14 - Browse repository at this point
Copy the full SHA ece9e14View commit details -
Improve consistency of output regarding fragments and extras
This fixes false-positive _was_relative assignments for some direct references like: ptrender[yaml] @ file:///home/andy/Code/ptrender
Configuration menu - View commit details
-
Copy full SHA for 3345abc - Browse repository at this point
Copy the full SHA 3345abcView commit details -
Add test_url_package_with_extras and fix it for backtracking
An ireq's extras may be any Collection, not necessarily a set, so we can't rely on set operators working implicity.
Configuration menu - View commit details
-
Copy full SHA for eee3e8a - Browse repository at this point
Copy the full SHA eee3e8aView commit details -
Remove fragment_string parameter omit_extras
As we always want to set that True
Configuration menu - View commit details
-
Copy full SHA for 4ed481d - Browse repository at this point
Copy the full SHA 4ed481dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d27659 - Browse repository at this point
Copy the full SHA 2d27659View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88eb70d - Browse repository at this point
Copy the full SHA 88eb70dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6468e37 - Browse repository at this point
Copy the full SHA 6468e37View commit details -
Construct relative req lines to match what pip install understands
Based on findings at jazzband#1329 (comment)
Configuration menu - View commit details
-
Copy full SHA for aa3ee0f - Browse repository at this point
Copy the full SHA aa3ee0fView commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f853ba9 - Browse repository at this point
Copy the full SHA f853ba9View commit details