Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

Commit 54f80dd

Browse files
committed
remove unused x-def related methods, distracting for now
1 parent e1ddfb3 commit 54f80dd

File tree

2 files changed

+0
-58
lines changed

2 files changed

+0
-58
lines changed

langserver/clone_workspace.py

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -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

test/.cache/v/cache/lastfailed

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"test_dep_versioning.py::TestDependencyVersioning::()::test_dep_download_specified_version[test_data1]": true,
66
"test_dep_versioning.py::TestDependencyVersioning::()::test_dep_download_specified_version[test_data2]": true,
77
"test_dep_versioning.py::TestDependencyVersioning::()::test_dep_download_specified_version[test_data3]": true,
8-
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_cross_package_definition": true,
9-
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_cross_package_import_definition": true,
10-
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_local_defintion": true,
11-
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_local_package_cross_module_definition": true,
12-
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_local_package_cross_module_import_definition": true,
138
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_local_references": true,
149
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_std_lib_definition": true,
1510
"test_fizzbuzz.py::TestFizzBuzzWorkspace::()::test_x_references": true,

0 commit comments

Comments
 (0)