Commit Graph

11976 Commits

Author SHA1 Message Date
Tzu-ping Chung da8eee63ad Add direct URL accessor 2021-07-22 15:20:49 +08:00
László Kiss Kollár 76cd70ac42
Upgrade packaging to 21.0 (#10144) 2021-07-17 12:19:56 +08:00
Pradyun Gedam 7da05f3334
Merge pull request #10102 from pradyunsg/topic/dependency-resolution 2021-07-13 23:12:13 +01:00
Pradyun Gedam d7c0e621e3
Merge branch 'main' into topic/dependency-resolution 2021-07-13 23:10:45 +01:00
Pradyun Gedam 14e48b5f28
Rephrase paragraph describing how dependency resolution works
- Clarify that pip is incrementally building up this information.
- Clarify that pip has to download files, which contain the dependency information.
- Hint at the fact that this is a recursive process.
2021-07-13 23:10:19 +01:00
Pradyun Gedam d12ab1c79e
Merge pull request #10100 from pradyunsg/topic/repeatable-installs 2021-07-13 23:01:22 +01:00
Pradyun Gedam cc188ae0cb
Merge branch 'main' into topic/repeatable-installs 2021-07-13 22:58:28 +01:00
Xavier Fernandez 1f1e1d6211 Remove deprecated --find-links option from pip freeze 2021-07-13 22:15:07 +02:00
Diego Ramirez 3b3fde2447
Fix the `pip/_internal/distributions` annotations (#10074) 2021-07-13 06:29:21 +08:00
Diego Ramirez ce86dc86d6
Complete type annotations in `pip/_internal/index` (#10111) 2021-07-13 03:28:36 +08:00
Tzu-ping Chung cccf38067a
Merge pull request #10148 from uranusjr/location-warning-again
Re-enable location warning
2021-07-13 03:19:53 +08:00
Tzu-ping Chung 646aba8c3a
Merge pull request #10145 from uranusjr/py310-sysconfig-api 2021-07-13 01:14:36 +08:00
Tzu-ping Chung bd5ac261c0
Merge pull request #10035 from hukkin/tomli 2021-07-12 16:57:44 +08:00
Tzu-ping Chung 8349b9a9ae Ask mypy to shut up about get_preferred_scheme 2021-07-12 16:01:54 +08:00
Tzu-ping Chung ca4aa121a9 Use Python 3.10 sysconfig.get_preferred_scheme()
This function is introduced to 3.10 to do precisely what we want, so
let's use it if possible.
2021-07-12 16:01:00 +08:00
Tzu-ping Chung 889571a5e1 Re-enable location warning 2021-07-12 15:58:25 +08:00
Tzu-ping Chung ad3d498702
Merge pull request #9865 from uranusjr/sysconfig-message-improvement
Cache location calculation functions
2021-07-12 15:55:31 +08:00
Tzu-ping Chung f9710e91fe
Merge pull request #9684 dont-explode-on-failed-distutils-parse 2021-07-12 15:44:47 +08:00
Tzu-ping Chung c5f9bc5f3b try-except distutils config parsing 2021-07-12 15:06:37 +08:00
Pradyun Gedam 15459969b3
Merge pull request #10099 from pradyunsg/topic/vcs-support
Add topic guide: VCS Support
2021-07-12 07:55:13 +01:00
Tzu-ping Chung 32a3a50c49
Merge pull request #10077 from uranusjr/requires-python-to-debug
Move "Link requires a different Python" to verbose
2021-07-12 14:02:39 +08:00
Tzu-ping Chung 4cd32551ad
Merge pull request #9569 from uranusjr/pax-tar-2
Always open tar files with UTF-8
2021-07-12 14:01:49 +08:00
Tzu-ping Chung 11a9990cca
Merge pull request #10084 from uranusjr/new-resolver-local-dependencies 2021-07-12 14:01:08 +08:00
Tzu-ping Chung ad9d46e148
Merge pull request #9844 from uranusjr/sysconfig-framework-user 2021-07-12 14:00:47 +08:00
Tzu-ping Chung 57d9af2c4f Ignore header difference for osx_framework_user 2021-07-12 13:12:20 +08:00
Tzu-ping Chung 77810bc9b4 Special osx_framework_library prefix scheme 2021-07-12 13:11:31 +08:00
Tzu-ping Chung 1501272307 Use osx_framework_user for Mac framework build 2021-07-12 13:10:59 +08:00
Tzu-ping Chung 73edd74c56 Detect user-requested package names by preparing
This always prepares each explicit requirements when the resolver is
run, instead of when they are being resolved. But we always want to
prepare them anyway (an explicit requirement has only one candidate, so
it's either do or die), so this is not really a problem.
2021-07-12 12:40:34 +08:00
Tzu-ping Chung 5d81040ee8 Refactor root requirement collection into factory 2021-07-12 12:40:32 +08:00
Tzu-ping Chung f9c49eff8d Failing test for local unnamed dependency 2021-07-12 12:37:59 +08:00
Tzu-ping Chung 3209ad07ab News for the pip list name normalization logic 2021-07-12 12:33:37 +08:00
Tzu-ping Chung e6c317769a Move assert_[not_]installed to Script and use it
This help function is much better than the previous ad-hoc logic used in
test_uninstall.py, which has trouble identifying normalized names.
2021-07-12 11:44:23 +08:00
Tzu-ping Chung ef8299d559 pip list now normalizes the project name 2021-07-12 11:44:23 +08:00
Tzu-ping Chung c1da53dacc Migrate 'pip list' to use metadata abstraction 2021-07-12 11:44:23 +08:00
Diego Ramirez 6958b87d3d
Complete type annotations: `pip/_internal/models` (#10138) 2021-07-12 11:43:52 +08:00
Harutaka Kawamura 23eb69fe21
Complete type annotations in `pip/_internal/locations` (#10127) 2021-07-12 11:42:16 +08:00
Harutaka Kawamura 72e1ff35c7
Complete type annotations in `pip/_internal/resolution` (#10125) 2021-07-12 11:41:48 +08:00
briantracy 37a2b12a21
Special case warning for requirements.txt install (#9915)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-12 11:40:43 +08:00
Nikita Chepanov f2ce7741ab Suppress "not on PATH" warning when `--prefix` is given
Similar to how it works with `--target`, avoid printing the
warning since it's clear from the context that the final
destionation of the executables is unlikely to be in the PATH.
2021-07-12 11:39:56 +08:00
Pradyun Gedam 67da5a6b88
Fix a typo
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-11 09:27:26 +01:00
Pradyun Gedam c1295afdd5 Address review comments 2021-07-09 11:05:07 +01:00
Pradyun Gedam 414da9b029 Reword pip-starts-backtracking sentence
This reads clearer than the initial iteration.

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2021-07-09 10:55:25 +01:00
Tzu-ping Chung 7cae5f2e19 Relax PyPy compatibility location warning 2021-07-09 12:21:21 +08:00
Pradyun Gedam f37fc4c3e8
Merge pull request #10126 from harupy/color-pytest
Add `--color=yes` for pytest to color output logs
2021-07-04 14:33:00 +01:00
harupy 2395bc5059 Use --color=yes 2021-07-04 22:14:22 +09:00
Harutaka Kawamura 9582341e08
Complete type annotations in `pip/_internal/metadata` (#10124) 2021-07-04 19:29:15 +08:00
Pradyun Gedam 156f71b5e8
Merge pull request #10072 from methane/patch-2
Use UTF-8 encoding for log file.
2021-07-04 10:06:20 +01:00
Pradyun Gedam 520aed8b06
Stylise console output with `console` highlighting
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-07-02 12:18:53 +01:00
Tzu-ping Chung 72e38ca3df Re-implement Git version parsing with regex
After packaging drops LegacyVersion, version.parse() will no longer
guarantee to be able to parse Git versions, so we need to invent our own
parser. Since we really only care about the major and minor segments,
the logic is pretty simple.
2021-07-02 19:03:15 +08:00
Taneli Hukkinen 1915c4da3e Add news 2021-07-02 00:35:02 +03:00