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

717 commits

Author SHA1 Message Date
Chris Jerdonek
9eab3526a8 Improve error message formatting when a subprocess command errors out. 2019-06-27 03:05:06 -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
johnthagen
3407ccdeb6 Move Subversion arg unit tests from functional folder to unit test folder 2019-06-15 08:04:03 -04:00
Laszlo Kiss-Kollar
a240a98701 Add --path option to pip list
This makes `pip list` consistent with `pip freeze` which also supports
listing packages in arbitrary file paths.
2019-06-12 16:10:06 +02:00
Chris Jerdonek
210dab7470 Add make_test_finder() helper function. 2019-06-11 19:18:56 -07:00
Chris Jerdonek
8dbf88dff7 Update pip-download to respect --python-version. 2019-06-06 13:20:29 -07:00
Chris Jerdonek
ce46f8524e
Merge pull request #6545 from cjerdonek/vcs-imports
Remove from pip/_internal/__init__.py the vcs module imports
2019-06-03 02:10:43 -07:00
Chris Jerdonek
5c89643d3d Remove importing from vcs in pip/_internal/__init__.py.
This also renames the current vcs/__init__.py to vcs/versioncontrol.py.
2019-06-03 01:18:36 -07:00
László Kiss Kollár
929fefdbae Add --path to pip freeze to support --target installations (#6450)
* Add support for --path in pip freeze
2019-05-28 02:28:18 -07:00
Pradyun Gedam
24e9e4aa37
Display install instructions for pre-releases (#5921) 2019-05-27 16:38:17 -04:00
Chris Jerdonek
6178f9681b
Merge pull request #6540 from cjerdonek/issue-6121-incompatible-wheel-message
Improve the debug log message when installing an incompatible wheel
2019-05-26 14:10:09 -07:00
Chris Jerdonek
a9a9cfd98c Improve the debug log message when installing an incompatible wheel. 2019-05-25 23:59:32 -07:00
Chris Jerdonek
f44344f122
Merge pull request #6515 from johnthagen/svn-interactive-final
Properly support interactive Subversion client
2019-05-25 14:47:51 -07:00
Chris Jerdonek
98a77a9317
Merge pull request #6538 from cjerdonek/issue-6513-freeze-requirement-error
Include more details in a pip freeze warning message
2019-05-25 11:17:23 -07:00
johnthagen
920b95fe49 Add test with non-trivial RevOptions input 2019-05-25 13:36:03 -04:00
johnthagen
ae03f49bd5 Fold obtain and export tests into TestSubversionArgs TestCase 2019-05-25 13:31:03 -04:00
Pradyun Gedam
287aa4b7bf
Merge pull request #6008 from jaraco/bugfix/4106-distutils-option-error-target-prefix-conflict
Prevent distutils option error target prefix conflict
2019-05-25 13:29:49 -04:00
johnthagen
c90e632f35 Simplify test method names 2019-05-25 13:23:43 -04:00
johnthagen
8de73a130e Use bare strings in test assertion 2019-05-25 13:22:53 -04:00
Chris Jerdonek
7c42f0ed8e Include more details in a pip freeze warning message. 2019-05-25 00:31:44 -07:00
Chris Jerdonek
f82ea77217 Simplify the _check_dist_requires_python() call site. 2019-05-24 21:33:12 -07:00
johnthagen
a4aff3b7ff Use a TestCase to remove some duplication across similar tests 2019-05-24 07:32:43 -04:00
johnthagen
128730f3a1 Add tests for fetch_new, switch, and update 2019-05-23 07:50:46 -04:00
johnthagen
b9c8394098 Fix PEP8 error 2019-05-23 07:37:37 -04:00
johnthagen
6c5da6bcfa Remove unnecessary pytest.mark.network from tests that use mocked svn invocation 2019-05-23 07:27:10 -04:00
johnthagen
1361456113 Explain why use_interactive is set to False in unit tests 2019-05-21 06:57:18 -04:00
johnthagen
3cab748c6e Set use_interactive=False to avoid having to mock 2019-05-20 12:45:19 -04:00
johnthagen
9c85436573 Fix tests 2019-05-20 08:28:24 -04:00
Chris Jerdonek
1875a8e3f6
Merge pull request #6511 from cjerdonek/package-finder-create-function
Simplify PackageFinder's constructor by accepting a CandidateEvaluator
2019-05-19 09:39:32 -07:00
Chris Jerdonek
cad71a7117 Add PackageFinder.create(), and simplify PackageFinder(). 2019-05-17 11:55:21 -07:00
David Bordeynik
ce0b3c4d7c fix-5963: assert error message 2019-05-12 22:28:45 +03:00
David Bordeynik
8f330a5959 fix-5963: fail elegantly on missing name or section in config set / unset 2019-05-09 20:33:30 +03:00
Chris Jerdonek
0ea639d644 Remove url as an instance attribute of the VersionControl class. 2019-05-06 22:59:18 -04:00
Chris Jerdonek
7e109086b5 Remove unneeded expect_error=True in some vcs tests. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
e0e07bf046 Remove unneeded expect_stderr=True in some vcs tests. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
dc1217713e Fix freeze log debug message. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
24688ee8e8 Revert "Require --no-use-pep517 if using editable mode with pyproject.toml."
This reverts commit 71f506e71e.
2019-04-26 20:19:05 -07:00
Chris Jerdonek
78744e8071
Merge pull request #6370 from cjerdonek/editable-and-pep-517-optional
Fix editable-mode logic when pyproject.toml present
2019-04-06 15:31:53 -07:00
Chris Jerdonek
68bc0e0c53
Merge pull request #6339 from cjerdonek/vcs-subprocess-logging
Fix #1219: Prevent subprocess stdout and stderr from cluttering pip's stdout.
2019-04-03 14:36:44 -07:00
Chris Jerdonek
71f506e71e Require --no-use-pep517 if using editable mode with pyproject.toml. 2019-03-31 05:40:08 -07:00
Chris Jerdonek
ac18393df7 Make expect_stderr mean the weaker allow_stderr_warning. 2019-03-26 20:34:23 -07:00
Chris Jerdonek
e0505bb152 Prevent subprocess stdout and stderr from cluttering pip's stdout. 2019-03-25 00:21:20 -07:00
Chris Jerdonek
7a4e8b34da Make get_current_branch() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
977d3f6f8c Make is_commit_id_equal() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
79b64739a9 Make get_revision_sha() a class method. 2019-03-22 00:04:50 -07:00
Chris Jerdonek
1fdd7e26c5
Merge pull request #6139 from jelmer/bazaar-export-perf
Bazaar: Export directly from the remote branch.
2019-03-01 01:36:02 -08:00
Paul Moore
8b7c23d05c Make flake8 shut up 2019-02-27 18:04:50 +00:00
Paul Moore
1528d50902 Stupid typo 2019-02-27 17:50:42 +00:00
Paul Moore
9921442d1f Reject --build-options for PEP 517 builds 2019-02-27 17:40:52 +00:00
Chris Jerdonek
8d78ff0fce Prefix warning and error log messages. 2019-02-27 03:22:26 -08:00