Damian Shaw
2a0acb595c
Update and provide fixes for mypy pre-commit ( #12389 )
...
* Update mypy to 1.6.1
* Fix mypy "Source file found twice under different module names" error
* Ignore type of intialized abstract class in tests
* Use more specific type ignore method-assign
* Type ignore for message.get_all
* Remove unused type ignore
* Add SizedBuffer type for xmlrpc.client.Transport subclass
* Add Self type for RequestHandlerClass in test
* Add type ignore for shutil.rmtree onexc handler
* Quote SizedBuffer
* Add news entry
* Remove no longer correct comment
* Update self import
* Also ignore type onerror=handler
* Update news entry
* Update news entry
2023-11-07 09:39:01 +00:00
Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Dale
fd77ebfc74
Rework the functionality of PIP_CONFIG_FILE ( #11850 )
2023-10-27 14:59:56 +02:00
efflamlemaillet
6dbd9c68f0
Fix hg: "parse error at 0: not a prefix:" ( #12373 )
...
Use two hypen argument `--rev=` instead of `-r=`
Co-authored-by: Efflam Lemaillet <elemaillet@logilab.fr>
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2023-10-27 11:08:17 +02:00
Itamar Turner-Trauring
5e7cc16c3b
Fix parallel pip cache downloads causing crash ( #12364 )
...
Co-authored-by: Itamar Turner-Trauring <itamar@pythonspeed.com>
2023-10-18 23:14:22 +01:00
Paul Moore
fb06d12d5a
Handle ISO formats with a trailing Z
2023-10-17 11:07:21 +01:00
Stéphane Bidoul
c0cce3ca60
Bump for development
2023-10-15 10:23:09 +02:00
Stéphane Bidoul
e3dc91dad9
Bump for release
2023-10-15 10:23:02 +02:00
Stéphane Bidoul
8f0ed32413
Redact URLs in Collecting... logs
2023-10-14 14:02:55 +02:00
Paul Moore
2333ef3b53
Upgrade urllib3 to 1.26.17 ( #12343 )
2023-10-12 13:12:06 +02:00
Stéphane Bidoul
d1f0981cb2
Merge pull request #12331 from sbidoul/update-egg-deprecation-message
...
Update egg deprecation message
2023-10-09 13:59:39 +02:00
Stéphane Bidoul
76a8c0f265
Postpone deprecation of legacy versions and specifiers
2023-10-08 18:17:05 +02:00
Stéphane Bidoul
d9b47d0173
Update egg deprecation message
2023-10-08 17:19:09 +02:00
Wu Zhenyu
dba399fe6a
Fix #12166
...
- tests expected results indendation was off
- add bugfix news entry
2023-10-07 15:15:51 +08:00
Tzu-ping Chung
b551c09c4e
Merge pull request #12095 from sanderr/issue/11924-requirements-on-extras
2023-10-05 15:29:25 +08:00
Stéphane Bidoul
ff05e4224b
Merge pull request #12289 from lgeiger/noqa
...
Remove outdated `noqa` comments
2023-10-01 19:29:09 +02:00
Stéphane Bidoul
cb21251ffc
Merge pull request #12307 from sbidoul/postpone-deprecations
...
Postpone some deprecation removals
2023-10-01 19:13:05 +02:00
Stéphane Bidoul
1082eb1262
Merge pull request #12306 from pradyunsg/vcs-ref
...
Use `-r=...` instead of `-r ...` for VCS CLI
2023-10-01 16:59:57 +02:00
Pradyun Gedam
389cb799d0
Use `-r=...` instead of `-r ...` for hg
...
This ensures that the resulting revision can not be misinterpreted as an
option.
2023-10-01 14:45:29 +01:00
Stéphane Bidoul
ccc4bbcdfd
Postpone some deprecation removals
2023-10-01 15:05:20 +02:00
Pradyun Gedam
11ff957838
Merge pull request #12292 from hauntsaninja/literal-type
...
Avoid use of 2020-resolver and legacy-resolver
2023-10-01 13:56:57 +01:00
Pradyun Gedam
3f6e81694f
Rework how the logging stack handles rich objects
...
This makes it possible to render content via rich without a magic string
and relies on a proper mechanism supported by the logging stack.
2023-10-01 12:24:10 +01:00
Stéphane Bidoul
4ad9b90eb2
Merge pull request #12281 from sbidoul/fix-12280-sbi
...
Fix git version parsing issue
2023-10-01 11:21:14 +02:00
Itamar Turner-Trauring
cc14055336
Merge branch 'main' into 2984-new-cache-lower-memory
2023-09-26 10:38:42 -04:00
Itamar Turner-Trauring
64d2dc3253
Fix lints
2023-09-26 10:30:15 -04:00
Tzu-ping Chung
ed113ff23b
Merge pull request #12107 from sethmlarson/vendor-truststore
2023-09-26 17:49:25 +08:00
Itamar Turner-Trauring
b944856a74
Merge branch 'main' into 2984-new-cache-lower-memory
2023-09-25 13:13:57 -04:00
hauntsaninja
666be3544b
Avoid use of 2020-resolver and legacy-resolver
2023-09-23 13:34:06 -07:00
Shantanu
eddd9ddb66
Enable mypy's strict equality checks ( #12209 )
...
This makes mypy check more behaviours within the codebase.
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2023-09-23 17:10:13 +01:00
Lukas Geiger
3d6b0be901
Remove outdated noqa comments
2023-09-22 01:28:54 +01:00
Damian Shaw
184e482626
Clarify --prefer-binary
2023-09-20 18:48:52 -04:00
Stéphane Bidoul
3b4738cf9a
Fix git version parsing issue
2023-09-17 20:06:35 +02:00
Sander Van Balen
89b68c6bf9
Merge branch 'main' into issue/11924-requirements-on-extras
2023-09-13 15:20:25 +02:00
Sander Van Balen
46707a4225
Merge branch 'issue/11924-requirements-on-extras' of github.com:sanderr/pip into issue/11924-requirements-on-extras
2023-09-13 15:14:17 +02:00
Sander Van Balen
ce949466c9
fixed argument name in docstring
2023-09-13 15:14:07 +02:00
Tzu-ping Chung
9ba2bb90fb
Straighten up extra comps across metadata backends
...
The importlib.metadata and pkg_resources backends unfortunately
normalize extras differently, and we don't really want to continue using
the latter's logic (being partially lossy while still not compliant to
standards), so we add a new abstraction for the purpose.
2023-09-13 16:45:44 +08:00
Tzu-ping Chung
7127fc96f4
Prevent eager extra normalization
...
This removes extra normalization when metadata is loaded into the data
structures, so we can obtain the raw values later in the process during
resolution.
The change in match_markers is needed because this is relied on by the
legacy resolver. Since we removed eager normalization, we need to do
that when the extras are used instead to maintain compatibility.
2023-09-13 13:40:35 +08:00
Seth Michael Larson
bff1e6a67b
Vendor truststore 0.8.0
2023-09-12 15:56:31 -05:00
Seth Michael Larson
fca773ccde
Allow truststore to not import on Python 3.9 and earlier
2023-09-12 15:56:31 -05:00
Seth Michael Larson
63f19b5ead
Explicitly require Python 3.10+ for vendoring task
2023-09-12 15:56:31 -05:00
Seth Michael Larson
44857c6e82
Update error message to forward platform-specific error
2023-09-12 15:56:30 -05:00
Seth Michael Larson
9a65b887a4
Use absolute instead of relative imports for vendored modules
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2023-09-12 15:56:30 -05:00
Seth Michael Larson
9ee4b8ce36
Vendor truststore
2023-09-12 15:56:29 -05:00
Pradyun Gedam
0db5d95da0
Merge branch 'main' into extra-normalization
2023-09-10 10:19:13 +01:00
Itamar Turner-Trauring
ab9f6f37f1
Fix formatting, combine numbers not strings!
...
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2023-09-07 12:07:50 -04:00
Sander Van Balen
952ab6d837
Update src/pip/_internal/resolution/resolvelib/factory.py
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2023-09-07 10:31:49 +02:00
Itamar Turner-Trauring
b273cee6c5
Combine one entry, explain difference between entries better.
2023-09-06 16:48:49 -04:00
Itamar Turner-Trauring
577c86cff4
Merge branch 'main' into 2984-new-cache-lower-memory
2023-09-06 11:47:38 -04:00
Sander Van Balen
449522a828
minor fixes and linting
2023-09-06 15:16:22 +02:00
Sander Van Balen
f5602fa0b8
added message to invariant assertions
2023-09-06 15:12:17 +02:00