Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Stéphane Bidoul
8f0ed32413
Redact URLs in Collecting... logs
2023-10-14 14:02:55 +02:00
Danny McClanahan
bfa8a5532d
clean up duplicated code
2023-08-14 07:57:37 -04:00
Danny McClanahan
22637722aa
fix #11847 for sdists
2023-08-14 07:57:37 -04:00
Danny McClanahan
b47f77d330
add lots of comments on the function of BuildTracker
2023-08-01 13:50:40 -04:00
Tzu-ping Chung
4babc07663
Move metadata-fetching log to VERBOSE level
2023-07-28 15:32:29 +08:00
Paul Moore
c12139de9b
Disable PEP 658 for the legacy resolver
2023-07-18 20:50:10 +01:00
Paul Moore
8e80a3ad9a
Fix typo
2023-07-03 10:45:01 +01:00
Paul Moore
647ba8d07e
Limit the double download fix to wheels
2023-07-03 10:35:01 +01:00
Paul Moore
b99e082b00
Record download of completed partial requirements
2023-07-01 14:42:10 +01:00
Paul Moore
2966a3e395
Merge pull request #12044 from chriskuehl/fix-pep658-name-normalization
...
Canonicalize package names before comparison for PEP658 metadata
2023-05-21 11:29:43 +01:00
Chris Kuehl
767bb40755
Canonicalize package names before comparison for PEP658 metadata
2023-05-20 22:12:56 -05:00
Stéphane Bidoul
0621e5ad0d
Add ireq.is_direct property, for readability
2023-04-16 12:01:04 +02:00
Stéphane Bidoul
bd746e3136
Introduce ireq.cached_wheel_source_link
2023-04-14 08:03:49 +02:00
Stéphane Bidoul
a6ef6485be
Rename original_link_is_in_wheel_cache to is_wheel_from_cache
...
This more accurately reflects that it is not necessarily
related to original_link, original_link being the direct URL
link,
and the wheel cache can also be populated from sdists
URL discovered by the finder.
2023-04-14 08:03:48 +02:00
Stéphane Bidoul
a1af13cd86
Tweak a condition
2023-04-14 08:03:48 +02:00
Stéphane Bidoul
0e2a0dbe4e
Improve pip wheel wrt hash checking of cached built wheels
2023-04-14 08:03:48 +02:00
Stéphane Bidoul
40cd79d6e5
Check hashes of cached built wheels agains origin source archive
2023-04-14 08:03:48 +02:00
Stéphane Bidoul
4f6d47d8bc
Tweak comments
2023-04-11 14:49:30 +02:00
Guillaume Seguin
c546c99480
Display dependency chain on each Collecting line
...
This tremendously helps understand why a package is being fetched and
can help investigate and fix dependency resolver backtracking issues
when incoherent constraints/package sets are provided or when new
versions of a package trigger a completely different backtracking
strategy, leading to very hard to debug situations.
2023-02-23 18:12:08 -08:00
Danny McClanahan
bad03ef931
Use data-dist-info-metadata (PEP 658) to decouple resolution from downloading ( #11111 )
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2022-09-10 11:28:57 +01:00
Stéphane Bidoul
05d2b85d4a
Add unit tests for cache origin.json... and fix a bug
2022-05-30 18:36:48 +02:00
Stéphane Bidoul
c6baa7514a
Add download_info to InstallRequirement
2022-05-22 22:46:35 +02:00
q0w
3166157e40
Opt to check build dependencies
2022-05-13 03:05:55 +03:00
Pradyun Gedam
428e886ad6
Drop out-of-tree/in-tree build transition flags
...
These were intended to help users transition when the default behaviour
changed to no longer perform out-of-tree builds. The transition is now
considered complete.
2022-04-08 12:20:36 +01:00
Pradyun Gedam
de1c798243
Rename all {req -> build}_tracker arguments/variables
2022-03-26 12:09:32 +00:00
Pradyun Gedam
e5542dc024
Move `BuildTracker` to `operations.build.build_tracker`
2022-03-26 12:09:32 +00:00
Pradyun Gedam
4bc81e3c24
Rename `RequirementTracker` to `BuildTracker`
2022-03-26 12:09:23 +00:00
James Gerity
5c24a798b8
Change VCS tooling verbosity along with pip's verbosity ( #9639 )
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2022-01-25 08:54:02 +00:00
Stéphane Bidoul
d362431d02
Add TODO
2021-10-18 14:31:11 +02:00
Stéphane Bidoul
040cc391ba
Make in-tree-build the default
...
Add an out-of-tree-build feature flag to ease the transition.
2021-09-25 13:11:01 +02:00
Tzu-ping Chung
135faabfd6
Remove direct pkg_resource usages from resolver and preparer
2021-08-23 02:07:33 +08:00
Pradyun Gedam
585037a80a
Cleanup implicit string concatenation
2021-08-20 13:37:52 +01:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Jon Dufresne
61333f5732
Simplify RequirementPreparer._downloaded data structure
...
The original type was `Dict[str, Tuple[str, str]]`. The 2nd element of
the tuple goes unused so map to a single str instead.
2021-08-09 20:05:32 -07:00
harupy
5db63be6f6
Resolve conflicts
2021-08-02 15:28:55 +09:00
Ben Mares
e8b5b585d3
Fix long line
2021-07-29 16:00:17 -07:00
Ben Mares
89f6c91806
Improve style for multiline string
...
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2021-07-29 15:50:25 -07:00
Ben Mares
a2252a3b33
Switch deprecation message to use feature_flag
2021-07-28 23:36:43 -07:00
Ben Mares
1418b5fc04
Improve the phrasing of in-tree-build deprecation
...
Context is explained in the following comment:
<https://github.com/pypa/pip/issues/7555#issuecomment-873612344 >
2021-07-28 23:36:43 -07:00
harupy
93db97c383
convert type comments
2021-07-23 23:29:29 +09:00
Tzu-ping Chung
288bffc43c
Unify Python project root detection logic
...
A Python project root is now defined as containing a pyproject.toml, or
a setup.py (pre-PEP-517 legacy layout). After this patch, this logic
applies to all checks except parse_editable, where we check for setup.py
and setup.cfg instead since non-setuptools PEP 517 projects cannot be
installed as editable right now.
2021-06-19 15:29:04 +08:00
David Hewitt
838988cb44
Build local directories in-place with feature flag
2021-02-22 23:31:47 +00:00
Pradyun Gedam
8a949a1c52
Merge pull request #9415 from jdufresne/path_to_display
...
Remove Python 2 compat shim path_to_display()
2021-02-20 13:22:43 +00:00
Jon Dufresne
0945809afc
Remove typing.TYPE_CHECKING guards
...
The typing module has been available since Python 3.5. Guarding the
import has been unnecessary since dropping Python 2.
Some guards remain to either:
- Avoid circular imports
- Importing objects that are also guarded by typing.TYPE_CHECKING
- Avoid mypy_extensions dependency
2021-02-19 18:34:21 -08:00
Jon Dufresne
3f6df167e0
Remove Python 2 compat shim path_to_display()
...
Per the function's type signature, this accepted either a str or None.
In both cases, the value was returned unaltered. Since dropping Python
2, it has been unnecessary.
2021-02-19 05:45:59 -08:00
Jon Dufresne
a6392bd62e
Replace pip._internal.utils.typing with stdlib typing
...
The stdlib module has been available since Python 3.5 and the
TYPE_CHECKING constant has been available since 3.5.2.
By using stdlib, this removes the need for pip to maintain its own
Python 2 typing compatibility shim.
2021-02-18 19:09:13 -08:00
Tzu-ping Chung
f03d71e6fe
Merge pull request #8896
2021-02-18 22:43:36 +08:00
Pradyun Gedam
3af9093a73
Merge pull request #9274 from sbidoul/pip-wheel-must-keep-clone-sbi
2021-01-17 15:30:57 +00:00
Jon Dufresne
4bfe1037ee
Remove unused class CopytreeKwargs
...
Unused since d509a27ad4
.
2020-12-28 17:07:56 -08:00