Commit Graph

730 Commits

Author SHA1 Message Date
Christopher Hunt 0d286012f7 Remove copy from tests.lib.path.Path. (#6746) 2019-07-21 01:12:07 +02:00
Chris Hunt 9d37e3ced2 Remove rmtree from tests.lib.path.Path. 2019-07-20 22:37:31 +02:00
Xavier Fernandez 645809944c
Move config files locations inside a function (#6736) 2019-07-20 22:29:24 +02:00
Chris Jerdonek 00665d11bb Add some encoding return values to pip-debug. 2019-07-19 21:52:54 -04:00
Xavier Fernandez 34092d3234 Move pip marker related constant & function in their own module
It didn't seem related with the rest of the locations module
2019-07-18 22:53:05 +02:00
Xavier Fernandez ab10b8c328 debug: add warnings about its provisional status 2019-07-18 14:39:12 +02:00
Pradyun Gedam bc88399d07
Change Path.makedirs() -> Path.mkdir(parents=True) 2019-07-12 13:30:18 +05:30
Savio Jomton 1b331851f1 Improve error message for invalid editable requirement. (#6679) 2019-07-11 20:07:54 +05:30
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 Jerdonek 28fbdfd551 Unskip test_install_package_that_emits_unicode() on Windows. 2019-06-28 00:54:56 -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
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