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

12625 commits

Author SHA1 Message Date
Pradyun Gedam
42075efa61
Annotate an unannotated test 2022-01-25 01:32:34 +00:00
Pradyun Gedam
997c5a742b
Merge pull request #10625 from albertosottile/ignore_yanked 2022-01-24 23:47:54 +00:00
Pradyun Gedam
79e6237aa6
Merge pull request #10759 from nateprewitt/patch_requests_2_27_0 2022-01-21 15:48:11 +00:00
Pradyun Gedam
3388ec4abc
Merge pull request #10814 from pradyunsg/misc
Deal with some warnings in development tooling
2022-01-21 15:11:01 +00:00
Pradyun Gedam
d15393de79
Disallow Sphinx 4.4.0 in documentation builds
It introduces additional warnings that we aren't ready for.
2022-01-21 14:35:19 +00:00
Pradyun Gedam
ff8b9a167e
Mark TestPipResult as not having tests
This makes pytest stop warning about it.
2022-01-21 14:10:40 +00:00
Nate Prewitt
9f3760ba14
Upgrade urllib3 to 1.26.8 2022-01-14 09:49:13 -07:00
Nate Prewitt
cc21ec2a2e
Upgrade Requests to 2.27.1 2022-01-14 09:49:09 -07:00
Pradyun Gedam
914178b5b9
Merge pull request #10776 from Molkree/update-license-year 2022-01-14 14:38:52 +00:00
Dmitry Volodin
874a2f8c39 Only specify start year in license 2022-01-14 16:22:09 +03:00
Pradyun Gedam
9e05fc1f00
Merge pull request #10796 from pradyunsg/try-fixing-test-suite 2022-01-14 12:03:49 +00:00
Pradyun Gedam
f197d3a3fa
Merge pull request #10780 from hugovk/skip-lock-threads-on-forks 2022-01-14 11:42:23 +00:00
Pradyun Gedam
764d8841fe
Use the standard library distutils for running tests
This is in line with what our unit tests are written with the assumption
of.
2022-01-14 11:29:16 +00:00
Hugo van Kemenade
fbf75b4965 CI: Only lock threads on upstream 2022-01-11 15:43:42 +02:00
Pradyun Gedam
7f8a684403
Merge pull request #10740 from pawelszramowski/explain-unquoted-pip-upgrade-cmd
Explain why using subprocess.list2cmdline is a bad idea
2021-12-22 05:26:51 +05:30
Paweł Szramowski
b8c4218e8f Explain why using subprocess.list2cmdline is a bad idea 2021-12-21 22:30:35 +01:00
Pradyun Gedam
5cf98408f4
Merge pull request #10703 from pradyunsg/rich-diagnostic-error-messages 2021-12-14 19:13:57 +00:00
Pradyun Gedam
fd45825063
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-12-12 13:30:06 +00:00
Pradyun Gedam
6b31f83187
Escape the package name, allowing rich to stylize URLs and links 2021-12-12 13:13:02 +00:00
Pradyun Gedam
961eb6f166
Stop stylizing PEP **518**
This is a slightly cleaner presentation style.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
b82dfd1745
Restore colors in regular logging messages
Also, reflects that `--no-color` does not mean no-ansi-escapes but only
affects colour rules.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
e857d0f532
Properly handle newlines in diagnostic error tests
This is necessary to ensure that the output can be compared directly.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
6a20f5b056
Add news fragment 2021-12-12 13:11:36 +00:00
Pradyun Gedam
d517dae1b7
Clean up where Text is used to wrap diagnostic messages.
This is only necessary on messages which may contain `[`, which needs to
be escaped before printing with rich, since rich treats them as output
formats.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
9f4117f2b8
Replace {attention -> note}_stmt
The new name is a closer match with what is presented to the user.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
8feb24fd12
Enable the use of rich for presenting output
This makes it possible to present output with rich markup, within the
constraints of our logging infrastructure.

Further, diagnostic errors can now by presented using rich, using their
own special "[present-diagnostic]" marker string, since those need to be
handled differently from regular log messages and passed directly
through to rich's console object, after an indentation wrapper.
2021-12-12 13:11:36 +00:00
Pradyun Gedam
03a87c22de
Improve DiagnosticPipError presentation
Borrow error presentation logic from sphinx-theme-builder, and
exhaustively test both the unicode and non-unicode presentation.

Utilise rich for colours and presentation logic handling, with tests to
ensure that colour degradation happens cleanly, and that the content is
stylized exactly as expected.

Catch diagnostic errors eagerly, and present them using rich. While this
won't include the pretty presentation in user logs, those files will
contain the entire traceback upto that line.
2021-12-12 13:11:35 +00:00
Pradyun Gedam
bbc7021cde
Merge pull request #10537 from pradyunsg/fix-misbehaving-test 2021-12-05 11:55:12 +00:00
Tzu-ping Chung
ebc13b4ddf
Merge pull request #10675 from uranusjr/metadata-misc 2021-12-05 04:43:10 +08:00
Pradyun Gedam
4cdf146f5d
Fix crashes with higher verbosity levels
This was causing issues in running the test suite locally at higher
verbosity levels, since this block causes errors when passed a URL.
2021-12-04 19:01:58 +00:00
Pradyun Gedam
3002881874
Merge pull request #10484 from pradyunsg/updated-direct-references-version 2021-12-04 18:59:46 +00:00
Tzu-ping Chung
052419f21b
Merge pull request #10671 from locations-slackware-home-platlibdir 2021-12-04 20:57:31 +08:00
Tzu-ping Chung
17c02813b7
Merge pull request #10707 from uranusjr/location-warning-suppress-apple 2021-12-04 19:28:39 +08:00
Tzu-ping Chung
d3b546d041 Tell people to report sysconfig issues to Apple 2021-12-04 18:23:49 +08:00
Tzu-ping Chung
496343ead0 Fix in-site-packages patch for user install tests 2021-12-04 17:57:34 +08:00
Tzu-ping Chung
6ed6aa819f Fix test failures caused by name normalization 2021-12-04 17:57:34 +08:00
Tzu-ping Chung
e50c07e6b5 Merge DictMetadata tests into metadata tests 2021-12-04 17:57:34 +08:00
Tzu-ping Chung
91f72674df Remove pkg_resources from requirement parser 2021-12-04 17:57:33 +08:00
Tzu-ping Chung
e6b9ddc24a NoneMetadataError doesn't need pkg_resources now 2021-12-04 17:57:33 +08:00
Tzu-ping Chung
498f313853 Remove pkg_resources usages from req_install 2021-12-04 17:57:33 +08:00
Tzu-ping Chung
cd01e4fd8f Remove pkg_resources usages from utils modules
Relevant functionalities are moved into pip._internal.metadata.
2021-12-04 17:57:33 +08:00
Tzu-ping Chung
d130d31b14
Merge pull request #10674 from uranusjr/mypy-fix-windows 2021-12-04 14:49:27 +08:00
Pradyun Gedam
e666842286
Merge pull request #10699 from cpawley/update-docs-10627 2021-12-03 20:14:13 +00:00
Tzu-ping Chung
3ba7c81d97
Merge pull request #10704 from pradyunsg/ci/auto-cancel-repeated-runs 2021-12-04 02:41:25 +08:00
Tzu-ping Chung
2e3fab3b28
Merge pull request #10705 from pradyunsg/add-missing-news 2021-12-04 02:41:11 +08:00
Pradyun Gedam
1b53e58974
Add missing news fragments related to rich adoption 2021-12-03 15:07:45 +00:00
Pradyun Gedam
fa2d428e43
Autocancel repeated CI runs
This will ensure that any specific pull request (or commit) only has a
single CI run happening at any point in time.
2021-12-03 14:37:04 +00:00
Pradyun Gedam
8ef91cfef5
Merge pull request #10693 from DiddiLeija/tox-to-nox 2021-12-03 14:02:47 +00:00
Pradyun Gedam
8d4fb059dd
Merge pull request #10686 from mgorny/missing-cryptography 2021-12-03 12:09:56 +00:00
Pradyun Gedam
94bbdfa1b7
Merge pull request #9995 from di/fix/9644
Fix issue with installing dependencies with extras & hashes
2021-12-03 09:12:09 +00:00