summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Add news for disabling range response cachingNguyễn Gia Phong2020-08-082-0/+4
| | | | |
* | | | | Merge pull request #8744 from hroncok/keyring_global_nopePradyun Gedam2020-08-113-0/+31
|\ \ \ \ \ | | | | | | | | | | | | When one keyring attempt fails, don't bother with more
| * | | | | When one keyring attempt fails, don't bother with moreMiro Hrončok2020-08-033-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | This makes https://github.com/pypa/pip/issues/8090 much less painful.
* | | | | | Merge pull request #8702 from uranusjr/get-distribution-looks-for-allPradyun Gedam2020-08-104-19/+86
|\ \ \ \ \ \
| * | | | | | Add test to ensure get_distribution() behaviorTzu-ping Chung2020-08-061-14/+60
| | | | | | |
| * | | | | | Work around lax semantics in commands.searchTzu-ping Chung2020-08-051-0/+1
| | | | | | |
| * | | | | | Refactor and clarify get_distribution() behaviorTzu-ping Chung2020-08-051-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The call to get_installed_distributions() now passes all flags excplicitly so they are more obvious and less likely to be misunderstood in the future. The behavior also documented in the function docstring. The search_distribution() helper function is renamed with a leading underscore to make it clear that it is intended as a helper function to get_distribution().
| * | | | | | Also look for non-local when searching for distsTzu-ping Chung2020-08-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This matches the behavior of pkg_resources.get_distribution(), which this function intends to replace.
| * | | | | | NewsTzu-ping Chung2020-08-051-0/+3
| | | | | | |
* | | | | | | Merge pull request #8636 from EpicWink/doc/keyringChris Hunt2020-08-082-0/+17
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Document keyring support for index basic-auth
| * | | | | | Explicitly note that pip does not vendor keyringLaurie O2020-07-281-1/+2
| | | | | | |
| * | | | | | Document keyring support for index basic-authLaurie O2020-07-272-0/+16
| | | | | | |
* | | | | | | Merge pull request #8718 from uranusjr/pyvenv-cfg-encodingPradyun Gedam2020-08-072-1/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Always use UTF-8 to read pyvenv.cfg
| * | | | | | | Always use UTF-8 to read pyvenv.cfgTzu-ping Chung2020-08-062-1/+5
| | | | | | | |
* | | | | | | | Merge pull request #8727 from uranusjr/new-resolver-constraint-markersPradyun Gedam2020-08-073-1/+29
|\ \ \ \ \ \ \ \
| * | | | | | | | Allow filtering constraints with markersTzu-ping Chung2020-08-072-1/+4
| | | | | | | | |
| * | | | | | | | Add failing test for constraints with markersTzu-ping Chung2020-08-071-0/+25
|/ / / / / / / /
* | | | | | | | Merge pull request #8651 from pradyunsg/update-coc-referencePradyun Gedam2020-08-073-8/+5
|\ \ \ \ \ \ \ \
| * | | | | | | | Drop CoC reference from new issue templatesPradyun Gedam2020-07-291-4/+1
| | | | | | | | |
| * | | | | | | | Update Code of Conduct referencesPradyun Gedam2020-07-292-4/+4
| | | | | | | | |
* | | | | | | | | Merge pull request #8710 from McSinyx/unnest-lazy-fetchPradyun Gedam2020-08-064-20/+36
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Revise method fetching metadata using lazy wheelsNguyễn Gia Phong2020-08-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename it to fit the fact that it no longer handle fetching _not_ using lazy wheels * Use self as the first parameter * Unnest the checks with additional logs showing reason when lazy wheel is not used
| * | | | | | | | | Define RequirementPreparer._sessionNguyễn Gia Phong2020-08-064-17/+33
|/ / / / / / / / /
* | | | | | | | | Make assertion failure give better message (#8692)Nguyễn Gia Phong2020-08-062-2/+1
| |_|_|_|_|_|/ / |/| | | | | | |
* | | | | | | | Merge pull request #8716 from McSinyx/fix-range-request-cacheChris Hunt2020-08-052-2/+4
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ |/| | | | | | | Disable caching for range requests
| * | | | | | | Disable caching for range requestsNguyễn Gia Phong2020-08-052-2/+4
|/ / / / / / /
* | | | | | | Merge pull request #8693 from pradyunsg/remove-newsPradyun Gedam2020-08-0512-12/+0
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | Remove news/ files for 20.2.1Pradyun Gedam2020-08-0412-12/+0
| | | | | | |
* | | | | | | Merge pull request #8685 from chrahunt/use-preparer-for-lazy-wheelsPradyun Gedam2020-08-047-51/+92
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Prepare lazy wheels more so they are downloadedChris Hunt2020-08-023-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This keeps all knowledge about preparation and types of requirements in `RequirementPreparer`, so there's one place to look when we're ready to start breaking it apart later.
| * | | | | | Pass link to _fetch_metadata instead of reqChris Hunt2020-08-021-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes dependence on `InstallRequirement`.
| * | | | | | Log in one common locationChris Hunt2020-08-021-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces dependence on `InstallRequirement` being passed to `_fetch_metadata`.
| * | | | | | Move _fetch_metadata to RequirementPreparerChris Hunt2020-08-022-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fact that all of this functionality can be put in terms of the `RequirementPreparer` indicates that, at least at this point, this is the cleanest place to put this functionality.
| * | | | | | Promote Wheel-related assertions to LinkCandidate constructorChris Hunt2020-08-021-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are things we know will be true because of the existing wheel processing. In the future we may delegate the extraction of these to the LinkCandidate itself so it doesn't have to be an assertion.
| * | | | | | Extract name and version from Wheel linkChris Hunt2020-08-021-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We happen to know that this is the same treatment that gave us `_name` and `_version` for Wheels in the first place (in `LinkEvaluator`). It's not ideal, however the metadata consistency check that occurs in `Candidate` after creation of a `Distribution` guards us against any deviation in the name and version during our processing. Reduces dependence on Candidate.
| * | | | | | Use link from InstallRequirementChris Hunt2020-08-021-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since when we generate the InstallRequirement we set the link, these must be the same. Reduces dependence on Candidate.
| * | | | | | Pass InstallRequirement to _fetch_metadataChris Hunt2020-08-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces dependence on Candidate.
| * | | | | | Propagate lazy_wheel option through RequirementPreparerChris Hunt2020-08-026-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces dependence on Candidate (and Resolver (and Factory)).
| * | | | | | Move lazy_wheel warning out of ResolverChris Hunt2020-08-022-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning just needs to be traced in one place for all commands, there's no need for the resolver to know about it. Moving the warning out of the Resolver will make it easier to change how we provide the option.
| * | | | | | Move call to _fetch_metadata next to call to RequirementPreparerChris Hunt2020-08-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since wheels can't be editable, we can move this into LinkCandidate, closer to `RequirementPreparer.prepare_linked_requirement` into which we want to integrate `_fetch_metadata`.
| * | | | | | Remove extra metadata consistency checkChris Hunt2020-08-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of an early return, we fall through to the existing check at the end of this function. This aligns our treatment of `_fetch_metadata` and `_prepare_distribution`.
| * | | | | | Move common processing out of _fetch_metadataChris Hunt2020-08-021-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returning a `Distribution` makes `_fetch_metadata` look more like `_prepare_distribution`, in preparation for moving it there next.
| * | | | | | Move _fetch_metadata into _prepareChris Hunt2020-08-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since `_prepare` is called in two places, we preserve the `if self._dist is not None` protection above the new call to `_fetch_metadata`. The second `if` in `_prepare` handles the early return required when processing a lazy wheel.
| * | | | | | Move non-lazy req fallback outside of `_fetch_metadata`Chris Hunt2020-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No change in behavior, we just want to unify "requirements processing" and moving this function out is a prereq for moving `_fetch_metadata` in.
| * | | | | | Remove unnecessary check for _distChris Hunt2020-08-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since `_prepare` now internally validates that `_dist` isn't set, we don't need to.
| * | | | | | Remove redundant guard variableChris Hunt2020-08-021-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that `_dist` is only set on success, we can use it to guard against repeated execution instead of `_prepared`. As a result there are now only two possible outcomes for calling `dist`: 1. `_dist` set and returned - lazy and non-lazy req 2. `_dist` not set and exception raised - bad lazy or bad non-lazy req
| * | | | | | Don't set _dist until it has been validatedChris Hunt2020-08-021-8/+9
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously a call to `_fetch_metadata` could result in several possible outcomes: 1. `_dist` set, `_provided` not set, dist returned - for lazy wheels 2. `_dist` set, `_provided` not set, exception - for bad lazy wheels 3. `_dist` not set, `_provided` not set, exception - for non-lazy req exceptions 4. `_dist` set, `_provided` not set, exception - for bad non-lazy reqs 5. `_dist` set, `_provided` set, dist returned - for non-lazy reqs and probably more. Our intent is to use `_dist` being set as the indicator of "this requirement has been fully processed successfully" and discard `_prepared`, since we don't actually rely on any of the other states (they simply lead to a failure or in the future a retry).
* | | | | | Merge pull request #8691 from pradyunsg/release/20.2.1Pradyun Gedam2020-08-041-0/+28
|\ \ \ \ \ \
| * | | | | | Bump for developmentPradyun Gedam2020-08-041-1/+1
| | |_|_|_|/ | |/| | | |
| * | | | | Bump for release20.2.1Pradyun Gedam2020-08-0412-13/+29
| | | | | |