Commit Graph

12941 Commits

Author SHA1 Message Date
Pradyun Gedam 3c953322c6
Bump for release 2022-05-11 20:03:44 +01:00
Pradyun Gedam bd54382b59
Update AUTHORS.txt 2022-05-11 20:03:43 +01:00
Tzu-ping Chung c86f9f1259
Merge pull request #11044 from uranusjr/importlib-metadata-backend-in-3.11 2022-05-10 12:34:13 -06:00
Tzu-ping Chung bd9bcef8b3 Enable importlib.metadata backend on Python 3.11 2022-05-10 13:34:43 -04:00
Pradyun Gedam cb24fb4052
Merge pull request #11085 from pypa/revert-10962-fix-hashes 2022-05-09 08:38:51 +01:00
Pradyun Gedam 6ad9a21a43
📰 2022-05-06 18:16:41 +01:00
Pradyun Gedam cf3696a81b
Merge pull request #11080 from sbidoul/requested-with-constraints
Fix REQUESTED in presence of URL constraints
2022-05-06 18:15:35 +01:00
Pradyun Gedam bab5bfce50
Merge pull request #11073 from wimglenn/issue-9330
``pip config`` normalizes names, converting underscores into dashes
2022-05-04 08:39:33 +01:00
Tzu-ping Chung ae1c2e35e4
Grammar fix in changelog 2022-05-04 07:33:06 +08:00
Pradyun Gedam 8d51b83655
Merge pull request #11087 from mkniewallner/fix-version-changelog
Fix `22.1b1` version in changelog
2022-05-03 20:52:36 +01:00
Mathieu Kniewallner b481990c67
Fix `22.1b1` version in changelog 2022-05-03 21:32:48 +02:00
Pradyun Gedam 2d028e140e Revert "Filter available distributions using hash declarations from constraints files (#10962)"
This reverts commit 0c284520c6.
2022-05-03 17:50:21 +01:00
Pradyun Gedam e195f7bd3b
Merge pull request #11084 from pradyunsg/fix-release-changelog-generation
Run `towncrier build` instead of `towncrier`
2022-05-03 12:03:43 +01:00
Pradyun Gedam d0b83d1c93
Update NEWS for 21.1b1 2022-05-03 11:57:43 +01:00
Pradyun Gedam b881c2ae50
Run `towncrier build` instead of `towncrier`
Newer versions of towncrier exit eagerly, when `towncrier --version` is
run only printing the version and not actually doing any news file
generation.
2022-05-03 11:56:30 +01:00
Stéphane Bidoul 52fd6436a2
Fix propagation of user_supplied with URL constrains 2022-05-01 19:43:25 +02:00
Stéphane Bidoul 3c62d1cbce
Add failing test for REQUESTED and URL constraints 2022-05-01 19:39:17 +02:00
Pradyun Gedam f51d471eb4 Merge pull request #11077 from pradyunsg/release/22.1b1 2022-04-30 14:42:33 +01:00
Pradyun Gedam 6012b48e5d
Bump for development 2022-04-30 12:58:54 +01:00
Pradyun Gedam 9b203d5af3
Bump for release 2022-04-30 12:58:54 +01:00
Pradyun Gedam 78812509b9
Update AUTHORS.txt 2022-04-30 12:58:52 +01:00
Pradyun Gedam 64dd9e9abc
Merge pull request #11078 from pradyunsg/revert-protected-pip-rewrite 2022-04-30 12:55:40 +01:00
Pradyun Gedam 8068b30a09
Revert "Add additional context to `protected_pip.py` about how it works"
This reverts commit 84ee57d126.
2022-04-30 12:50:58 +01:00
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