Commit Graph

2423 Commits

Author SHA1 Message Date
Pradyun Gedam 03392873ec
Refactor metadata directory handling (#7087) 2019-09-28 17:34:43 +05:30
Pradyun Gedam ad33ecef74
Move PipSession to network.session (#7089) 2019-09-28 11:55:15 +05:30
Albert Tugushev e41c5f868c Address review comments
Fix typos.

Co-Authored-By: Christopher Hunt <chrahunt@gmail.com>
2019-09-28 01:07:48 +03:00
Albert Tugushev 1a3b84060d Add functional tests for 'yanked' files 2019-09-28 01:07:48 +03:00
Chris Hunt 3328e811d1 Normalize style 2019-09-27 01:03:47 -04:00
Chris Hunt cf7ebdbbc2 Move PipSession to network.session 2019-09-27 01:02:52 -04:00
Pradyun Gedam b01f301c75
Update get_dist to directly use metadata_directory 2019-09-27 10:32:25 +05:30
Chris Hunt 6ce7217a53 Move PipSession helper functions to network.session
This new module is a catch-all for PipSession helpers.
2019-09-27 00:55:06 -04:00
Christopher Hunt ea923d96a9
Merge pull request #6313 from wilsonfv/master
Fix #3907 tar file placed outside of target location
2019-09-26 19:30:53 -04:00
Christopher Hunt 3b7d2eee5e
Merge pull request #7061 from chrahunt/refactor/move-code-out-of-init
Move code out of pip._internal.__init__
2019-09-26 13:36:35 -04:00
Pradyun Gedam b926290a50
Merge pull request #7078 from pradyunsg/revamp-linting-processes
Revamp linting processes
2019-09-25 20:57:36 +05:30
Pradyun Gedam b447f438df
Move path_to_url() to utils/urls.py (#7075) 2019-09-25 10:00:33 +05:30
Chris Hunt 8c94b70354 Address review comments 2019-09-24 22:43:06 -04:00
Wilson Mo 08a0eeb90c Fix #3907 tar file placed outside of target location 2019-09-24 22:25:18 -04:00
Chris Hunt 3e98ee8464 Use from ... import ... style 2019-09-24 21:36:16 -04:00
Christopher Hunt 9611394a5b
Merge pull request #7062 from chrahunt/refactor/network-modules
Move SafeFileCache to network.cache
2019-09-24 21:03:18 -04:00
Pradyun Gedam ea68afab93
Enable isort in pre-commit 2019-09-24 18:03:22 +05:30
Pradyun Gedam 6f8c29aa77
Enable end-of-file-fixer 2019-09-24 18:03:22 +05:30
Pradyun Gedam 40a0f189b9
Enable check-builtin-literals 2019-09-24 18:03:22 +05:30
Christopher Hunt 928f86a162
Merge pull request #7048 from chrahunt/refactor/always-create-tempdirectory
Always create TempDirectory.path at __init__
2019-09-24 08:27:44 -04:00
Chris Jerdonek 0435316fde Move path_to_url() to utils/urls.py. 2019-09-24 02:01:52 -07:00
Chris Hunt e6bde63620 Assert TempDirectory.path has not been cleaned up on access 2019-09-23 20:09:04 -04:00
Chris Hunt 7ea1fcdb13 Remove outer class for temp_dir tests 2019-09-23 18:49:12 -04:00
Chris Hunt 236fb82a1f Move temp_dir tests to separate file 2019-09-23 18:47:28 -04:00
Chris Jerdonek 99ec6a5e31
Merge pull request #7057 from cjerdonek/remove-iter-links
Remove HTMLPage.iter_links()
2019-09-23 05:55:54 -07:00
Chris Jerdonek 6c9e0c2536 Remove HTMLPage.iter_links(). 2019-09-23 05:12:33 -07:00
Chris Jerdonek 4ad5a58376 Change HTMLPage.__init__ to accept an encoding. 2019-09-23 05:12:29 -07:00
Chris Jerdonek d30bc69073 Move make_fake_html_page() elsewhere in the module. 2019-09-23 05:08:27 -07:00
Chris Hunt 85dcaa74bb Unconditionally create TempDirectory.path 2019-09-22 00:02:46 -04:00
Chris Jerdonek dd62731107
Merge pull request #7060 from cjerdonek/get-page-links
Improve logging in LinkCollector.collect_links()
2019-09-21 16:36:46 -07:00
Chris Jerdonek 7c00316268 Use a single log message. 2019-09-21 15:49:43 -07:00
Chris Hunt 99c29af3ce Move SafeFileCache to network.cache. 2019-09-21 16:24:31 -04:00
Chris Hunt b0eed267a6 Remove autocomplete import from pip._internal.__init__ 2019-09-21 15:27:47 -04:00
Chris Hunt 09fd200c59 Move `pip._internal:main` to its own module
Moving content out of `__init__` is preferred in general because it
avoids conflicts with module names and unnecessary imports.
2019-09-21 15:27:39 -04:00
Chris Jerdonek a2b2a24513 Remove duplicate links before logging. 2019-09-21 10:52:56 -07:00
Chris Jerdonek 7b7d162870 Add _remove_duplicate_links(), and test. 2019-09-21 10:52:52 -07:00
Chris Jerdonek a556278bf2
Merge pull request #7058 from cjerdonek/simplify-local-repos
Simplify local_repos.py
2019-09-21 10:44:05 -07:00
Pradyun Gedam aea7d86a22
Merge pull request #7059 from pradyunsg/cleanup/get-rid-of-is-artifact
Remove link.is_artifact
2019-09-21 22:46:28 +05:30
Chris Jerdonek f5e5f403b6 Test logging in test_collect_links(). 2019-09-21 10:10:53 -07:00
Chris Jerdonek 188ec6ff4e Don't pass "/trunk" when calling local_checkout() with svn. 2019-09-21 03:29:34 -07:00
Chris Jerdonek d7709fa106 Assert that initools_dir doesn't already exist. 2019-09-21 02:31:32 -07:00
Chris Jerdonek 1ca61e14ba Assert that repo_url_path doesn't exist. 2019-09-21 02:31:25 -07:00
Chris Jerdonek 144051e422 Simplify local_repos.py. 2019-09-21 02:30:30 -07:00
Pradyun Gedam ab6d550592
Remove link.is_artifact 2019-09-21 14:30:14 +05:30
Pradyun Gedam 0a2238ac38
Create new module: network.auth (#7045) 2019-09-20 22:43:34 +05:30
Chris Hunt 7e1d02226b Rename networking to network 2019-09-19 23:13:47 -04:00
Chris Hunt f8d03e4baa Move MultiDomainBasicAuth to networking.auth 2019-09-19 21:02:22 -04:00
Chris Hunt e9274f6548 Move keyring-related functions to new networking.auth module 2019-09-19 20:48:09 -04:00
Chris Hunt 2aeed371e5 Make content_type optional in unpack_file. 2019-09-19 20:02:47 -04:00
Christopher Hunt 79ec3def25
Merge pull request #7037 from chrahunt/refactor/clean-up-unpack
Remove svn handling in unpacking.unpack_file
2019-09-19 08:35:12 -04:00