summaryrefslogtreecommitdiff
path: root/src/pip/_internal/operations/prepare.py
Commit message (Collapse)AuthorAgeFilesLines
* Build local directories in-place with feature flagDavid Hewitt2021-02-221-3/+31
|
* Merge pull request #9415 from jdufresne/path_to_displayPradyun Gedam2021-02-201-3/+3
|\ | | | | Remove Python 2 compat shim path_to_display()
| * Remove Python 2 compat shim path_to_display()Jon Dufresne2021-02-191-3/+3
| | | | | | | | | | | | 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.
* | Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-15/+8
|/ | | | | | | | | | | 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
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
| | | | | | | | 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.
* Merge pull request #8896Tzu-ping Chung2021-02-181-6/+55
|\
| * fix lintDanny McClanahan2020-10-091-3/+2
| |
| * download requirements in the download command, outside of the resolverDanny McClanahan2020-10-091-7/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | create PartialRequirementDownloadCompleter, and use in wheel, install, and download add NEWS entry rename NEWS entry rename NEWS entry respond to review comments move the partial requirement download completion to the bottom of the prepare_more method
* | Merge pull request #9274 from sbidoul/pip-wheel-must-keep-clone-sbiPradyun Gedam2021-01-171-1/+1
|\ \
| * | The preparer always clones VCS requirementsStéphane Bidoul2020-12-271-1/+1
| | | | | | | | | | | | | | | | | | Previously, in download mode, it did a vcs export, which did not include vcs information, leading to issues when the build backend required it.
* | | Remove unused class CopytreeKwargsJon Dufresne2020-12-281-12/+1
| | | | | | | | | | | | Unused since d509a27ad4e462181719f25c32ba64c2c34b68de.
* | | Remove object from class definitionsJon Dufresne2020-12-251-2/+2
| | | | | | | | | | | | | | | Unnecessary since dropping Python 2 support. In Python 3, all classes are new style classes.
* | | Use short Python3 super() syntaxJon Dufresne2020-12-241-1/+1
| | |
* | | Review updatesHugo van Kemenade2020-12-221-5/+7
| | |
* | | Remove redundant Python 2.7 codeHugo van Kemenade2020-12-221-25/+11
|/ /
* | Do not download editables while preparing requirementsStéphane Bidoul2020-11-221-2/+1
|/ | | | | | | Downloading is done at the end of the download command just like any other requirement. This is necessary to avoid archiving editable requirements to a zip file when running pip wheel.
* New resolver: Avoid polluting dest dirNguyễn Gia Phong2020-10-071-13/+23
| | | | | | | Previously, during dependency resolution for `pip download -d <dir>` or `pip wheel -w <dir>`, distributions downloaded are always saved to <dir>, even for those are only used in backtracking and are not part of the returned requirement set.
* Merge usage of download_dir and wheel_download_dirNguyễn Gia Phong2020-10-071-33/+13
| | | | | In every cases, at least one of them is None. By doing this, it is also possible to simplify wrapper codes around download_dir.
* Remove download_dir exist checkNguyễn Gia Phong2020-10-071-16/+2
| | | | Both pip download and wheel call endure_dir on the directory.
* Merge pull request #8804 from McSinyx/fast-deps-check-dl-dirPradyun Gedam2020-10-021-14/+20
|\
| * Comment and rework conditionals in download dir checkNguyễn Gia Phong2020-10-011-5/+10
| | | | | | | | Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
| * [fast-deps] Check download directory before making requestsNguyễn Gia Phong2020-09-171-14/+15
| |
* | Prepare isort for blackPradyun Gedam2020-09-231-9/+2
| |
* | Merge pull request #8861 from pradyunsg/nicer-output-try-1Pradyun Gedam2020-09-171-5/+17
|\ \ | |/ |/|
| * Use a symmetric type and make mypy happyPradyun Gedam2020-09-101-1/+1
| |
| * Only Print "Collecting ..." when the requirement changesPradyun Gedam2020-09-101-1/+6
| |
| * Improve how cached wheels are presentedPradyun Gedam2020-09-101-1/+5
| | | | | | | | This is specifically for the case of look ups done in the new resolver.
| * Factor out logger.into into a single callPradyun Gedam2020-09-101-4/+7
| | | | | | | | This makes it easier to conditionally print this information.
* | Dedent late download logsNguyễn Gia Phong2020-09-131-48/+45
|/
* Give batch downloader a separate classNguyễn Gia Phong2020-08-121-9/+10
|
* Check download folder for files to be downloaded in batchNguyễn Gia Phong2020-08-121-13/+26
|
* Check hashes of memoized downloadsNguyễn Gia Phong2020-08-111-3/+7
|
* Clean up code style and internal interfaceNguyễn Gia Phong2020-08-111-5/+7
| | | | | Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com> Co-Authored-By: Chris Hunt <chrahunt@gmail.com>
* Add memoization mechanism for file downloadNguyễn Gia Phong2020-08-111-17/+26
| | | | This is intentionally dependent from caching, which relies on cache dir.
* Make Downloader perform the downloadNguyễn Gia Phong2020-08-111-27/+4
|
* 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-061-16/+29
|
* Prepare lazy wheels more so they are downloadedChris Hunt2020-08-021-0/+14
| | | | | | 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-021-0/+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.
* Propagate lazy_wheel option through RequirementPreparerChris Hunt2020-08-021-0/+4
| | | | Reduces dependence on Candidate (and Resolver (and Factory)).
* Abstract away AbstractDistribution in higher-level resolver codeNguyễn Gia Phong2020-07-261-19/+16
|
* feat(pip/_internal/*): Use custom raise_for_status methodgutsytechster2020-07-081-2/+2
|
* Inline constant variableChris Hunt2020-07-061-3/+2
|
* Don't unpack wheels during preparationChris Hunt2020-07-061-12/+8
| | | | | | | | For some time we have not needed to pre-emptively unpack wheels as part of metadata processing, but kept the existing logic because the behavior would start to diverge more for different package types. In this case, though, removing the special cases for wheels makes this logic a bit simpler, so it is worth doing.
* Apply suggestions from code reviewPradyun Gedam2020-06-171-2/+4
|
* Make linked req hashes an independant methodNguyễn Gia Phong2020-06-171-44/+37
|
* Move req.source_dir ensure outNguyễn Gia Phong2020-06-171-35/+37
|
* Move link log from prepare_linked_requirementNguyễn Gia Phong2020-06-171-17/+14
|