1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

2147 commits

Author SHA1 Message Date
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
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
Pradyun Gedam
025e99ec61
Merge pull request #7719 from uranusjr/virtualenv-20-detection
Swap venv and virtualenv checks
2020-02-12 12:16:43 +05:30
Paul Moore
73d472bb87 Merge branch 'master' into refactor_legacy_install 2020-02-11 16:53:01 +00:00
Tzu-ping Chung
6104060580 Swap venv and virtualenv checks
Environments created by pypa/virtualenv >=20 can pass both real_prefix
and base_prefix checks, but are only able to use the pyvenv.cfg values,
not the legacy `no-global-site-packages.txt`. So we need to check for
venv (PEP 405) first.
2020-02-11 17:56:40 +08:00
Paul Moore
9f87f46ac3 Tidy up exception block 2020-02-10 18:50:58 +00:00
Pradyun Gedam
313740f6ee
Merge pull request #7593 from uranusjr/hg-under-git
Detect all registered VCS and choose inner-most
2020-02-08 17:34:31 +05:30
Tzu-ping Chung
8b0146b748
Use double backtick in comments
Co-Authored-By: Christopher Hunt <chrahunt@gmail.com>
2020-02-08 17:53:58 +08:00
Paul Moore
89bf3b02db Record on the requirement whether it has been successfully downloaded 2020-02-07 16:40:27 +00:00
Paul Moore
1aa27c4595 Merge branch 'master' into refactor_legacy_install 2020-02-07 14:49:28 +00:00
Paul Moore
6f154f5546
Merge pull request #7707 from pfmoore/refactor_options
Pass individual options to InstallRequirement rather than an options object
2020-02-07 14:22:10 +00:00
Xavier Fernandez
8b20443224
Merge pull request #7704 from chrahunt/refactor/simpler-resolver-interface
Reduce usage of RequirementSet in commands
2020-02-06 23:19:19 +01:00
Paul Moore
a9f1d8562b Pass individual options to InstallRequirement rather than an options object 2020-02-06 16:05:11 +00:00
Paul Moore
98da0a680d Correctly preserve exception type 2020-02-06 13:48:36 +00:00
Pradyun Gedam
3c684b5910
Merge pull request #7695 from chrahunt/refactor/remove-confusing-comment
Remove confusing comment from operations.prepare
2020-02-06 18:50:18 +05:30
Paul Moore
0dd1c72715 Fix handling of rollback on failure 2020-02-06 11:40:37 +00:00
Chris Hunt
e7998a3617 Rename populate_requirement_set to get_requirements 2020-02-05 22:30:07 -05:00
Chris Hunt
543c84402d Remove unused requirement_set in commands 2020-02-05 22:30:07 -05:00
Chris Hunt
de5ec7e884 Remove unused requirement_set argument 2020-02-05 22:30:07 -05:00
Chris Hunt
e872d2bfb6 Make new RequirementSet in populate_requirement_set
Concentrates use of RequirementSet in individual commands so we can
eventually break it up.
2020-02-05 22:30:07 -05:00