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

40 commits

Author SHA1 Message Date
Devesh Kumar Singh e8aa5e73c5 Fix return type annotation for handle_401 2020-05-22 19:30:08 +05:30
Devesh Kumar Singh c469e11d47 Type annotations for pip._internal.network.auth 2020-05-20 23:12:23 +05:30
Devesh Kumar Singh 65a6152f02 Remove Optional type from xmlrpc bool parameters 2020-05-20 12:40:05 +05:30
Devesh Kumar Singh fdc062475e Type annotations for pip._internal.network.xmlrpc 2020-05-19 22:13:44 +05:30
Devesh Kumar Singh e572d9e0c9 Type annotations for pip._internal.network.cache 2020-05-19 22:13:44 +05:30
gutsytechster 2276f9528c fix(network/auth): Asks for password when it is None
When `get_keyring_auth` provides the password as None, the
user should be prompt to ask password.
2020-05-15 19:41:43 +05:30
Noah Gorny 544c307ebf session: Always cache responses from trusted-host source
news: Add news about default behaviour change
2020-03-26 21:29:18 +02:00
Noah Gorny 65a9bec7a4 session: Add InsecureCacheControlAdapter 2020-03-26 21:15:38 +02:00
Noah Gorny c936ed0165 session: Rename _insecure_adapter to _trusted_host_adapter
Currently it is just the insecure adapter, but this can change in the future
2020-03-26 21:15:38 +02:00
Noah Gorny f1a8bd4ad6 session: Fix comment about add_insecure_host, rename to add_trusted_host 2020-03-26 21:15:38 +02:00
Nitesh Sharma ce1e0f470a
Move UI helpers to cli subpackage (#6727) 2020-02-21 14:01:13 +05:30
Deepak Sharma d31cf696e8 string_formatting 2020-01-30 20:33:00 +05:30
Stéphane Bidoul (ACSONE) 1ee270a8d4
Check that the cache is writable in _main()
This avoid code duplication (for the wheel and http
cache) and repeated warnings.
2019-12-28 13:04:54 +01:00
Chris Hunt 355c303e12 Lazy evaluate has_tls result
This avoids an unnecessary unconditional import of ssl and urllib3 in
compat.
2019-12-09 20:48:58 +08:00
Chris Hunt f4e40d7a09 Wrap HAS_TLS in a function
Next we'll refactor the value to be computed lazily.
2019-12-09 20:48:58 +08:00
Chris Hunt 78a221cf71 Move Downloader to network.download
This will help us move Downloader construction out of
RequirementPreparer, reducing its concerns and making it easier to test
in isolation.
2019-12-04 18:31:53 -05:00
Chris Hunt 3a2ff979de Move _http_get_download to network.download 2019-12-04 18:31:53 -05:00
Chris Hunt e354b728dc Move _get_http_response_filename to network.download 2019-12-04 18:31:53 -05:00
Chris Hunt 762e4a0817 Move parse_content_disposition to network.download 2019-12-04 18:31:53 -05:00
Chris Hunt 32b0fc23ab Move sanitize_content_filename to network.download 2019-12-04 18:31:53 -05:00
Chris Hunt 3fbc991f0c Move _prepare_download to network.download 2019-12-04 18:31:53 -05:00
Chris Hunt 864f78bd96 Add network.download module
This will be home to Dowloader, Download, and associated helper
functions. Since this is an abstraction over PipSession, it makes
sense to keep these functions in a separate module.

Also move a helper function here from operations.prepare.
2019-12-04 18:30:27 -05:00
Chris Hunt 143608bd14 Remove manual decoding in network.session in favor of six method 2019-11-10 17:56:59 -05:00
Christopher Hunt a0ff620240
Merge pull request #7291 from chrahunt/refactor/cleanup-prepare-1
Cleanup operations.prepare
2019-11-04 19:39:24 +08:00
Chris Hunt 3125c32696 Send client cert when using InsecureHTTPAdapter 2019-11-03 17:05:58 -05:00
Chris Hunt b873df49b0 Factor from_cache check into separate function 2019-11-03 15:29:19 -05:00
Chris Hunt 5da6abf60d Move resp_chunks to network.utils
This generic piece of code only clutters operations.prepare, making it
harder to refactor.
2019-11-03 15:16:42 -05:00
Chris Hunt f315671572 Move urllib3 warning suppression to network.session
This is only relevant for our usage of --trusted-host, so it is enough
to initialize it in network.session.
2019-10-06 22:31:49 -04:00
Xavier Fernandez daae7f96f5 Add missing disallow-untyped-defs=False comment 2019-09-30 00:32:39 +02:00
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Christopher Hunt 530fa337a9
Merge pull request #7095 from Nta1e/b7090
Move PipXmlrpcTransport to network.xmlrpc
2019-09-28 19:57:01 -04:00
NtaleGrey 88e9ce6e27 implement feedback 2019-09-28 15:51:52 +03:00
NtaleGrey cf5ce5f16f Move PipXmlrpcTransport from pip._internal.download to pip._internal.network.xmlrpc 2019-09-27 18:14:35 +03:00
Chris Hunt c40331e824 Add docstring to network.session 2019-09-27 01:05:24 -04: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
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
Chris Hunt 99c29af3ce Move SafeFileCache to network.cache. 2019-09-21 16:24:31 -04:00
Chris Hunt 7423c8ab02 Add documentation string to pip._internal.network.auth 2019-09-20 19:46:40 -04:00
Chris Hunt 7e1d02226b Rename networking to network 2019-09-19 23:13:47 -04:00