Tzu-ping Chung
36065cf2e0
Vendor ResolveLib from Git
...
We are vendoring from the Git source for now, so the bug fix turnover
can be quicker if there's anything wrong in the resolution logic.
HEAD up-to-date as of 2020-03-12.
2020-03-12 22:37:30 +08:00
Pradyun Gedam
4f6bef6eb4
Merge pull request #7792 from pradyunsg/misc/utils-tags
...
Rename pep425tags -> utils.compatibility_tags
2020-03-12 14:46:52 +05:30
Paul Moore
9b10b93503
Implement the resolvelib Requirement class
2020-03-11 11:37:56 +00:00
Tzu-ping Chung
fc810d7353
Add --unstable-feature=resolver
...
This introduces a new general option --unstable-feature that can be used
to opt into "preview" features in pip not enabled by default. Currently
the only available feature is "resolver".
A stub resolver interface (which would fail on invocation) is provided
to respond to the flag.
The --unstable-feature option is hidden from --help since the resolver
does not yet work. This suppression should be removed when we release
the resolver for general/public testing.
2020-03-11 18:51:01 +08:00
Xavier Fernandez
a096d4cd76
cli: revert format() related changes
...
Since the progress bar API is % related, it seems simpler to stick with
it.
2020-03-10 13:21:53 +01:00
Pradyun Gedam
4d1932fcdd
Merge pull request #7826 from jaraco/bugfix/6973-format-method
...
Convert the remaining '%' formatters to '.format'.
2020-03-10 14:58:25 +05:30
Jason R. Coombs
047e249767
Update src/pip/_internal/cli/progress_bars.py
...
Co-Authored-By: Xavier Fernandez <xav.fernandez@gmail.com>
2020-03-08 18:36:01 -04:00
Jason R. Coombs
9669c0b312
Update src/pip/_internal/cli/progress_bars.py
...
Co-Authored-By: Xavier Fernandez <xav.fernandez@gmail.com>
2020-03-08 18:35:53 -04:00
Chris Hunt
fad99dce4a
Inline _copy_file
2020-03-08 18:10:17 -04:00
Chris Hunt
cd5d8b7865
Inline unconditional block
2020-03-08 18:10:17 -04:00
Chris Hunt
36d52edeb4
Inline variable
2020-03-08 18:10:17 -04:00
Chris Hunt
e1d1b1c192
Remove dead code
...
Since download_location doesn't exist, this block could've never been
executed.
2020-03-08 18:10:16 -04:00
Chris Hunt
b0cd7a7a0b
Assert that download_location doesn't exist in _copy_file
2020-03-08 18:04:43 -04:00
Chris Hunt
420a6d26de
Pass combined download_location to _copy_file
...
This makes the function arguments look more like `src` and `dest`,
which makes more sense for a file copying function.
2020-03-08 18:01:49 -04:00
Jason R. Coombs
def75dc691
Fix issue where format_map isn't available on Python 2
2020-03-06 12:53:54 -05:00
Jason R. Coombs
6282a307dc
👹 Feed the hobgoblins (delint).
2020-03-06 12:43:10 -05:00
Jason R. Coombs
3511d3d493
Convert the remaining '%' formatters to '.format'. Fixes #6973 .
2020-03-06 12:43:03 -05:00
Christopher Hunt
f2fbc7da81
Merge pull request #7812 from atugushev/fix-preprocess-docstrig
...
Fix the docstring of preprocess() function
2020-03-03 20:23:16 -05:00
KOLANICH
958f4ec432
Added `__repr__` for `Configuration`.
2020-03-03 13:36:50 +03:00
Albert Tugushev
63d93b4c7e
Fix the docstring of preprocess() function
2020-03-02 22:48:46 +07:00
Xavier Fernandez
b42a069920
utils.appdirs: drop unused user_data_dir function
...
The vendored appdir's user_data_dir function is used inside
user_config_dir which is itself tested.
2020-02-28 10:58:54 +01:00
sinscary
716c9202ee
Raise error if --user and --target arguments are used together
2020-02-27 12:22:56 +05:30
sinscary
268a2dd818
Revert "Raise error if --user and --target arguments are used together"
...
This reverts commit b6d775d98837a5eaf2cba73a719821c89a71fc8f.
2020-02-27 12:22:56 +05:30
sinscary
8380b2b09a
Raise error if --user and --target arguments are used together
2020-02-27 12:22:56 +05:30
Pradyun Gedam
3fa356a772
Update references to pep425tags
2020-02-26 10:24:43 -08:00
Pradyun Gedam
22bbc67bdd
Move pep425tags -> utils.compatibility_tags
2020-02-26 10:20:21 -08:00
Pradyun Gedam
c04798f5fd
Merge pull request #7786 from xavfernandez/appdirs_patch
...
vendoring: move /etc appdir patch to pip wrapper
2020-02-26 02:57:47 -08:00
Xavier Fernandez
db377cec28
vendoring: move /etc appdir patch to pip wrapper
2020-02-25 23:52:18 +01:00
Chris Hunt
fd74d0362c
Move legacy_resolve to resolution.legacy.resolver
...
This gives us a concrete place to put the new resolver code and
resolver-specific modules (`resolution.resolver`).
The reason for another level of hierarchy compared to other modules
is to allow us to move other modules here as they
become implementation details of the legacy resolver. Examples I
have in mind are: `req.req_set`, `req.req_install`,
`req.constructors`, and `operations.prepare`.
2020-02-25 09:04:06 -05:00
Chris Hunt
60a2fa4dce
Inline unconditionally-executed blocks
2020-02-23 18:05:09 -05:00
Chris Hunt
45911713db
Globally manage temp build dir
...
This will let us remove the indentation associated with the `with`
statement and eventually refactor these functions more easily.
2020-02-23 18:04:46 -05:00
Christopher Hunt
ea47be571e
Merge pull request #7772 from chrahunt/refactor/command-level-scoped-tracker
...
Use Command context helper to cleanup requirement tracker
2020-02-24 06:51:06 +08:00
Christopher Hunt
94c83c0766
Merge pull request #7771 from chrahunt/refactor/remove-extra-no-clean
...
Do not update `no_clean` option value in install/wheel
2020-02-24 06:50:54 +08:00
Anudit Nagar
e6ed38dbce
Add info log when wheel building is skipped ( #7768 )
2020-02-23 22:56:36 +01:00
Chris Hunt
eb91e8ca39
Use Command context helper to cleanup requirement tracker
...
The lifetime of the requirement tracker will be essentially the same,
but now we have more flexibility on where in the code we create it.
In a followup we can do the same thing with build_dir and remove the
`with` statement (and its indentation) entirely from these commands.
2020-02-23 14:37:01 -05:00
Chris Hunt
83b0295be9
Dedent block
2020-02-23 14:29:01 -05:00
Chris Hunt
ccc6d77a73
Do not update `no_clean` option value on PreviousBuildDirError
...
Since a recent refactoring of our temporary directory handling,
`no_clean` is only read prior to these `except` blocks. Since it's not
needed, remove it!
2020-02-23 14:28:59 -05:00
Christopher Hunt
40523794d8
Merge pull request #7747 from pfmoore/parsed_requirement
...
Refactor parse_requirements to be independent of InstallRequirement
2020-02-24 00:21:28 +08:00
Christopher Hunt
2b6fb95ba4
Reorder imports
2020-02-23 23:44:13 +08:00
Anudit Nagar
082c0f01d2
Update old-style formatting to new-style formatting ( #7762 )
2020-02-21 21:48:14 +05:30
Nitesh Sharma
ce1e0f470a
Move UI helpers to cli subpackage ( #6727 )
2020-02-21 14:01:13 +05:30
Pradyun Gedam
e648e00dc0
pip is spelt all-lowercase
2020-02-18 10:55:16 +05:30
Pradyun Gedam
49b978dd8a
Make heading style consistent
2020-02-18 10:55:15 +05:30
Pradyun Gedam
9944ad114f
Make page-title heading style consistent
2020-02-18 10:55:11 +05:30
Paul Moore
f085bb0e0e
Merge branch 'master' into parsed_requirement
2020-02-14 20:34:44 +00:00
Paul Moore
aac5d821f9
Move make_requirement to pip._internal.req.constructors (and rename it)
2020-02-14 12:22:50 +00:00
Paul Moore
90e4eb3eed
Make parse_requirements return a ParsedRequirement
2020-02-14 11:52:53 +00:00
Pradyun Gedam
cdae7277ef
Merge pull request #7596 from uranusjr/6446-link-url-quoting
...
Fix incorrect quoting Link.url
2020-02-14 16:00:43 +05:30
Paul Moore
e2a57fd1e6
Refactor to reduce coupling.
...
* Make ParsedLine record the type of line
* Split handle_line to allow passing arguments only where needed
* Remove unneeded attributes from ParsedRequirement
2020-02-14 09:56:42 +00:00
Paul Moore
f2e49b3946
Use a new ParsedRequirement class to communicate between handle_line and parse_requirements
2020-02-13 10:39:17 +00:00