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

4113 commits

Author SHA1 Message Date
Paul Moore a0976d8832 Fix lint issues 2023-06-27 14:47:09 +01: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
Stéphane Bidoul a6ef6485be Rename original_link_is_in_wheel_cache to is_wheel_from_cache
This more accurately reflects that it is not necessarily
related to original_link, original_link being the direct URL
link,
and the wheel cache can also be populated from sdists
URL discovered by the finder.
2023-04-14 08:03:48 +02:00
Stéphane Bidoul 40cd79d6e5 Check hashes of cached built wheels agains origin source archive 2023-04-14 08:03:48 +02:00
Stéphane Bidoul 8e2205d849 Add function to check hashes against known digests 2023-04-14 08:03:48 +02:00
Stéphane Bidoul f7787f8798
Merge pull request #11949 from sbidoul/hash2hashes-sbi
Generate download_info.info.hashes in install report for direct URL archives
2023-04-14 08:02:57 +02:00
Stéphane Bidoul 5bfccfd62d Report requested_extras for editable requirements 2023-04-11 22:24:12 +02:00
Stéphane Bidoul 5119d4651e Improve conversion of direct_url.hash to hashes 2023-04-11 14:49:30 +02:00
Stéphane Bidoul cdd9c95eac Add test for download_info hashes 2023-04-11 14:49:30 +02:00
Stéphane Bidoul 2f271838e7 Report requested_extras for direct URLs 2023-04-11 12:54:39 +02:00
pre-commit-ci[bot] 4221c23a2b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-04-10 16:45:34 +02:00
Ryan Shepherd 75db61099d Mock _permitted instead of is_local 2023-04-10 16:45:34 +02:00
Stéphane Bidoul 5d4a974b60
Merge pull request #11938 from sbidoul/fix-direct-url-hash-trusted-sbi
Don't trust link hash in direct URL dependencies
2023-04-10 16:43:51 +02:00
Paul Moore 62e932ad28
Merge pull request #11942 from Darsstar/correct-keyring-provider-default
Correct keyring provider default
2023-04-10 12:43:20 +01:00
Stéphane Bidoul 453a5a7e07 Add test for combination of invalid link hash and good --hash 2023-04-10 13:21:00 +02:00
Stéphane Bidoul 0ffc54dca3 Add tests about link hashes validation 2023-04-10 13:21:00 +02:00
Stéphane Bidoul 42b19abb69
Merge pull request #11936 from sbidoul/fix-link-hash-parsing
Various fixes to the link hash parser
2023-04-10 11:23:24 +02:00
Dos Moonen ebcc368a51 Alter test_prompt_for_keyring_if_needed to make sure we test the default is auto. 2023-04-10 11:05:34 +02:00
q0w 110a26f0ed Merge branch 'main' into per-req-config-settings 2023-04-09 18:12:41 +03:00
Stéphane Bidoul 7cb863e2fc
Stop propagating config_settings to dependencies (#11941) 2023-04-09 09:41:04 -05:00
q0w 0fbca36516 Remove merge_config_settings 2023-04-09 14:24:37 +03:00
Stéphane Bidoul 540f8fbb6d Keep empty hash, as before 2023-04-07 23:49:38 +02:00
Stéphane Bidoul 48152bb2e1 pep 658 hashes are not URL fragment hashes 2023-04-07 23:44:22 +02:00
Stéphane Bidoul 6e5d467822 Various fixes to the link hash parser 2023-04-07 23:07:01 +02:00
q0w ae23fc2154 fix typing 2023-03-31 11:48:11 +03:00
q0w 6ea91c84c2 Add more test cases 2023-03-31 11:46:19 +03:00
Stéphane Bidoul 849dcbd6a8 Remove more traces of setup.py install 2023-03-31 09:47:09 +02:00
Stéphane Bidoul e5deb4dd8d Adapt test to the removal of setup.py install code path 2023-03-31 09:47:09 +02:00
Stéphane Bidoul 0060bfa7e3 Rework test_show_with_files_from_legacy
It relied on a function that does not exist anymore.
2023-03-31 09:47:09 +02:00