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

12676 commits

Author SHA1 Message Date
Pradyun Gedam
8b36ba5d94
Fix typo
explicit{ely -> ly}
2022-01-29 09:11:51 +00:00
Pradyun Gedam
b3a156892b
Trim unnecessary newlines in news template 2022-01-29 09:10:54 +00:00
Pradyun Gedam
448f8b7471
Merge pull request #10840 from uranusjr/disable-location-warning 2022-01-29 09:02:08 +00:00
Tzu-ping Chung
698ccec1da Disable location warning for Python < 3.10 2022-01-29 15:42:31 +08:00
Pradyun Gedam
649048b56a
Merge pull request #10291 from jdufresne/html5lib 2022-01-28 11:16:19 +00:00
Jon Dufresne
20fe83fe95
Point users to https://github.com/pypa/pip/issues/10825 2022-01-28 06:46:36 +00:00
Jon Dufresne
bf5f4008e7
Replace vendored html5lib with stdlib
The html5lib library isn't strictly required as the same functionality
can be achieved through the stdlib html.parser module.

The html5lib is one of the largest uses of the six library. By dropping
this unnecessary dependency, the pip project is closer to dropping the
six library.

Additionally, html5lib maintenance has slowed down and the project has
rejected pull requests to drop Python 2 support.

For now, the html5lib code remains, but is gated behind a command
line option: `--use-deprecated=html5lib`. After a sufficient amount of
time has passed without any reported bugs, the vendored library and this
flag can be removed completely.
2022-01-28 06:45:57 +00:00
Pradyun Gedam
98b102271c
Merge pull request #10722 from pradyunsg/stop-backtracking-on-build-failures 2022-01-27 20:54:44 +00:00
Pradyun Gedam
fdba4c2221
Merge pull request #10830 from DiddiLeija/nox-force-color 2022-01-27 20:42:54 +00:00
Pradyun Gedam
9d0db8839f
Add --use-deprecated=backtrack-on-build-failures
This serves as an opt-out from build failures causing the entire
installation to abort.
2022-01-27 18:11:05 +00:00
Pradyun Gedam
ca78aba456
Test that the resolver skips packages, as instructed by constraints 2022-01-27 18:11:05 +00:00
Pradyun Gedam
8eeee22304
Abort immediately on metadata generation failure instead of backtracking
This behaviour is more forgiving when a source distribution cannot be
installed (eg: due to missing build dependencies or platform
incompatibility) and favours early eager failures instead of trying to
ensure that a package is installed regardless of the amount of effort it
takes.
2022-01-27 18:11:02 +00:00
Pradyun Gedam
1cda23bd6b
Merge pull request #10795 from pradyunsg/better-subprocess-errors 2022-01-27 07:09:18 +00:00
Pradyun Gedam
dec279ecdf
Merge pull request #10815 from pradyunsg/vendoring-upgrade 2022-01-27 07:05:24 +00:00
Taneli Hukkinen
bbcbfc655e
Avoid deprecation warning from Tomli (#10238) 2022-01-26 21:12:51 +00:00
Diego Ramirez
9436e16cf3
Pass FORCE_COLOR=1 to the CI, to colorize Nox
This is just a preference, I'm approaching a new Nox ability.
2022-01-25 14:03:15 -06:00
Andy Freeland
e752b1a26b
Include files/folders in pip install autocomplete (#10682) 2022-01-25 18:27:09 +00:00
Pradyun Gedam
ab2ee1a9f4
Tweak certifi version 2022-01-25 09:40:58 +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
Pradyun Gedam
aba689c47f
Update vendor news fragments for rich/pygments/typing_extensions
These are newly vendored and this "upgrade" is the wrong verb to use.
2022-01-25 08:51:14 +00:00
Pradyun Gedam
658559afaf
Upgrade typing_extensions to 4.0.1 2022-01-25 08:51:14 +00:00
Pradyun Gedam
1cdfab72b4
Upgrade pygments to 2.11.2 2022-01-25 08:51:14 +00:00
Pradyun Gedam
1c61502ce1
Upgrade rich to 11.0.0 2022-01-25 08:51:14 +00:00
Pradyun Gedam
d706df7e10
Upgrade idna to 3.3 2022-01-25 08:51:13 +00:00
Pradyun Gedam
177408dcdd
Upgrade certifi to 2021.10.8 2022-01-25 08:51:13 +00:00
Pradyun Gedam
f398363e5d
Pacify check-manifest 2022-01-25 08:51:13 +00:00
Pradyun Gedam
5b14995b85
Upgrade pyparsing to 3.0.7 2022-01-25 08:51:13 +00:00
Pradyun Gedam
5c565fc786
Upgrade platformdirs to 2.4.1 2022-01-25 08:51:13 +00:00
Pradyun Gedam
c0ef9d5ae2
Upgrade packaging to 21.3 2022-01-25 08:51:13 +00:00
Pradyun Gedam
cdfc700312
Upgrade msgpack to 1.0.3 2022-01-25 08:51:13 +00:00
Pradyun Gedam
66c9d12317
Upgrade distlib to 0.3.4 2022-01-25 08:51:13 +00:00
Pradyun Gedam
3f6e14d42d
Add a no-op expires to mirror FileCache 2022-01-25 08:51:13 +00:00
Pradyun Gedam
5f5a0b3560
Upgrade CacheControl to 0.12.10 2022-01-25 08:51:13 +00:00
Pradyun Gedam
723b2df7b4
Double-escape paths on Windows
This helps ensure that they aren't improperly handled due to the newer
string-in-string design for the setuptools invocation script.
2022-01-25 08:24:31 +00:00
Pradyun Gedam
2e8e5ad3df
Don't duplicate output when raising out of distribution preparation 2022-01-25 01:38:23 +00:00
Pradyun Gedam
94668c6df6
Pacify unit tests 2022-01-25 01:38:23 +00:00
Pradyun Gedam
ba79b1c639
📰 2022-01-25 01:38:23 +00:00
Pradyun Gedam
40bed179c0
Sort imports 2022-01-25 01:38:23 +00:00
Pradyun Gedam
deb2d754e7
Tweak the chattymodule to not leak potentially information
I'd like to use this in screenshots, but the os.environ makes it a bit
tricky to do.
2022-01-25 01:38:23 +00:00
Pradyun Gedam
eb462744da
Raise the LegacyInstallFailure exception directly 2022-01-25 01:38:23 +00:00
Pradyun Gedam
a835e0a277
Prettify messages for discarding candidates due to issues
These are more pleasing colours and, more importantly, a clearer
presentation style of the package vs the error.
2022-01-25 01:38:23 +00:00
Pradyun Gedam
1a0193f9e4
Improve the setuptools caller script 2022-01-25 01:38:23 +00:00
Pradyun Gedam
68e0bd46c8
Add an example setuptools-based package that always fails 2022-01-25 01:38:23 +00:00
Pradyun Gedam
d527e85146
Add a dedicated exception for metadata generation failures 2022-01-25 01:38:22 +00:00
Pradyun Gedam
1ee370637f
Add diagnostics to InstallationSubprocessError
This more clearly states where the error came from, presents it in a
more approachable format with context provided for what this error is
related to.
2022-01-25 01:38:22 +00:00
Pradyun Gedam
2a617d5455
Improve presentation of LegacyInstallFailure
These errors now more clearly note where the error occurred and what
component is at fault.
2022-01-25 01:38:22 +00:00
Pradyun Gedam
543d0b3165
Clearly document that exceptions shouldn't import any internals
This file should be importable in all other modules, which means it
can't be importing any of those modules (to prevent an import loop).
2022-01-25 01:38:22 +00:00
Pradyun Gedam
57198c6688
Use logger.warning instead of warnings.warn
This is more in line with the rest of our output presentation logic.
2022-01-25 01:38:22 +00:00
Pradyun Gedam
7a13f7c213
Improve our setuptools shim
Modernise the shim, to account for the Python 3.2+ support matrix.

This also presents clearer error messages on failures, the included
comment helps inform users about why this shim exists and the traceback
now explicitly mentions `<pip-setuptools-shim>` to make it clearer to
users that this shim exists.
2022-01-25 01:38:22 +00:00
Pradyun Gedam
531c991ef9
Require every call_subprocess call-site to pass command_desc
This serves as additional context that can be presented in error
messages.
2022-01-25 01:38:22 +00:00