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

11716 commits

Author SHA1 Message Date
Pradyun Gedam 4cab55f48e
Rephrase the warning printed when run as root on Unix
The earlier warning phrasing has some awkwardness and doesn't clearly
explain why this action is potentially harmful. The change from
"you should" to "it is recommended" is also intentional, to take a
different tone.
2021-06-26 10:43:35 +02:00
Stéphane Bidoul 8737f903ea
Bump for release 2021-05-23 11:20:08 +02:00
Stéphane Bidoul d7cf6cacde
Update AUTHORS.txt 2021-05-23 11:20:06 +02:00
Stéphane Bidoul 30faa6478e
Fix duplicate top line in NEWS.rst
It looks like towncrier unconditionally writes top_line
when it is defined in the title_format configuration.
So we must not repeat it in the template.
When running towncrier with --draft, it works differently
so in that case the top line is not shown...
2021-05-23 11:19:37 +02:00
Tzu-ping Chung 128ec36254
Test case for backtracking an installed candidate 2021-05-23 10:39:47 +02:00
Tzu-ping Chung 729c626da7
Exclude a known incompatible installed candidate
The resolver collects previously known incompatibilites and sends them
to the provider. But previously the provider does not correctly exclude
the currently-installed candidate if it is present in that
incompatibility list, causing the resolver to enter a loop trying that
same candidate. This patch correctly applies incompat_ids when producing
an AlreadyInstalledCandidate and exclude it if its id() is in the set.
2021-05-23 10:39:47 +02:00
Nicholas Serra 1c31d3314c
Update src/pip/_internal/build_env.py
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-23 10:39:47 +02:00
Nicholas Serra e266aa55ac
Update news/9910.bugfix.rst
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-23 10:39:46 +02:00
Nicholas Serra 00003d5325
9910 news 2021-05-23 10:39:46 +02:00
Nicholas Serra d55e02c716
Set strict_timestamps=False when zip is called for isolated environment 2021-05-23 10:39:46 +02:00
Arun Babu Neelicattu 4f983c4476
Handle standalone pip creation from pip wheel
This change ensures that when pip is executed from a wheel/zip,
standalone pip creation for build environment reuses the source.

Resolves: #9953
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-23 10:39:46 +02:00
Tzu-ping Chung f1bea48b5d
Relax installable dir check to allow cfg-only 2021-05-23 10:39:46 +02:00
Tzu-ping Chung 06d65a0327
Better diagnose when setup.py/cfg cannot be found
This adds a check before invoking 'egg_info' to make sure either setup.py or
setup.cfg actually exists, and emit a clearer error message when neither can
be found and the egg_info command can never succeed.
2021-05-23 10:39:45 +02:00
Dimitri Merejkowsky 5b5288435b
Fix typo in NEWS.rst 2021-05-23 10:39:45 +02:00
Stéphane Bidoul 1c363af65c
Bump for development 2021-04-30 19:59:11 +02:00
Stéphane Bidoul c53d88c4c3
Bump for release 2021-04-30 19:59:10 +02:00
Stéphane Bidoul 4417e7f4be
Update AUTHORS.txt 2021-04-30 19:56:35 +02:00
Pradyun Gedam 0c29bfe48e
Merge pull request #9912 from uranusjr/sysconfig-remove-warning-for-python-release
Remove the location warnings for now
2021-04-30 08:28:26 +01:00
Tzu-ping Chung f56ec327b9 Make location mismatch messages DEBUG level 2021-04-30 09:29:27 +08:00
Stéphane Bidoul 999b121402
Merge pull request #9883 from uranusjr/isolated-pip-py36-compat
Fallback to self-invoke via directory on 3.6
2021-04-29 09:13:15 +02:00
Tzu-ping Chung f88420319d Fallback to self-invoke via directory on 3.6
This fixes a compatibility issue when a PEP 517 build requirement
itself needs to be built in an isolated environment, caused by
importlib.resources not being available.
2021-04-27 14:27:42 +08:00
Stéphane Bidoul 7a77484a49
Merge pull request #9835 from jamescurtin/9831-bugfix
Fix import error introduced in 21.1
2021-04-25 11:37:32 +02:00
Stéphane Bidoul 914bcc3dba
Merge pull request #9838 from uranusjr/sysconfig-header-with-none-project
Set project name to UNKNOWN when empty
2021-04-25 11:35:34 +02:00
Tzu-ping Chung 2a009a0b8a Better explanatory comment 2021-04-25 17:04:43 +08:00
Tzu-ping Chung e7b1722efe Set dist_name to UNKNOWN when empty outside venv
For compatibility with distutils. This is only done when pip is not
inside a virtual environment due to a quirk in pip's previous
implementation to the header path.
2021-04-25 07:08:52 +08:00
James Curtin 6d636902d7
Fix import error introduced in 21.1 2021-04-24 16:54:52 -04:00
Pradyun Gedam 75ba96cdf1
Merge pull request #9833 from pypa/pradyunsg-patch-1
Remove empty title, which broke the issue form
2021-04-24 16:11:54 +01:00
Pradyun Gedam ff228fdeaf
Remove empty title, which broke the issue form 2021-04-24 16:10:26 +01:00
Stéphane Bidoul a63fd653ef
Merge pull request #9828 from sbidoul/release-21.1
Release 21.1
2021-04-24 14:59:08 +02:00
Stéphane Bidoul 4b0cddc041 Bump for development 2021-04-24 12:38:14 +02:00
Stéphane Bidoul 2b2a268d25 Bump for release 2021-04-24 12:38:14 +02:00
Stéphane Bidoul ea761a6575 Update AUTHORS.txt 2021-04-24 12:38:14 +02:00
Stéphane Bidoul 2edd3fdf2a Postpone a deprecation to 21.2 2021-04-24 12:38:14 +02:00
Stéphane Bidoul 3cccfbf169 Rename mislabeled news fragment 2021-04-24 11:46:13 +02:00
Stéphane Bidoul 21cd124b5d Fix NEWS.rst placeholder position 2021-04-24 11:46:13 +02:00
Stéphane Bidoul e46bdda971
Merge pull request #9827 from pradyunsg/fix-git-improper-tag-handling
Don't split git references on unicode separators
2021-04-24 11:45:13 +02:00
Pradyun Gedam 0e4938d269
📰 2021-04-24 10:19:10 +01:00
Pradyun Gedam ca832b2836
Don't split git references on unicode separators
Previously, maliciously formatted tags could be used to hijack a
commit-based pin. Using the fact that the split here allowed for
all of unicode's whitespace characters as separators -- which git allows
as a part of a tag name -- it is possible to force a different revision
to be installed; if an attacker gains access to the repository.

This change stops splitting the string on unicode characters, by forcing
the splits to happen on newlines and ASCII spaces.
2021-04-24 10:19:03 +01:00
Stéphane Bidoul 1320bac4ff
Merge pull request #9814 from pradyunsg/revamp-ci-apr-2021-v2
Run all of CI, on scheduled runs
2021-04-24 11:05:03 +02:00
Pradyun Gedam e9cc23ffd9
Skip checks on PRs only 2021-04-24 10:00:54 +01:00
Stéphane Bidoul 4b8004a1b9
Merge pull request #9775 from uranusjr/new-resolver-direct-url-with-extras
Correctly resolve requirement requested both as non-extra URL and non-URL with extras
2021-04-23 21:52:03 +02:00
Tzu-ping Chung cf4e3aa055 Remove stray id(candidate) call
Also moves the incompatibility candidate calculation to closer to their
usages.
2021-04-24 02:09:24 +08:00
Pradyun Gedam 73dca3a43a
Change quotes 2021-04-21 10:00:46 +01:00
Pradyun Gedam 9ae842b0dc
Merge pull request #9820 from webknjaz/docs/sphinx-parallelism
Enable parallelism in Sphinx
2021-04-20 21:38:26 +01:00
Sviatoslav Sydorenko 92862e28ec
Enable parallelism in Sphinx 2021-04-20 22:35:53 +02:00
Stéphane Bidoul 88eb4f092e
Merge pull request #9813 from sbidoul/update-vendored-20210417-sbi
Update vendored dependencies
2021-04-20 14:46:26 +02:00
Tzu-ping Chung 9cab9834fa Refactor Factory.find_candidates() for readability 2021-04-19 12:21:35 +08:00
Tzu-ping Chung 0305e0d596 Implement extra-ed requirement merging
When a requirement is requested multiple times, some via a direct URL
("req @ URL") and some not but with extras ("req[extra] VERSION"), the
resolver previous could not correctly find "req[extra]" if "req" is
available in an index.

This additional logic makes the resolver, when encountering a
requirement with identifier "req[extra]", to also look for explicit
candidates listed under "req", and add them as found matches for
"req[extra]".
2021-04-19 08:37:35 +08:00
Tzu-ping Chung a31f8fd5ed Add failed test case 2021-04-19 08:31:28 +08:00
Stéphane Bidoul 8fc65ea53f
Merge pull request #9673 from mwchase/url-constraints-final-2
Support URL constraints in the new resolver
2021-04-18 12:31:45 +02:00