Commit Graph

985 Commits

Author SHA1 Message Date
Pradyun Gedam 2f9f91882a
Simplify ignoring urllib3 warnings 2019-08-04 23:11:30 +05:30
Pradyun Gedam 12e63b9def
Move logic for SecureTransport injection to utils 2019-08-04 23:11:25 +05:30
Pradyun Gedam 476606425a
Add mypy's no-strict-optional configuration inline (#6750) 2019-08-04 21:59:42 +05:30
Pradyun Gedam 068cbeda3c
Refactor download.get_file_content
Merge pull request #6756 from chrahunt/maint/cleanup-download
2019-08-04 20:06:01 +05:30
Pradyun Gedam ce50b3467c
Merge pull request #6829 from pradyunsg/prepare-in-one-place
Unify calls to prepare_distribution_metadata to one callsite
2019-08-04 20:04:16 +05:30
Pradyun Gedam 7d29841ced
Fix handling of tokens (single part credentials) in URLs (#6818) 2019-08-04 19:56:41 +05:30
Prabakaran Kumaresshan b562531cc5 Add make_resolver() to RequirementCommand base class (#6826). 2019-08-03 23:47:50 -07:00
Pradyun Gedam f18ec526db
Unify calls to prepare_distribution_metadata to one callsite 2019-08-04 11:16:16 +05:30
Chris Jerdonek 56324a3f38 Fix "~" expansion in --find-links paths. 2019-08-03 11:55:38 -07:00
Chris Hunt 82ef9d67e2 Refactor download.get_file_content. 2019-08-03 10:51:16 -04:00
Prabakaran Kumaresshan 82dbcdae87 Add make_requirement_preparer() to RequirementCommand base class (#6810) 2019-08-01 20:29:44 -07:00
Pradyun Gedam 5796d9e949
Populate InstallRequirement.link before preparing it (#6803) 2019-08-01 18:29:49 +05:30
Pradyun Gedam dc7f2b91d5
Document that `--ignore-installed` is dangerous (#6794) 2019-07-30 13:32:04 +05:30
Pradyun Gedam f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Pradyun Gedam 2a5c23b3d5
Simplify the handling of "typing.cast" 2019-07-30 10:17:19 +05:30
Pradyun Gedam 80b82b5215
Address review comments 2019-07-30 10:10:13 +05:30
Pradyun Gedam 3b98423981
Work around mypy quirks 2019-07-29 23:21:24 +05:30
Pradyun Gedam b43c71cbc7
Simplify references to req.link 2019-07-29 20:30:55 +05:30
Pradyun Gedam ec725cb1a0
Populate InstallRequirement.link before preparing it 2019-07-29 20:29:34 +05:30
Prabakaran Kumaresshan f76014efac Add global options and no user config args to make_setuptools_shim_args (#6706) 2019-07-28 11:28:35 -07:00
Chris Jerdonek 4cd825873b Remove get_summaries(). 2019-07-27 12:29:07 -07:00
Chris Jerdonek 1f09e67f34 Only import a Command class when it is actually needed.
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Ivan Pozdeev 6c7d309a1c fix flake8 violation 2019-07-27 03:19:11 +03:00
Ivan Pozdeev d948f63fe2 Document that `--ignore-installed` is dangerous 2019-07-27 02:46:08 +03:00
Pradyun Gedam 2e51624bbb
Merge pull request #6764 from pradyunsg/style/isort
Change isort multi_line_output to 3
2019-07-26 23:52:24 +05:30
Chris Jerdonek 0a1571ba03 Fix a NoneType AttributeError when evaluating hashes. 2019-07-23 05:22:59 -04:00
Pradyun Gedam 537b0fca12
Change isort multi_line_output to 3 2019-07-22 10:15:27 +05:30
Brandt Bucher 8582f7e40f Reduce dependency on ctypes when discovering glibc version. (#6678) 2019-07-21 18:18:37 +05:30
Pradyun Gedam c275e9d1ab Drop a useless import in favor of explicitness 2019-07-21 00:36:14 +02:00
Xavier Fernandez 645809944c
Move config files locations inside a function (#6736) 2019-07-20 22:29:24 +02:00
Pradyun Gedam f669719c96
Rename InstallationCandidate.{location -> link} 2019-07-20 12:41:22 +05:30
Pradyun Gedam e0e343e035
Merge pull request #6663 from pradyunsg/better-InstallRequirement-repr
Add InstallRequirement.format_debug() as a debugging helper
2019-07-20 12:10:08 +05:30
Pradyun Gedam 21c4c4d5ee
Add a format_debug method to InstallRequirement 2019-07-20 10:29:14 +05:30
Pradyun Gedam bf1b8216f0
Remove period from the end of URL 2019-07-20 09:37:48 +05:30
Pradyun Gedam c80f94e192
Ignore line length for the link 2019-07-20 09:37:48 +05:30
Pradyun Gedam 6762a3d518
Add link to pip's Python 2 deprecation message 2019-07-20 09:37:48 +05:30
Chris Jerdonek 00665d11bb Add some encoding return values to pip-debug. 2019-07-19 21:52:54 -04:00
Xavier Fernandez 7b58720381
Add utils.virtualenv tests (#6738)
* Add utils.virtualenv tests

* deal with missing attr
2019-07-19 21:36:11 +02:00
Xavier Fernandez 4cf08e85c0 Isolate src_prefix computation in a function 2019-07-19 12:08:33 +02:00
Xavier Fernandez 8342a0e463 Remove obsolete comment
It should have been removed in 7288475118
2019-07-19 12:08:33 +02:00
Xavier Fernandez fc618bf3b1 Move virtualenv detection functions into their own module 2019-07-19 10:03:22 +02: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 a53e571b87
Drop support for EOL Python 3.4 (#6685) 2019-07-17 19:03:26 +05:30
Chris Jerdonek 2de38044bb Pass the specifier to CandidateEvaluator.create(). 2019-07-16 01:09:14 -07:00
Chris Jerdonek 90fa087c63
Merge pull request #6714 from cjerdonek/filter-unallowed-hashes-logging
Add debug logging to filter_unallowed_hashes()
2019-07-15 16:30:07 -07:00
Chris Jerdonek 190ea6a3d4 Remove strict_optional=False for models/link.py. 2019-07-14 23:08:55 -07:00
Chris Jerdonek 0baec60bdc Address a couple strict_optional lines in req/req_install.py. 2019-07-14 23:07:48 -07:00
Chris Jerdonek 2b58bcde31 Remove strict_optional=False for download.py. 2019-07-14 23:07:48 -07:00
Chris Jerdonek 252986e5c1 Remove strict_optional=False for utils/logging.py. 2019-07-14 23:07:48 -07:00