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

4141 commits

Author SHA1 Message Date
Christian Clauss 69a1e956da Ruff rules C4,C90,PERF 2023-08-28 14:51:13 +02:00
ddelange 510c6acf69
Filter out yanked links from available versions error message 2023-08-26 12:17:40 +02:00
Danny McClanahan bfa8a5532d
clean up duplicated code 2023-08-14 07:57:37 -04:00
Danny McClanahan 50a2fb4f9f
add mock server to test that each dist is downloaded exactly once 2023-08-14 07:57:37 -04:00
Danny McClanahan 2e365bdab1
move test_download_metadata mock pypi index utilities to conftest.py 2023-08-14 07:57:37 -04:00
Danny McClanahan 8704c7a5db
remove unnecessary fixture 2023-08-12 10:51:33 -04:00
Danny McClanahan e27af2c3c9
add notes on hash mismatch testing 2023-08-12 10:46:22 -04:00
Danny McClanahan 67ff36b838
move directory metadata test out of req install tests 2023-08-12 10:01:30 -04:00
Danny McClanahan e86da734c7
add test for hash mismatch 2023-08-12 10:01:30 -04:00
Danny McClanahan 8e305f262f
add test for the *existing* install --dry-run functionality 2023-08-12 10:01:30 -04:00
Shantanu d8cd93f4fa
Fix incorrect use of re function in tests (#12213) 2023-08-08 07:37:38 -05:00
Shantanu 901db9cf8d
Use a set for TargetPython.get_tags for performance (#12204) 2023-08-06 11:08:16 -05:00
Tzu-ping Chung d0641740d5
Merge pull request #11394 from ales-erjavec/temp-cleanup-ignore-errors 2023-07-27 15:11:40 +08:00
Tzu-ping Chung 95640b8967
Merge pull request #12127 from uranusjr/no-setuptools-in-tests 2023-07-26 09:52:20 +08:00
Paul Moore 39aa7ed50e Fix a direct creation of RequirementPreparer in the tests 2023-07-18 21:00:11 +01:00
Ales Erjavec 660dafb37f Ignore errors in temporary directory cleanup
pip should not exit with an error when it fails to cleanup temporary
files after it has already successfully installed packages.
2023-07-17 15:15:41 +02:00
Pradyun Gedam 324dd44495
Merge pull request #11417 from Freed-Wu/fix-zsh 2023-07-15 01:57:38 +01:00
Роман Донченко 393ccfbc31 test_freeze_with_setuptools: use mocks
This makes it possible to test both branches on any Python version.
2023-07-07 01:46:03 +03:00
Роман Донченко 5dc65eabb7 Don't exclude setuptools, distribute & wheel from freeze output on Python 3.12+
Due to the advent of build isolation, it is no longer necessary to install
setuptools and wheel in an environment just to install other packages.
Moreover, on Python 3.12 both ensurepip [1] and virtualenv [2] are to stop
installing setuptools & wheel by default. This means that when those packages
are present in a Python 3.12+ environment, it is reasonable to assume that
they are runtime dependencies of the user's project, and therefore should be
included in freeze output.

distribute is just obsolete.

[1] https://github.com/python/cpython/issues/95299
[2] https://github.com/pypa/virtualenv/pull/2558
2023-07-07 01:46:03 +03:00
Tzu-ping Chung 60d3c0447e Skip tests that do not make sense on Python 3.12+ 2023-07-04 17:04:09 +08:00
Tzu-ping Chung 4a014f953d Replace distutils with sysconfig on Python 3.12+ 2023-07-04 17:03:11 +08:00
Tzu-ping Chung 56f8b38e1e Fix type handling 2023-07-04 17:01:08 +08:00
Tzu-ping Chung 4abb8ac07b Fix Pytest --use-venv init 2023-07-04 15:53:01 +08:00
Stéphane Bidoul 45468f06d4 Pass revisions options explicitly to mercurial commands 2023-07-01 13:41:34 +02:00
Paul Moore a934f38ff7 Merge branch 'main' into core_metadata 2023-06-27 15:42:42 +01:00
Stéphane Bidoul fab8cf7479 Remove Unused "type: ignore" comments 2023-06-27 15:49:40 +02:00
Paul Moore a0976d8832 Fix lint issues 2023-06-27 14:47:09 +01:00
Stéphane Bidoul 108c055f72 Revert "xfail test_pip_wheel_ext_module_with_tmpdir_inside"
This reverts commit fab519dfd9.
2023-06-27 15:10:38 +02:00
Paul Moore 7e3f74f16d Merge branch 'main' into core_metadata 2023-06-08 14:22:42 +01:00
Paul Moore 2d168e6e13
Merge pull request #12068 from pfmoore/python_option_subcommand
Error if the --python option is specified after the subcommand name
2023-06-08 14:20:19 +01:00
Paul Moore 5168881b43 Implement PEP 714 - rename dist-info-metadata 2023-06-08 10:10:15 +01:00
Paul Moore 232cc9dd52 Parse hash data before passing to MetadataFile 2023-06-08 10:09:09 +01:00
Paul Moore 93b274eee7 Missed a change to one of the tests 2023-06-07 21:44:48 +01:00
Paul Moore cfb4923d5d Fix bad test data in test_parse_links_json 2023-06-07 21:21:32 +01:00
Paul Moore 6c3db098ff Fix parsing of JSON index dist-info-metadata values 2023-06-07 20:58:40 +01:00
Paul Moore bdef9159bd Use ruff for import sorting as well 2023-06-05 15:06:11 +01:00
Paul Moore 7c3418b2d0
Add explicit ID to noqa comment
Co-authored-by: q0w <43147888+q0w@users.noreply.github.com>
2023-06-05 14:50:10 +01:00
Paul Moore 9824a426d4 Fix new lint errors 2023-06-05 14:32:44 +01:00
Paul Moore de8f0b5ed1 Lint 2023-06-05 12:11:41 +01:00
Paul Moore 16f145d306 Add a test for the error 2023-06-05 12:03:22 +01:00
Paul Moore 6aa4d48b23 Fix the test failure 2023-06-05 11:53:43 +01:00
Stéphane Bidoul 1ca4529dc0 Ignore invalid origin.json in wheel cache 2023-05-29 12:36:11 +02:00
Paul Moore 2966a3e395
Merge pull request #12044 from chriskuehl/fix-pep658-name-normalization
Canonicalize package names before comparison for PEP658 metadata
2023-05-21 11:29:43 +01:00
Chris Kuehl 5f0dd4c60e Add regression test for canonicalized package names for PEP658 metadata 2023-05-20 22:12:56 -05:00
Chris Kuehl 743e6a31af Add test for metadata mismatch (passes on main already) 2023-05-20 20:01:16 -05:00
Felipe Peter e8b4bae05e Remove superfluous "together" 2023-05-21 00:29:06 +08:00
Felipe Peter 00ddca8bae Merge remote-tracking branch 'upstream/main' into fix-docs-for-pip-list-outdated-with-freeze-format 2023-05-21 00:25:32 +08:00
Paul Moore 7ba5a625bc Revert "Merge pull request #11487 from pelson/feature/base-prefix-config"
This reverts commit 56e5fa3c0f, reversing
changes made to 2c09e9c760.
2023-04-21 17:05:49 +01:00
Stéphane Bidoul 4beca6b4c9 Improve test 2023-04-14 08:03:49 +02:00
Stéphane Bidoul bd746e3136 Introduce ireq.cached_wheel_source_link 2023-04-14 08:03:49 +02:00