wim glenn
32f642d123
provide a better error message for "pip config get index-url"
2022-04-29 22:51:16 -05:00
wim glenn
6efe70858c
mention that detail..
2022-04-29 22:38:38 -05:00
wim glenn
af20d93d71
placate pre-commit
2022-04-29 22:38:38 -05:00
wim glenn
4b35763d5f
``pip config`` normalizes names, converting underscores into dashes. closes #9330
2022-04-29 22:38:38 -05:00
Pradyun Gedam
04f754d947
Merge pull request #11076 from pradyunsg/improve-protected-pip
...
Rename `tox_pip.py` to `protected_pip.py`
2022-04-29 21:56:02 +01:00
Pradyun Gedam
84ee57d126
Add additional context to `protected_pip.py` about how it works
...
This should make it easier to understand what this file is doing,
and when it is useful.
2022-04-29 16:20:14 +01:00
Pradyun Gedam
1a2d2a188f
Rename `tox_pip.py` to `protected_pip.py`
...
This is in line with what the only point of use (in noxfile.py) calls
this.
2022-04-29 16:10:26 +01:00
Paul Moore
cdeb8f9e63
Merge pull request #11059 from pfmoore/config_settings
...
Add a UI to set config settings for PEP 517 backends
2022-04-29 12:58:32 +01:00
wim glenn
6313d866e5
Improve ``pip config --help`` text ( #11074 )
2022-04-29 10:32:52 +01:00
Pradyun Gedam
7eb75413e8
Merge pull request #10959 from pradyunsg/better-upgrade-warning
...
Improve the presentation style of the pip upgrade prompt
2022-04-28 18:26:43 +01:00
Pradyun Gedam
7164b1af50
Merge pull request #10827 from q0w/project-urls
...
Include Project-URLs in `pip show -v` output
2022-04-23 21:39:51 +01:00
Pradyun Gedam
24ffdaa494
Merge pull request #11063 from pradyunsg/vendoring-update
2022-04-23 21:38:52 +01:00
Tomáš Hrnčiar
452d7da880
Fallback to pyproject.toml-based builds if setuptools cannot be imported ( #10717 )
...
This fallback is only triggered if the project has a `setup.py` file.
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2022-04-23 15:56:59 +01:00
Paul Moore
437bb67900
Rename test file pep517 -> pyproject
2022-04-23 14:45:59 +01:00
Paul Moore
4db45851b6
Explicitly test installs (and fix a bug found by those tests!)
2022-04-23 13:14:22 +01:00
Pradyun Gedam
85ccf51b64
Better accomodate for case-insensitive file systems
2022-04-23 12:30:43 +01:00
Pradyun Gedam
4e53eaf3e7
Use `python -m pip` for the upgrade prompt on Windows
2022-04-23 12:30:43 +01:00
Pradyun Gedam
26d8441100
Pacify linters by passing `logging.DEBUG` instead of `"DEBUG"`
2022-04-23 12:30:42 +01:00
Pradyun Gedam
ee72f55de6
Add an early return with comment if pip wasn't installed by pip
...
This addresses a review comment around the code style, and makes it
possible to provide additonal context in the comment.
2022-04-23 12:30:42 +01:00
Pradyun Gedam
ca84a83633
Rework the tests for `self_check_outdated` to do less mocking
...
This makes the tests more reliable and easier to reason about. This also
adds a few more cases under the test conditions.
2022-04-23 12:30:42 +01:00
Pradyun Gedam
e247195e21
Move self-check logic into a dedicated function
...
This makes it easier to test this code.
2022-04-22 16:36:29 +01:00
Pradyun Gedam
59db67c8b2
Add some debugging logs to `self_outdated_check`
...
This would make it easier to diagnose what an issue might be, related to
this logic, since the things that affect whether the message is printed,
are now available in the debugging logs.
2022-04-22 16:36:29 +01:00
Pradyun Gedam
4a3c4c90ef
Improve style of the pip upgrade prompt
...
This style makes the upgrade prompt less of blurb of yellow text, making
it easier to read while clarifying the presentation style to make it
easier to figure out what the user is supposed to run.
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2022-04-22 16:36:29 +01:00
Pradyun Gedam
4f35572ae7
Refactor the logic in self_outdated_check
...
- Move the lookup within `selfcheck/*.json` files into a method on
`SelfCheckState`.
- Factor out `PackageFinder` interaction into a separate function.
- Rename variables to more clearly reflect what they're for.
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2022-04-22 16:36:29 +01:00
Pradyun Gedam
ea0d976d9f
Add a way to get a simpler invocation of pip
...
This makes it possible to provide more terse suggestions that are still
correct, depending on the user's environment.
2022-04-22 16:36:29 +01:00
Pradyun Gedam
c4470ba3bd
Rename `[present-diagnostic]` to `[present-rich]`
...
This makes it more reasonable to use a rich renderable for regular
logging messages, instead of only using it for the diagnostic error
messages.
2022-04-22 16:36:29 +01:00
Pradyun Gedam
5570b4218f
Merge pull request #11062 from pradyunsg/update-pre-commit-hooks
...
Update pre-commit hooks
2022-04-22 16:31:39 +01:00
Pradyun Gedam
b68de249d1
Remove a no-longer-needed `type: ignore` comment
2022-04-22 16:13:35 +01:00
Pradyun Gedam
840d54b5e2
Disable spurious flake8-bugbear warnings
2022-04-22 16:13:09 +01:00
Pradyun Gedam
208937c6dd
Update the versions of pinned packages in pre-commit environments
2022-04-22 16:09:12 +01:00
Pradyun Gedam
f0721906fc
Upgrade tomli to 2.0.1
2022-04-22 15:50:29 +01:00
Pradyun Gedam
caa6aebee2
Upgrade typing_extensions to 4.2.0
2022-04-22 15:50:29 +01:00
Pradyun Gedam
377d642384
Upgrade rich to 12.2.0
2022-04-22 15:50:29 +01:00
Pradyun Gedam
dfcac4add2
Upgrade platformdirs to 2.5.2
2022-04-22 15:50:29 +01:00
Pradyun Gedam
44175c7754
Upgrade distro to 1.7.0
2022-04-22 15:50:27 +01:00
Pradyun Gedam
e747a22b57
Upgrade CacheControl to 0.12.11
2022-04-22 15:38:00 +01:00
Pradyun Gedam
4085eb0236
Update pre-commit hooks
...
This makes the output easier to parse on failures in this.
2022-04-22 15:27:27 +01:00
Paul Moore
962b0738fd
Add documentation
2022-04-22 10:42:16 +01:00
Paul Moore
044091afbf
Don't assume options has a config_settings attribute
2022-04-21 22:53:11 +01:00
Paul Moore
6e14d0ca78
Add a news file
2022-04-21 18:38:57 +01:00
Paul Moore
1401dbae56
Add an end-to-end test for config settings
2022-04-21 18:30:48 +01:00
Paul Moore
6da9b5c694
Call the PEP 517 backend with the requirement's config settings
2022-04-21 18:30:48 +01:00
Paul Moore
af28440792
Store config settings on the install requirement
2022-04-21 18:30:48 +01:00
Paul Moore
d9c4ebf7be
Add tests for basic --config-settings parsing
2022-04-21 18:30:48 +01:00
Paul Moore
01690b8423
Add new --config-settings option to install and wheel commands
2022-04-21 18:30:48 +01:00
Stéphane Bidoul
c247ddce12
Merge pull request #10870 from sbidoul/rm-pep610-resolved_revision-sbi
...
Remove resolved_revision from DirectUrl VcsInfo
2022-04-18 15:00:19 +02:00
Stéphane Bidoul
bc0f4c36ee
Remove resolved_revision from DirectUrl VcsInfo
...
Altough resolved_revision it is part of PEP 610, it is currently not
implemented in pip, so remove it from the code
base to avoid confusion.
2022-04-18 13:56:22 +02:00
Pradyun Gedam
7acfc83822
Merge pull request #11041 from asottile/upgrade-pyparsing
...
Upgrade pyparsing to improve startup time
2022-04-17 17:34:08 +01:00
Anthony Sottile
994bd91c3e
upgrade pyparsing to improve startup time
2022-04-17 08:28:48 -07:00
Tzu-ping Chung
8133d83929
Merge pull request #11030 from uranusjr/build-env-req-check-evaluate-marker
2022-04-16 19:46:23 +08:00