Commit Graph

11779 Commits

Author SHA1 Message Date
Pradyun Gedam 0139009eb0
Flesh out the Getting Started page 2021-05-22 00:31:05 +01:00
Pradyun Gedam cbade4e657
Further tweak the installation page 2021-05-22 00:31:05 +01:00
Pradyun Gedam afcefa9088
Rewrite substantial portions of installation docs 2021-05-22 00:31:05 +01:00
Pradyun Gedam 86c79441e9
Add initial getting-started scaffold 2021-05-22 00:31:04 +01:00
Pradyun Gedam 9fb3b7c795
Add new installation document 2021-05-22 00:31:01 +01:00
Tzu-ping Chung 8360cab1ba Test case for backtracking an installed candidate 2021-05-22 05:36:01 +08:00
Tzu-ping Chung 9b3bbee2b2
Merge pull request #9920 from zip-ignore-timestamp
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-22 05:10:28 +08:00
Stéphane Bidoul 1f68338370
Merge pull request #9960 from abn/issue/9953
Handle standalone pip creation from pip wheel
2021-05-21 23:05:07 +02:00
Stéphane Bidoul caf55a1f80
Merge pull request #9945 from uranusjr/legacy-egg-info-check-setup-exists
Better diagnose when setup.py/cfg cannot be found
2021-05-21 23:00:58 +02:00
Donald Stufft 31482d5772
Merge pull request #9987 from alex/patch-1
Include rustc version in the user agent, if rustc is available
2021-05-20 23:00:46 -04:00
Alex Gaynor 9ab448de63 Added a timeout to invoking rustc 2021-05-20 19:24:54 -04:00
Tzu-ping Chung d18ac6250e 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-18 23:00:25 +08:00
Alex Gaynor 248b6785a4 Added comments 2021-05-17 17:15:27 -04:00
Tzu-ping Chung 1904e4d66d Relax installable dir check to allow cfg-only 2021-05-18 02:47:56 +08:00
Alex Gaynor 722ba2dd16 Added a new fragment 2021-05-17 08:01:04 -04:00
Alex Gaynor f787788a65 Include rustc version in the user agent, if rustc is available
Rust is becoming more popular for writing Python extension modules in, this information would be valuable for package maintainers to assess the ecosystem, in the same way glibc or openssl version is.
2021-05-16 21:50:58 -04:00
Miro Hrončok f77649e841 Provide a better error message when uninstalling packages without dist-info/RECORD
Fixes https://github.com/pypa/pip/issues/8954
2021-05-10 21:56:59 +02:00
Nicholas Serra 346edd64bc
Update src/pip/_internal/build_env.py
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-05-09 11:46:47 -04:00
Arun Babu Neelicattu 8ef383bb23 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-09 00:19:36 +02:00
Tzu-ping Chung 1983ef0edc 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-04 16:54:52 +08:00
Stéphane Bidoul e6414d6db6
Merge pull request #9934 from dmerejkowsky/typo
Fix typo in NEWS.rst
2021-05-01 16:40:28 +02:00
Dimitri Merejkowsky 29f1963233 Fix typo in NEWS.rst 2021-05-01 13:20:04 +02:00
Stéphane Bidoul 0bb3ac87f5
Merge pull request #9930 from sbidoul/release/21.1.1
Release 21.1.1
2021-04-30 21:06:51 +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
Nicholas Serra beeb89c294
Update news/9910.bugfix.rst
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-04-30 13:21:46 -04: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
Nicholas Serra 1ee1aca7de
9910 news 2021-04-29 13:15:46 -04:00
Nicholas Serra 5822e39d24
Set strict_timestamps=False when zip is called for isolated environment 2021-04-29 13:11:58 -04: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