Commit Graph

38 Commits

Author SHA1 Message Date
Pradyun Gedam 58c594c06b
Prepare isort for black 2020-09-23 21:47:47 +05:30
Pradyun Gedam 25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
Pradyun Gedam e3e916be8d
Add a dedicated type for check_install_conflicts 2020-07-16 01:38:36 +05:30
Devesh Kumar Singh 245bcd0456 Check should_ignore in if condition and remove function creation 2020-07-03 12:27:13 +05:30
Devesh Kumar Singh 65e55e2540 Type annotations for pip._internal.operations.check 2020-07-03 12:27:13 +05:30
Tzu-ping Chung 1ea7a05df6 One more found by grepping 2020-01-07 20:49:55 +05:30
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Pradyun Gedam 40a0f189b9
Enable check-builtin-literals 2019-09-24 18:03:22 +05:30
Pradyun Gedam f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Pradyun Gedam 7908973c07
Rename AbstractDistribution.dist()
Use a more descriptive name get_pkg_resources_distribution()
2019-06-16 05:28:55 +05:30
Pradyun Gedam 534a102564
Rename make_abstract_dist
Use a more descriptive name make_distribution_for_install_requirement()
2019-06-16 05:23:16 +05:30
Pradyun Gedam d43e31802b
Add distributions sub-package for holding build logic
This moves the DistAbstraction logic into a dedicated 'distributions'
sub-package, with separated modules for the concrete implementations of
various distribution handling logic.
2019-06-14 23:27:42 +05:30
Maxim Kurnikov f77b8ca051 remove #noqa: F401 2019-02-22 14:17:07 +03:00
Pradyun Gedam f9b66cacb3
Stop passing finder to DistAbstraction.dist 2019-01-02 17:27:34 +05:30
Maxim Kurnikov 7ee388178a Add type annotations for pip._internal.operations (#6066)
References https://github.com/pypa/pip/issues/4748, https://github.com/pypa/pip/pull/6038.
2018-12-17 16:41:47 +05:30
Thomas Kluyver 4286f49d6d Arrange imports as required by linter 2018-10-02 14:25:42 +02:00
Thomas Kluyver 9a1194e4be Exit 'pip check' with code 1 on problems parsing requirements 2018-10-02 12:38:16 +02:00
Thomas Kluyver 172a71b0cf Log warning when there's a problem parsing requirements 2018-10-02 12:03:26 +02:00
Thomas Kluyver cfac80f374 Catch errors parsing requirements to check packages 2018-10-02 12:00:53 +02:00
Pradyun Gedam 8a565aac75
Sort imports as per newer isort 2018-06-27 12:53:31 +05:30
Pradyun Gedam 161e8bd210
Switch to using a set and callable argument 2018-06-15 11:29:36 +05:30
Pradyun Gedam daa3163d08
Restrict install time dependency warnings to directly-dependant packages 2018-06-15 11:29:36 +05:30
Pradyun Gedam a121abbc30
Add flake8 ignores for mypy imports 2018-06-13 13:17:30 +05:30
Pradyun Gedam ee2e81ca1f
Use all available distributions
Same as b5f56efde5
2018-04-04 13:03:07 +05:30
Pradyun Gedam ecc1072ba0
Merge pull request #5146 from pradyunsg/fix/check-accept-prerelease-versions
Accept prerelease versions when checking conflicts
2018-04-03 23:18:10 +05:30
Stephan Erb 72b3195f0e Fix name normalization used for install warnings 2018-04-02 20:17:20 +02:00
Pradyun Gedam 1862d2f887
Accept prerelease versions when checking conflicts 2018-04-02 21:35:49 +05:30
Pradyun Gedam 49767ec374
Use string representation for comparing
More robust with weird requirements that can't be directly compared for
some reason (like markers).
2018-03-28 13:48:38 +05:30
Pradyun Gedam f286fb8bdd
pip check should care about the markers 2018-03-28 13:44:21 +05:30
Pradyun Gedam e04e5a6aab
mypy gets more data 2018-03-28 13:43:56 +05:30
Pradyun Gedam 1c911bfbdd
🎨 Make the linters happy again 2018-01-26 11:06:16 +05:30
Pradyun Gedam 045e244b7e
Run pip check in pip install
Also, add --no-warn-conflicts option to allow supressing the error messages generated.
2018-01-24 18:16:18 +05:30
Pradyun Gedam a33846b627
Use namedtuple attributes 2018-01-24 18:08:46 +05:30
Pradyun Gedam 980b3ff0c1
Use canonical names 2018-01-24 18:08:46 +05:30
Pradyun Gedam 0fa2736090
Improve operations.check
- Move get_installed_distributions call into operations.check
- Use a named tuple, instead of a normal tuple
2018-01-24 18:08:39 +05:30
Pradyun Gedam 09f0941ed4
Rework pip check to not use Distribution objects
While there is no change in functionality, this change makes it
possible to reuse the pip check logic by uncoupling it from the
Distribution objects.
2018-01-24 17:45:06 +05:30
Pradyun Gedam 729990c986
Round 1 of Cleanups (#4844)
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/operations/check.py (Browse further)