Stéphane Bidoul
31a2e1a586
Restore --build-dir
2020-12-01 23:22:07 +01:00
Pradyun Gedam
1133342f30
Always reinstall editables
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-28 13:56:40 +00:00
Pradyun Gedam
9f4c5409d0
🎨 Breakup and move comment
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-28 13:54:39 +00:00
Pradyun Gedam
8b4652efad
Merge pull request #9163 from NoahGorny/redact-url-from-help
...
Redact auth from URL in UpdatingDefaultsHelpFormatter
2020-11-27 09:04:14 +00:00
Noah Gorny
8f821866d6
Redact auth from URL in UpdatingDefaultsHelpFormatter
2020-11-25 21:18:01 +02:00
Pradyun Gedam
b2785d8ab9
Drop incorrect line from comment
...
This was a copy-paste error that I didn't catch earlier.
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:08 +00:00
Pradyun Gedam
5753884715
Don't deprecate reinstalling from .zip files
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:08 +00:00
Pradyun Gedam
9add1c1f61
Add deprecation warning when reinstalling sdists
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:08 +00:00
Pradyun Gedam
cd15a8514e
Factor out is_archive_file
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:07 +00:00
Pradyun Gedam
d6e3643fd9
Print a message and don't reinstall wheels
...
Also, adds a test for source distributions being reinstalled.
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:13:04 +00:00
Pradyun Gedam
ce46a5e36d
Re-install local candidates unconditionally
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-25 14:12:08 +00:00
Pradyun Gedam
84382715f0
Merge pull request #9096 from uranusjr/new-resolver-constrainting-extraed
...
Constrainting an extra-ed dependency
2020-11-23 10:57:39 +00:00
Pradyun Gedam
aa847eaa8a
Merge pull request #9123 from sbidoul/pip-wheel-editable-fix-sbi
2020-11-22 21:32:44 +00:00
Stéphane Bidoul
a24d198c15
Do not download editables while preparing requirements
...
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.
2020-11-22 21:14:09 +01:00
Jon Dufresne
8662248774
Always close stderr after subprocess completion in call_subprocess()
...
When running Python with warnings enabled, fixes warnings of the form:
.../site-packages/pip/_internal/vcs/versioncontrol.py:773: ResourceWarning: unclosed file <_io.BufferedReader name=12>
return call_subprocess(cmd, cwd,
2020-11-21 07:35:11 -08:00
Tzu-ping Chung
9efafb186f
Implement __str__ for debuggability
2020-11-21 22:14:24 +08:00
Tzu-ping Chung
d589795834
Allow constraining an explicit requirement
2020-11-21 22:14:24 +08:00
Pradyun Gedam
0f43e77b7f
Include package name in backtracking messaging
...
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-19 18:38:30 +00:00
Pradyun Gedam
15871707f6
Merge pull request #9124 from pradyunsg/nicer-error-message-wording
...
Update message displayed on conflicts post-resolution
2020-11-19 10:15:06 +00:00
Pradyun Gedam
c09549caff
Merge pull request #9101 from uranusjr/new-resolver-error-message-dedup
...
Use set to dedup package list in error message
2020-11-14 23:56:55 +05:30
Noah Gorny
a29dda6d2b
cli: Drop --unstable-feature flag
2020-11-14 12:03:53 +02:00
Pradyun Gedam
7be91574d9
Update message displayed on conflicts post-resolution
2020-11-12 06:53:29 +05:30
Tzu-ping Chung
5ef05cfb1f
Make sure periods are followed by a space
...
The strings are *delibrately* reformatted so line continuations occur in
the middle of sentences. This helps me ensure all spaces are added
properly.
2020-11-10 14:58:38 +08:00
Pradyun Gedam
a4f4bfbf8b
Merge pull request #8551 from sbidoul/rm-comes-from
...
Remove unused comes_from argument of parse_requirements
2020-11-09 03:55:47 +05:30
Stéphane Bidoul
3defc24e31
Removed unused comes_from argument of parse_requirements
2020-11-08 19:07:28 +01:00
Tzu-ping Chung
bf55229fc6
Use set to dedup package list in error message
2020-11-04 21:29:19 +08:00
Tzu-ping Chung
69a95cf391
Tie-break requirements with package name
...
This makes the ordering deterministic to improve debugging and user
experience.
2020-11-04 21:23:40 +08:00
Tzu-ping Chung
d08b4d99e2
Use packaging.version to check version equality
2020-11-03 16:04:35 +08:00
Xavier Fernandez
5ec275fca2
Cache find_best_candidate results
...
This is possible because self.make_candidate_evaluator only depends
on:
- the function arguments which are keys to the cache
- self._target_python which never changes during a pip resolution
- self._candidate_prefs which never changes during a pip resolution
On a fresh install, pip install <a package with ~ 100 dependencies>
runs on my machine in:
master (a0e34e9cf7
)
=======================
0m33.058s
0m34.105s
0m32.426s
This commit
===========
0m15.860s
0m16.254s
0m15.910s
pip 20.2.4 - legacy resolver
============================
0m15.145s
0m15.040s
0m15.152s
2020-10-31 16:22:59 +01:00
Xavier Fernandez
4dc48da9db
utils: make Hashes object hashable
2020-10-31 15:54:54 +01:00
Pradyun Gedam
a0e34e9cf7
Merge pull request #9073 from xavfernandez/freeze_list_exclude
...
Add --exclude option to pip freeze and pip list commands
2020-10-31 15:25:53 +05:30
Pradyun Gedam
90dac0d829
Merge pull request #9075 from pradyunsg/move-logging-of-resolver-warning
...
Change where the 2020 resolver warning is logged
2020-10-31 14:48:42 +05:30
Xavier Fernandez
fad456a165
resolver: stabilize output for tests (& users)
...
Otherwise the test_install_distribution_union_with_versions test can end
up with either:
Cannot install localextras[bar] 0.0.2 and localextras[baz] 0.0.1 because these package versions have conflicting dependencies.
or
Cannot install localextras[baz] 0.0.2 and localextras[bar] 0.0.1 because these package versions have conflicting dependencies.
2020-10-31 00:07:34 +01:00
Pradyun Gedam
aae52d79b9
Change where the 2020 resolver warning is logged
2020-10-31 03:27:09 +05:30
Xavier Fernandez
9725229888
Add --exclude option to pip freeze and pip list commands
2020-10-30 21:50:59 +01:00
Pradyun Gedam
cdc5422ed5
Merge pull request #9019 from pradyunsg/flip-the-switch-on-new-resolver
2020-10-31 00:36:32 +05:30
Pradyun Gedam
0d8acc9000
Flip the switch in the new resolver
...
- Python 2 doesn't get the new shiny thing.
- Passing --use-deprecated=legacy-resolver uses the deprecated legacy
resolver.
- Passing --use-feature=2020-resolver is now a no-op, that prints a
warning that it's going to be removed.
- Using fast-deps without the new resolver will cause a warning to be
printed.
2020-10-30 23:07:55 +05:30
Xavier Fernandez
c33cf49381
freeze: deprecate option --find-links
2020-10-30 13:41:27 +01:00
Pradyun Gedam
2d91950cad
Allow passing legacy-resolver from CLI
2020-10-30 07:16:19 +05:30
Pradyun Gedam
d012c7d4af
Add a warning to fast-deps with legacy resolver
2020-10-30 07:12:36 +05:30
Pradyun Gedam
385077a944
Factor out logic for determining resolver to use
2020-10-30 07:11:54 +05:30
Pradyun Gedam
9f318de7b6
Add a debugging reporter for pip's resolver
2020-10-29 02:33:50 +05:30
Pradyun Gedam
00e531a16e
Merge pull request #9017 from pradyunsg/backtracking-messaging
2020-10-28 18:25:29 +05:30
Pradyun Gedam
741b80ac08
Update wording in informational message
2020-10-28 18:25:12 +05:30
Daniel Katz
7632c7a22b
Spell abis
and platforms
as plural words.
2020-10-27 19:00:22 -04:00
Daniel Katz
01a512c7fc
Fix linter error: Add missing function type declaration.
2020-10-27 19:00:22 -04:00
Daniel Katz
e08ec3593d
Expand platform-tags unconditionally.
2020-10-27 19:00:22 -04:00
Daniel Katz
7237bd3397
Respond to feedback, and add functional tests.
2020-10-27 19:00:22 -04:00
Daniel Katz
abf987bde3
Use 'append'-style CLI arguments, rather than ','-separated values.
2020-10-27 19:00:22 -04:00
Daniel Katz
cea9f32dae
Support multiple abi
and platform
values for pip download
.
2020-10-27 19:00:22 -04:00