Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Chris Hunt
cf7ebdbbc2
Move PipSession to network.session
2019-09-27 01:02:52 -04:00
Christopher Hunt
41ea07ac4a
Merge pull request #7005 from epicfaace/patch-1
...
Fix grammar
2019-09-18 19:59:12 -04:00
Chris Jerdonek
6d94944efd
Change PackageFinder.create() to accept a LinkCollector.
2019-09-18 00:59:04 -07:00
Chris Jerdonek
6a55f0788b
Move make_search_scope() to outdated.py.
2019-09-18 00:48:48 -07:00
Ashwin Ramaswami
9322b9fa22
Fix grammar
2019-09-10 09:53:45 -07:00
Chris Hunt
6617d15838
Write to tempfile and move instead of locking selfcheck file.
2019-09-08 09:29:48 -04:00
Pradyun Gedam
8b2e1c866c
Merge pull request #6855 from chrahunt/refactor/separate-statefile-states
...
Write separate statefiles per prefix.
2019-09-07 09:35:23 +05:30
Chris Jerdonek
1ab37d31f1
Merge pull request #6903 from cjerdonek/move-trusted-hosts
...
Move PackageFinder's --trusted-host logic to PipSession
2019-08-22 03:56:13 -07:00
Chris Jerdonek
a6cdb490b0
Move trusted_hosts logic to PipSession.
2019-08-21 03:03:17 -07:00
Chris Jerdonek
6554273fe5
Pass the best candidate to BestCandidateResult instead of CandidateEvaluator.
2019-08-20 22:49:30 -07:00
Chris Jerdonek
e8eda16ed8
Rename some PackageFinder "best candidate" classes and methods:
...
* Rename FoundCandidates to BestCandidateResult.
* Rename CandidateEvaluator's make_found_candidates() to
compute_best_candidate().
* Rename CandidateEvaluator's get_best_candidate() to
sort_best_candidate().
* Rename PackageFinder's find_candidates() to find_best_candidate().
2019-08-20 22:49:30 -07:00
Chris Hunt
5f4da50adf
Shorten selfcheck filenames and move to cache subdirectory.
2019-08-15 00:22:51 -04:00
Chris Hunt
c91af0dade
Move selfcheck state file content creation outside lock.
2019-08-13 21:50:03 -04:00
Chris Hunt
d81a95a095
Simplify selfcheck state file structure.
...
Since we are in a prefix-specific state file, we no longer need to
have a top-level map keyed by prefix and can have a simple flat
structure.
2019-08-13 21:50:03 -04:00
Chris Hunt
9928409b2f
Do not read selfcheck state file when saving.
2019-08-13 21:50:03 -04:00
Chris Hunt
f6468178c2
Make selfcheck state file path prefix-specific.
2019-08-13 21:49:02 -04:00
Chris Hunt
0220fbc6d6
Add tests for reading/writing selfcheck state file.
2019-08-13 21:44:26 -04:00
Chris Hunt
8d732c709f
Make selfcheck state key explicit.
2019-08-13 20:29:36 -04:00
Chris Jerdonek
ae79b5bf5c
Add a SelectionPreferences class.
2019-06-28 11:14:55 -07:00
Chris Jerdonek
8af3f21a57
Filter out yanked links earlier when allow_yanked=False.
2019-06-27 19:50:25 -07:00
Chris Jerdonek
a447be4785
Update PackageFinder to support "yanked" files (PEP 592).
2019-06-26 02:32:40 -07:00
Chris Jerdonek
cab7316e2b
Change PackageFinder.create() to accept a SearchScope object.
2019-06-21 14:41:49 -07:00
DiegoCaraballo
2ffbf88bbc
sorted imports
2019-06-15 19:06:34 -03:00
DiegoCaraballo
3fbbcb8b6f
The was_installed_by_pip function is modified
2019-06-15 15:36:21 -03:00
Chris Jerdonek
cad71a7117
Add PackageFinder.create(), and simplify PackageFinder().
2019-05-17 11:55:21 -07:00
Masaki
cf1bab093d
Refactor local_version_is_older conditional
...
Exit conditional sooner if not local_version_is_older for faster execution
Delete whitespace
2019-05-06 16:34:50 -04:00
Masaki
8738ef401e
Refactor outdated for readability
...
Moved local and remote pip version check conditional to a variable
2019-05-06 15:23:07 -04:00
Tzu-ping Chung
14cb4f4fb6
Isolate, reuse PackageFinder best candidate logic ( #5971 )
...
Split out how PackageFinder finds the best candidate, and reuse it in the
self version check, to avoid the latter duplicating (and incorrectly
implementing) the same logic.
2019-04-16 16:46:25 -07:00
Maxim Kurnikov
f77b8ca051
remove #noqa: F401
2019-02-22 14:17:07 +03:00
Pradyun Gedam
7222cb8fdb
Remove --process-dependency-links and related support code
2019-01-02 17:27:06 +05:30
Maxim Kurnikov
5e5904e61c
Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ ( #6061 )
2018-12-08 08:47:24 +05:30
Pradyun Gedam
1e0247f078
Allow passing cache_dir as False to SelfCheckState
2018-09-06 00:43:59 +05:30
Pradyun Gedam
4fc697847a
Update imports for the moved compat module
2018-07-29 18:32:20 +05:30
Nehal J Wani
96f9fcc4a0
Make pip_installed_by_pip() more generic
2018-07-15 21:32:31 +05:30
Miro Hrončok
d0b77089a7
When pip was not installed by pip, don't show the upgrade warning
...
Fixes https://github.com/pypa/pip/issues/5346
2018-05-19 08:32:27 +02:00
Tom Freudenheim
16528ed5f1
Cleanup per PR comments
2018-05-17 09:39:26 -04:00
Tom Freudenheim
631c080cc8
use options to get cache path
2018-05-16 17:55:34 -04:00
Tom Freudenheim
cd7c25dece
removed VirtualenvSelfCheckState per stufft
2018-05-16 15:44:24 -04:00
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00