Commit Graph

45 Commits

Author SHA1 Message Date
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 f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Pradyun Gedam 537b0fca12
Change isort multi_line_output to 3 2019-07-22 10:15:27 +05:30
László Kiss Kollár 929fefdbae Add --path to pip freeze to support --target installations (#6450)
* Add support for --path in pip freeze
2019-05-28 02:28:18 -07:00
Chris Jerdonek 7c42f0ed8e Include more details in a pip freeze warning message. 2019-05-25 00:31:44 -07:00
Chris Jerdonek 3cfa8a76c7 Store instances in the VcsSupport registry instead of classes. 2019-05-09 22:35:26 -04:00
Chris Jerdonek dc1217713e Fix freeze log debug message. 2019-05-06 14:55:16 -04:00
Maxim Kurnikov f77b8ca051 remove #noqa: F401 2019-02-22 14:17:07 +03:00
Chris Jerdonek 4dc8710654
Tweak freeze comment when no version control detected. (#6128) 2019-01-12 12:44:45 -08:00
Chris Jerdonek 8d45557ff1 Make get_src_requirement() a class method. 2019-01-09 01:52:24 -08:00
Chris Jerdonek 526ac40e63 Fix freeze to handle Git repos with no remote. 2018-12-21 01:10:06 -08:00
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
Chris Jerdonek 07900ed732 Change VersionControl.get_src_requirement() to accept the project name. 2018-11-08 04:24:05 -08:00
Chris Jerdonek 3803ce3cb0
Merge pull request #5905 from cjerdonek/issue-5031-freeze-non-vcs-editable
Address #5031: freeze non-vcs editable installs as editable
2018-11-05 14:21:42 -08:00
Chris Jerdonek afdfb7b210 Include package name in a freeze warning if package is not installed. 2018-10-27 06:50:15 -07:00
Chris Jerdonek f828dff5ca Switch log message from info to debug. 2018-10-23 00:29:42 -07:00
Chris Jerdonek 20ab0b8b75 Address #5031: freeze editable, non-VCS installs as editable. 2018-10-22 02:03:42 -07:00
Chris Jerdonek 46ffb13f13 Remove unused dependency_links variables in freeze.py. 2018-10-16 02:42:20 -07:00
Chris Jerdonek ddfe130b31 Make get_requirement_info() a function rather than a class method. 2018-10-16 02:27:12 -07:00
Chris Jerdonek c976f2c1e9 Flatten the try-except. 2018-10-13 02:15:37 -07:00
Chris Jerdonek 5ad0379e8d Remove the module-level function get_src_requirement(). 2018-10-13 02:15:33 -07:00
Chris Jerdonek 00a2ff198e Remove unneeded if block in vcs.get_src_requirement(). 2018-10-10 02:34:40 -07:00
Chris Jerdonek 2f16b88fb3 Refactor away VcsSupport.get_backend_from_location(). 2018-10-10 02:16:00 -07:00
Chris Jerdonek faff436100 Add guard clause. 2018-10-08 22:57:32 -07:00
Chris Jerdonek 500598287d Remove deprecated SVN-specific freeze code. 2018-10-08 22:27:04 -07:00
Chris Jerdonek b3ac98eff4 Only define comments when needed. 2018-10-08 11:31:27 -07:00
Chris Jerdonek e80a90e96c Add try-else clause. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 39b413352d Combine some lines. 2018-10-08 11:31:27 -07:00
Chris Jerdonek f5026e7db9 Remove unneeded boolean flag variables. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 7aa7bf0295 Add fourth guard clause. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 6d84b4747a Add third guard clause. 2018-10-08 11:30:50 -07:00
Chris Jerdonek e4ce62a5de Add second guard clause. 2018-10-08 11:30:50 -07:00
Chris Jerdonek 16333ef1da Add first guard clause. 2018-10-08 11:29:39 -07:00
Pradyun Gedam 9e26002fcd
Bump deprecation version to unlock workflow 2018-10-08 20:46:17 +05:30
Chris Jerdonek 309cb37091 Add FrozenRequirement._init_args_from_dist() helper method. 2018-09-26 22:11:27 -07:00
Chris Jerdonek 520df5356f Add misc.make_vcs_requirement_url(). 2018-09-25 01:31:34 -07:00
Pradyun Gedam a5a07fe61c
Move InstallRequirement.from_line to constructors module 2018-08-21 20:37:40 +05:30
Pradyun Gedam 69b494aa29
Move InstallRequirement.from_editable to a constructors module 2018-08-21 20:27:22 +05:30
Pradyun Gedam e027cd8449
Update deprecation utilities to specify versions
Also:
- Remove conditional warning/error level logging
- Remove now-obsolete class
- Update call sites as per new signature
2018-07-15 17:15:31 +05:30
Pradyun Gedam a8eaf1e0ff
Add a helper function for deprecation (and use it) 2018-07-15 17:02:03 +05:30
Pradyun Gedam aa146d5dc2
Kick the can down the road for dependency-links 2018-06-21 21:19:24 +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
Pradyun Gedam 353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
Calvin Smith 4e97d3d5f9 Freeze not installed (#4292, #4293) 2017-10-31 11:13:46 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/operations/freeze.py (Browse further)