@@ -92,59 +92,6 @@ def get_module_info(self, raw_jedi_module_path):
9292
9393 return (ModuleKind .UNKNOWN , module_path )
9494
95- def get_package_information (self ):
96- project_packages = self .project_packages ()
97- dependencies = self .external_dependencies ()
98-
99- out = []
100- for package in project_packages :
101- out .append ({
102- "package" : {
103- "name" : package
104- },
105- "dependencies" : dependencies
106- })
107- return out
108-
109- @lru_cache ()
110- def project_packages (self ):
111- '''
112- Provides a list of all packages declared in the project
113- '''
114- script = [
115- "import json" ,
116- "import setuptools" ,
117- "pkgs = setuptools.find_packages()" ,
118- "print(json.dumps(pkgs))"
119- ]
120-
121- c = self .run_command ("python -c '{}'" .format (";" .join (script )))
122- return json .loads (c .out )
123-
124- def external_dependencies (self ):
125- '''
126- Provides a list of third party packages that the
127- project depends on.
128- '''
129- deps = json .loads (self .run_command (
130- "pip list --local --format json" ).out )
131- out = [
132- {
133- # TODO - is this ever not a dependency?
134- "attributes" : {
135- "name" : "cpython" ,
136- "repoURL" : "git://github.com/python/cpython"
137- }
138- }
139- ]
140-
141- for dep in deps :
142- dep_name = dep ["name" ]
143- if dep_name not in set (["pip" , "wheel" ]):
144- out .append ({"attributes" : {"name" : dep_name }})
145-
146- return out
147-
14895 def project_to_cache_path (self , project_path ):
14996 """
15097 Translates a path from the root of the project to the equivalent path in
0 commit comments