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

70 commits

Author SHA1 Message Date
Chris Jerdonek 970dfdea2e Use variable names instead of indices in is_secure_origin(). 2019-08-22 00:03:25 -07:00
Chris Jerdonek cbd62171cd Remove the unneeded logger argument from is_secure_origin(). 2019-08-22 00:01:27 -07:00
Chris Jerdonek a6cdb490b0 Move trusted_hosts logic to PipSession. 2019-08-21 03:03:17 -07:00
Christopher Hunt 5e97de4773 Ignore errors copying socket files for source installs (in Python 3). (#6844) 2019-08-21 02:19:02 -07:00
Stéphane Bidoul (ACSONE) 2e1dfbef76 consolidate vcs link detection 2019-08-16 08:14:33 +02:00
Frost Ming 3f9136f885 Make trusted host w/o port work for HTTPS 2019-08-14 22:13:18 -07:00
Christopher Hunt 76e1f1b5e6 Simplify file cache. (#6845) 2019-08-08 17:39:12 -07:00
Paul Moore e4c32b9917
Merge pull request #6770 from omry/master
exclude '.tox', '.nox' from being copied during 'pip install .'
2019-08-05 23:29:02 +01:00
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 7d29841ced
Fix handling of tokens (single part credentials) in URLs (#6818) 2019-08-04 19:56:41 +05:30
Chris Hunt 82ef9d67e2 Refactor download.get_file_content. 2019-08-03 10:51:16 -04:00
Omry Yadan 8e87980d17 responding to comments 2019-08-02 23:14:41 -07:00
Omry Yadan 77c1504137 unit test 2019-08-02 18:17:53 -07:00
Omry Yadan d4171f28d1 minor updates 2019-07-30 17:52:12 -07:00
Omry Yadan 67ce4427dd fixed lint, excludes only .tox and .nox 2019-07-23 11:29:25 -07:00
Omry Yadan e8330528bf lint take 2 (not sure how to test locally) 2019-07-22 20:22:13 -07:00
Omry Yadan f285407d7a lint 2019-07-22 19:53:43 -07:00
Omry Yadan 3626530b4a exclude '.tox', '.nox', '.git', '.hg', '.bzr', '.svn' from pip install . to speed installation up 2019-07-22 19:17:12 -07:00
Pradyun Gedam 537b0fca12
Change isort multi_line_output to 3 2019-07-22 10:15:27 +05:30
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
Chris Jerdonek 2b58bcde31 Remove strict_optional=False for download.py. 2019-07-14 23:07:48 -07:00
Chris Jerdonek 761b2064f4 Remove models/search_scope.py's dependency on download.py. 2019-06-21 14:41:45 -07:00
Chris Jerdonek d72758394d Fully support --trusted-host inside requirements files. 2019-06-13 01:21:05 -07:00
gzpan123 a4c735b14a FIX #6413 pip install <url> allow directory traversal 2019-06-11 00:22:29 -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
Chris Jerdonek 2d450936c6 Move path_to_url() from download.py to misc.py. 2019-05-26 22:51:00 -07:00
Thea Flowers 03ad0421ee Check for explicit `PIP_IS_CI` environment variable to report automated installs to Warehouse. 2019-05-24 13:01:04 -07:00
Chris Jerdonek b4e1e48372
Merge pull request #6492 from cjerdonek/vcs-registry
Store VersionControl objects instead of classes in the VCS registry
2019-05-12 12:03:16 -04:00
Donald Stufft 3596ad5cd8
Merge pull request #5952 from zooba/issue-5948
Fixes #5948 Adds keyring support
2019-05-10 08:13:55 -04:00
Chris Jerdonek 3cfa8a76c7 Store instances in the VcsSupport registry instead of classes. 2019-05-09 22:35:26 -04:00
Steve Dower 49b9298a44 Improve import error handling
Fix --no-index usage
Fix missing type annotation type
2019-05-07 17:01:41 -04:00
Steve Dower c63ee61027 Issue #5948: Enable keyring support
This requires keyring and any backends to be installed separately.
Once discovered, it will be used to retrieve credentials by index URL
and netloc before prompting. If the user is prompted and the
credentials work, they will (optionally) be saved to keyring against
the netloc of the requested URL.
2019-05-07 09:55:02 -04:00
Chris Jerdonek 0ea639d644 Remove url as an instance attribute of the VersionControl class. 2019-05-06 22:59:18 -04:00
Caleb Martinez ac9010e87c Allow adding a custom string to pip's User-Agent via an environment variable (#5550) 2019-03-31 02:37:02 -07:00
Chris Jerdonek 821247dc36
Merge pull request #6273 from cjerdonek/issue-5499-detect-ci-for-user-agent
Fix #5499: Include in pip's User-Agent whether it looks like pip is in CI
2019-02-24 14:24:55 -08:00
Xavier Fernandez c286c55d51 Tweak tests & url_to_path after review 2019-02-24 21:40:25 +01:00
Benoit Pierre 61baf5fe80 improve handling of file URIs 2019-02-24 21:40:25 +01:00
Pradyun Gedam d4217f0cc3
Merge pull request #6129 from asottile/dead
delete some dead code
2019-02-24 22:08:16 +05:30
Maxim Kurnikov f77b8ca051 remove #noqa: F401 2019-02-22 14:17:07 +03:00
Anthony Sottile 1ea2140f32 Remove _copy_dist_from_dir
introduced in 4c405a0ad3 but not referenced
2019-02-20 11:51:23 -08:00
Chris Jerdonek a229f114e6 Address review comments. 2019-02-18 19:29:07 -08:00
Chris Jerdonek 14a6aaabff Include in pip's User-Agent whether it looks like pip is in CI. 2019-02-17 07:16:01 -08:00
Chris Jerdonek d2051f14bb Change the default of call_subprocess()'s show_stdout from True to False. 2019-02-12 05:11:51 -08:00
Pradyun Gedam 89ef777c18
Cleanup for issues fixed with mypy upgrade 2018-12-18 15:10:40 +05:30
Maxim Kurnikov 7696e7e530 Add type annotations for pip._internal.download, pip._internal.wheel and pip._internal.pep425tags (#6067)
References https://github.com/pypa/pip/issues/4748, https://github.com/pypa/pip/pull/6038.
2018-12-16 14:46:39 +05:30
Pradyun Gedam 35701ea3cd
Merge pull request #5930 from cytolentino/basecommand-typing
Add mypy annotations to base_command.py
2018-10-31 01:57:46 +05:30
Chris Jerdonek f54b68fea7 DRY up MultiDomainBasicAuth some more. 2018-10-29 22:13:55 -07:00
Chris Jerdonek a434431431 Use split_auth_from_netloc() inside MultiDomainBasicAuth(). 2018-10-29 22:13:51 -07:00
cytolentino 12a2334429 Add mypy annotations to base_command.py 2018-10-27 13:28:06 +01:00
Kevin R Patterson e3c869fa60 rename to warn_on_401, remove extra return 2018-08-17 11:07:45 -05:00