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

7331 commits

Author SHA1 Message Date
Chris Jerdonek
a9bf0415c5
Merge pull request #6687 from cjerdonek/add-candidate-preferences
Add PackageFinder.make_candidate_evaluator()
2019-07-10 19:58:49 -07:00
Chris Jerdonek
ddfa401dae
Merge pull request #6683 from cjerdonek/make-subprocess-error-path-display
Support non-ascii cwds in make_subprocess_output_error()
2019-07-08 13:19:43 -07:00
Chris Jerdonek
ca017ca8a6
Merge pull request #5936 from bertilhatt/subprocess_invocation_out_setuptools_args
Fix #1890: set sys.argv[0] to the setup.py path in the setuptools shim
2019-07-07 19:34:20 -07:00
Bertil Hatt
b47da272aa Set sys.argv[0] to the underlying setup.py in the setuptools shim. 2019-07-07 18:40:31 -07:00
Chris Jerdonek
4a9e306678 Add get_applicable_candidates(), and test. 2019-07-07 14:35:56 -07:00
Chris Jerdonek
b2389bf8c7 Add CandidatePreferences and PackageFinder.make_candidate_evaluator(). 2019-07-07 14:35:50 -07:00
Chris Jerdonek
9311049de2
Merge pull request #6684 from cjerdonek/simplify-found-candidates
Simplify FoundCandidates
2019-07-06 02:04:39 -07:00
Chris Jerdonek
9d3d369834 Simplify FoundCandidates. 2019-07-06 01:08:51 -07:00
Chris Jerdonek
cf6f882392 Add test_make_found_candidates(). 2019-07-06 00:52:15 -07:00
Chris Jerdonek
77ad4764ef Support non-ascii cwds in make_subprocess_output_error(). 2019-07-06 00:26:36 -07:00
Pradyun Gedam
a8c66dc5d7
Merge pull request #6007 from smartsammler/fix-iss4733
Fix #4733 by deleting the failing example
2019-07-06 09:18:58 +05:30
Pradyun Gedam
d4f0f4e3d4
Merge pull request #5671 from segevfiner/ascii-progress-bar-fix
Make the ascii progress bar really be ascii, not Unicode
2019-07-06 09:13:43 +05:30
A_Rog
8e26b833d0 Parameterize test_looks_like_hash() (#6650) 2019-07-05 22:31:28 +05:30
Chris Jerdonek
005f700b94
Merge pull request #6666 from cjerdonek/add-link-evaluator
Add LinkEvaluator class
2019-07-04 17:42:50 -07:00
Chris Jerdonek
979c8405d2 Add LinkEvaluator class. 2019-07-04 16:54:29 -07:00
Chris Jerdonek
0d5a98390e
Merge pull request #6671 from cjerdonek/make-subprocess-error-non-ascii-cmd
Handle non-ascii commands in Python 2 in make_subprocess_output_error()
2019-07-04 15:43:25 -07:00
Chris Jerdonek
a6020e8553 Handle non-ascii commands in Python 2 in make_subprocess_output_error(). 2019-07-04 00:54:15 -07:00
Pradyun Gedam
d641b54436
Merge pull request #6670 from chrahunt/pathlib-refactor-2
Rename compatible functions in tests.lib.path.Path.
2019-07-03 14:38:03 +05:30
Chris Hunt
39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Chris Jerdonek
a8510bc5e6
Merge pull request #6638 from cjerdonek/debug-command
Add a "pip debug" command
2019-07-02 02:00:02 -07:00
Chris Hunt
ec73d72fd3 Remove unused incompatible functions from tests.lib.Path. 2019-07-01 10:23:03 +02:00
Chris Jerdonek
ba2c382511
Merge pull request #6660 from cjerdonek/rename-egg-info-matches
Rename _egg_info_matches()
2019-06-30 15:00:49 -07:00
Chris Jerdonek
2f1be4e6ec Rename index.py's _egg_info_matches(egg_info, canonical_name). 2019-06-30 12:51:09 -07:00
Pradyun Gedam
edbd0822dc Rename InstallRequirement.setup_py -> setup_py_path 2019-06-30 20:23:12 +02:00
Pradyun Gedam
0015089ed9 Suffix "_path" to InstallRequirement.pyproject_toml 2019-06-30 20:23:12 +02:00
Chris Jerdonek
449d268b5a
Merge pull request #6661 from cjerdonek/add-selection-prefs-class
Add a SelectionPreferences class
2019-06-30 00:52:15 -07:00
Pradyun Gedam
974f08dfc2
Merge pull request #6659 from chrahunt/bugfix/assert-paths-equal
Add assert in assert_paths_equal.
2019-06-30 10:48:58 +05:30
Chris Hunt
66e68273c8 Add assert in assert_paths_equal. 2019-06-29 21:07:50 -04:00
Chris Jerdonek
ae79b5bf5c Add a SelectionPreferences class. 2019-06-28 11:14:55 -07:00
Chris Jerdonek
32dcaa60fd
Merge pull request #6657 from cjerdonek/issue-782-unicode-test-windows
Fix #782: Unskip test_install_package_that_emits_unicode() on Windows
2019-06-28 01:57:56 -07:00
Chris Jerdonek
15d6182d4c
Merge pull request #6656 from cjerdonek/issue-6654-filter-yanked-files
Fix #6654: filter yanked files before calling get_best_candidate()
2019-06-28 01:31:33 -07:00
Chris Jerdonek
28fbdfd551 Unskip test_install_package_that_emits_unicode() on Windows. 2019-06-28 00:54:56 -07:00
Chris Jerdonek
d3b3f16871 Support yanked reasons with non-ascii characters. 2019-06-27 22:53:58 -07:00
Chris Jerdonek
8af3f21a57 Filter out yanked links earlier when allow_yanked=False. 2019-06-27 19:50:25 -07:00
Chris Jerdonek
13d3de227d
Merge pull request #6655 from cjerdonek/issue-6651-subprocess-output-formatting
Fix #6651: Improve error message formatting when a command errors out
2019-06-27 09:53:34 -07:00
Chris Jerdonek
d67acca760 Add "pip debug" command. 2019-06-27 03:18:42 -07:00
Chris Jerdonek
9eab3526a8 Improve error message formatting when a subprocess command errors out. 2019-06-27 03:05:06 -07:00
Chris Jerdonek
fc46a18563
Merge pull request #6647 from cjerdonek/issue-6633-yanked-releases
Add support for "yanked" files (PEP 592)
2019-06-27 00:52:11 -07:00
Ian Wienand
0dbab23df9 Add SHA256 hash of .whl as info output (#5908)
* Add SHA256 hash of .whl as info output

Currently I'm trying to debug some issues with what appear to be
corrupt wheels.  It would be very useful to see what pip thought the
state of things was as it wrote the wheel output; if a final corrupt
distributed file is then different to what pip has saved in its build
logs, you know the problem is somewhere after pip but before
distribution.

Currently we get a log of the initial creation, then the stamp when it
gets moved in the final output location, e.g.:

 creating '/tmp/pip-wheel-71CpBe/foo-1.2.3-py2.py3-none-any.whl
 ...
 Stored in directory: /opt/wheel/workspace

A lot happens in between this, so my suggestion is we add the final
output file and it's hash before the "Stored in directory:", e.g. you
now see:

 Building wheels for collected packages: simple
   Running setup.py bdist_wheel for simple: started
   Running setup.py bdist_wheel for simple: finished with status 'done'
   Finished: simple-3.0-py3-none-any.whl sha256=39005a57a6327972575072af82e11d0817439fe6a069381f6f2a123a8c0bf1cf
   Stored in directory: /tmp/pytest-of-iwienand/pytest-18/test_pip_wheel_success0/workspace/scratch
 Successfully built simple

Despite the hash being fairly important for things like
--require-hashes, AFAICS the final hash is not put in the logs at all
currently, so I think this is generically helpful.

* Reword wheel hash details output

This rewords the output to be more like the form of the preceding
messages.  Additionally the size is added, since we have calculated it
anyway.  The output will now look like:

 Collecting simple==3.0
 Building wheels for collected packages: simple
   Building wheel for simple (setup.py): started
   Building wheel for simple (setup.py): finished with status 'done'
   Created wheel for simple: filename=simple-3.0-py3-none-any.whl size=1138 sha256=2a980a802c9d38a24d29aded2dc2df2b080e58370902e5fdf950090ff67aec10
   Stored in directory: /tmp/pytest-of-iwienand/pytest-0/test_pip_wheel_success0/workspace/scratch
 Successfully built simple
2019-06-26 02:44:43 -07:00
Chris Jerdonek
a447be4785 Update PackageFinder to support "yanked" files (PEP 592). 2019-06-26 02:32:40 -07:00
Chris Jerdonek
8666bb1a5d Start parsing the "data-yanked" attribute. 2019-06-25 03:34:42 -07:00
Chris Jerdonek
fdde0b483e Add Link.yanked_reason. 2019-06-25 03:34:38 -07:00
Tim Gates
abfe7c004d Bugfix/typo comparision (#6644)
* Fix type `comparision` with `comparison`.
2019-06-25 07:47:06 +02:00
Xavier Fernandez
1638b06627 models.link: use named attribute 2019-06-24 14:24:23 +02:00
Chris Jerdonek
bfa976f3f1
Merge pull request #6635 from cjerdonek/link-parsed-attribute
Parse the url when creating a Link object
2019-06-23 22:39:14 -07:00
Chris Jerdonek
a36064954f Add TargetPython.format_given(). 2019-06-23 09:28:58 -07:00
Chris Jerdonek
db213c04d7 Add add_target_python_options() and make_target_python(). 2019-06-23 09:28:54 -07:00
Chris Jerdonek
9117cccc7e Refactor out a get_pip_version() function into misc.py. 2019-06-23 09:28:50 -07:00
Chris Jerdonek
36430e2a43
Merge pull request #6639 from sbidoul/imp_looks_like_hash-sbi
Be stricter in identiying git commit hashes
2019-06-23 08:49:11 -07:00
Stéphane Bidoul (ACSONE)
28fa08688c Be stricter in identiying git commit hashes 2019-06-23 12:00:57 +02:00