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

13799 commits

Author SHA1 Message Date
Pradyun Gedam
0138bd54c6
Merge pull request #11779 from sbidoul/fix-direct_url-invalid-hash-sbi
Do not crash in presence of misformatted hash field in ``direct_url.json``
2023-02-17 18:14:20 +00:00
Pradyun Gedam
39d28cc8b5
Merge branch 'main' into update-setuptools 2023-02-13 10:10:34 +00:00
Stéphane Bidoul
852deddb9c
Merge pull request #11775 from pelson/doc/prefix-warning
Document the limitations of the pip install --prefix argument
2023-02-11 15:14:30 +01:00
Tzu-ping Chung
e399d7d4ed
Doc formatting 2023-02-09 20:21:11 +08:00
Phil Elson
f12a2ef2a2 Include a news item for the documentation change 2023-02-09 13:17:07 +01:00
Pradyun Gedam
8b7955d499
Merge pull request #11782 from pradyunsg/better-vendoring 2023-02-08 10:18:16 +00:00
Pradyun Gedam
5a9efdeb3f
Merge pull request #11783 from pradyunsg/resolvelib-update
Upgrade resolvelib to 0.9.0
2023-02-07 11:58:58 +00:00
Tobias Hermann
8844795f45
Fix minor typo in features list of version 23.0 (#11785) 2023-02-07 07:03:08 +00:00
Pradyun Gedam
4f455ae0b0
Drop an unused type: ignore comment 2023-02-06 17:45:51 +00:00
Pradyun Gedam
88cccfc142
Handle backtracking -> rejecting_candidate change
This is a newer method on resolvelib's end for reporting when a
candidate is rejected.
2023-02-06 17:45:51 +00:00
Pradyun Gedam
8dbc2db274
Upgrade resolvelib to 0.9.0 2023-02-06 17:45:51 +00:00
Pradyun Gedam
6245fedc9d
Make resolvelib's provider capable of handling empty iterators
This is _technically_ possible with the API, and accounting for that
enables the resolver to evolve with this information.
2023-02-06 17:45:51 +00:00
Pradyun Gedam
a373982a0c
Implement package-selection CLI in nox -s vendoring
This makes it easier to update/not update certain packages.
2023-02-06 17:34:10 +00:00
Daniele Nicolodi
7ff4da6e8f
Reconcile computation of isolated build environment paths (#11740)
Use the same code to determine isolated environment paths at
dependency install time and at environment setup time. We do not care
about the exact paths but the paths needs to be consistent at package
installation time and environment setup.

This should fix issues observed on platforms that customize the
installation schemes, such as Debian and Homebrew, where dependency
installation and isolated build environment setup resolved to
different paths.
2023-02-06 11:27:44 +00:00
Phil Elson
a2b0eb6838 Document the limitations of the pip install --prefix argument, and cross-reference the --python flag, which can be harder to find due to it being a pip level argument 2023-02-06 09:14:52 +01:00
Stefano Rivera
9abb3c899a
Implement --break-system-packages for EXTERNALLY-MANAGED installations (#11780)
The PEP 668 expects an override mechanism to ease the transition.
This provides an override.

---------

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2023-02-06 07:06:59 +00:00
Oliver Mannion
62fb64ac96
Ignore PIP_REQUIRE_VIRTUALENV for pip index (#11671)
Ignore PIP_REQUIRE_VIRTUALENV in `pip index`
2023-02-06 07:05:31 +00:00
Pradyun Gedam
85da66d06b
Ignore mypy errors in logic from jaraco.text 2023-02-05 11:40:15 +00:00
Pradyun Gedam
684521fbb4
Merge pull request #11779 from sbidoul/fix-direct_url-invalid-hash-sbi
Do not crash in presence of misformatted hash field in ``direct_url.json``
2023-02-05 09:50:13 +00:00
Stéphane Bidoul
e5c88951a0 Do not crash in presence of misformatted hash field in `direct_url.json`. 2023-02-05 00:13:32 +01:00
Pradyun Gedam
eb7b4ed62e
Update vendored pkg_resources 2023-02-04 21:18:10 +00:00
Pradyun Gedam
6a416d281e
Merge pull request #11774 from frostming/fix/keyring
fix: correct the way to decide if keyring is available
2023-02-03 18:05:04 +00:00
Frost Ming
2d0a5c9cd2
use a attribute to tell if the provider is null 2023-02-03 15:33:55 +08:00
Frost Ming
706456c5cf
add news 2023-02-03 09:39:21 +08:00
Frost Ming
9058b90021
fix: correct the way to decide if keyring is available 2023-02-03 09:32:53 +08:00
Tzu-ping Chung
56e5fa3c0f
Merge pull request #11487 from pelson/feature/base-prefix-config 2023-02-01 01:40:09 +08:00
Pradyun Gedam
2c09e9c760
Merge pull request #11529 from mdmintz/main
Fix grammar of the notice that indicates a new release is available
2023-01-31 01:05:53 +00:00
Pradyun Gedam
3af9fd4f08
Merge pull request #11768 from pradyunsg/release/23.0 2023-01-30 23:09:36 +00:00
Pradyun Gedam
368c7b4c55
Bump for release 2023-01-30 15:13:08 +00:00
Pradyun Gedam
d21af1c986
Bump for development 2023-01-30 15:13:08 +00:00
Pradyun Gedam
aa94ccadb4
Update AUTHORS.txt 2023-01-30 15:13:07 +00:00
Pradyun Gedam
60ce5c0943
Fix the kind of news fragment 2023-01-30 15:12:52 +00:00
Tzu-ping Chung
a840f1d10c
Merge branch 'main' into keyring-multi-choice 2023-01-30 17:11:04 +08:00
Tzu-ping Chung
e3e7bc34eb
Merge pull request #11766 from uranusjr/upgrade-pre-commit-isort 2023-01-30 17:10:48 +08:00
Tzu-ping Chung
b653b129c5 Bump pre-commit isort to 5.12.0
This release contains a critical fix for newer Poetry versions that
crashes due to "invalid" pyproject.toml syntax.
2023-01-30 17:06:13 +08:00
Dos Moonen
16bd6b7054 Applied review suggestions 2023-01-30 09:01:03 +01:00
Dos Moonen
7b75fda0c6 Typo in documentation: s/if/is 2023-01-30 09:01:03 +01:00
Tzu-ping Chung
d325245052 Better subprocess handling 2023-01-30 09:01:02 +01:00
Tzu-ping Chung
0a9ff9de23 Revise documentation on keyring 2023-01-30 09:01:02 +01:00
Dos Moonen
33cd541cc4 Make it possible to request a keyring provider: auto, disabled, import or subprocess
Refactored `_get_index_url()` to get integration tests for the subprocess backend working.

Keyring support via the 'subprocess' provider can only retrieve a password, not a username-password combo. The username therefor MUST come from the URL.
If the URL obtained from the index does not contain a username then the username from a matching index is used. `_get_index_url()` does that matching.

The problem this refactoring solves is that the URL where a wheel or sdist can be downloaded from does not always start with the index url. Azure DevOps Artifacts Feeds are an example since it replaces the friendly name of the Feed with the GUID of the Feed. Causing `url.startswith(prefix)` to evaluate as `False`.

The new behaviour is to return the index which matches the netloc and has the longest common prefix of the `path` property of the value returned by `urllib.parse.urlsplit()`. The behaviour for resolving ties is unspecified.
2023-01-30 09:00:59 +01:00
Pradyun Gedam
a2a4feb588
Merge pull request #11761 from sbidoul/direct-url-hashes-part-3-sbi 2023-01-29 12:21:07 +00:00
Stéphane Bidoul
ec7eb6f179 Add version history to inspect and install report docs 2023-01-29 12:43:23 +01:00
Stéphane Bidoul
169511e68e Update direct URL hashes examples 2023-01-29 12:43:21 +01:00
Pradyun Gedam
efedf09c49
Merge pull request #11759 from pradyunsg/fix-keyring-auth
Closes https://github.com/pypa/pip/issues/11658
2023-01-29 01:36:20 +00:00
Pradyun Gedam
60a4598440
Merge pull request #11758 from pradyunsg/vendoring-update 2023-01-29 01:36:04 +00:00
Pradyun Gedam
fc747ca912
Merge pull request #11592 from judahrand/keyring-cli 2023-01-28 22:45:49 +00:00
Pradyun Gedam
acd7ef1f9a
Perform relaxed version matching in pip debug test
This ensures that we're not trying to compare versions as equal strings.
2023-01-28 22:35:25 +00:00
Pradyun Gedam
17e20c746e
Correctly handle keyring auth subprocess newlines on Windows
The line endings on Windows are not required to be `\n`.
2023-01-28 22:23:16 +00:00
Pradyun Gedam
17b73457a1
Upgrade urllib3 to 1.26.14 2023-01-28 22:11:31 +00:00
Pradyun Gedam
be20a75c10
Upgrade chardet to 5.1.0 2023-01-28 22:11:31 +00:00