diff options
author | arcadia-devtools <[email protected]> | 2022-04-13 22:31:18 +0300 |
---|---|---|
committer | arcadia-devtools <[email protected]> | 2022-04-13 22:31:18 +0300 |
commit | 0d21c9d5c7fda1d0fdeddad8beccc0338cb33c41 (patch) | |
tree | 5895d3bc79b846adf02cfb836c9f2039db0cc6ef /contrib/python | |
parent | 642a79321672b18325904452fa97fa708767a0c4 (diff) |
intermediate changes
ref:195ee9a494ddf56c6c8a87e6e37b8184023002f3
Diffstat (limited to 'contrib/python')
-rw-r--r-- | contrib/python/jedi/.yandex_meta/yamaker.yaml | 3 | ||||
-rw-r--r-- | contrib/python/jedi/AUTHORS.txt | 55 | ||||
-rw-r--r-- | contrib/python/jedi/patches/01-arcadia.patch | 46 |
3 files changed, 104 insertions, 0 deletions
diff --git a/contrib/python/jedi/.yandex_meta/yamaker.yaml b/contrib/python/jedi/.yandex_meta/yamaker.yaml new file mode 100644 index 00000000000..9f790bfdd7a --- /dev/null +++ b/contrib/python/jedi/.yandex_meta/yamaker.yaml @@ -0,0 +1,3 @@ +additional_requirements: +- setuptools + diff --git a/contrib/python/jedi/AUTHORS.txt b/contrib/python/jedi/AUTHORS.txt new file mode 100644 index 00000000000..0d4ac10e923 --- /dev/null +++ b/contrib/python/jedi/AUTHORS.txt @@ -0,0 +1,55 @@ +Main Authors +============ + +David Halter (@davidhalter) <[email protected]> +Takafumi Arakaki (@tkf) <[email protected]> + +Code Contributors +================= + +Danilo Bargen (@dbrgn) <[email protected]> +Laurens Van Houtven (@lvh) <[email protected]> +Aldo Stracquadanio (@Astrac) <[email protected]> +Jean-Louis Fuchs (@ganwell) <[email protected]> +tek (@tek) +Yasha Borevich (@jjay) <[email protected]> +Aaron Griffin <[email protected]> +andviro (@andviro) +Mike Gilbert (@floppym) <[email protected]> +Aaron Meurer (@asmeurer) <[email protected]> +Lubos Trilety <[email protected]> +Akinori Hattori (@hattya) <[email protected]> +srusskih (@srusskih) +Steven Silvester (@blink1073) +Colin Duquesnoy (@ColinDuquesnoy) <[email protected]> +Jorgen Schaefer (@jorgenschaefer) <[email protected]> +Fredrik Bergroth (@fbergroth) +Mathias Fußenegger (@mfussenegger) +Syohei Yoshida (@syohex) <[email protected]> +ppalucky (@ppalucky) +immerrr (@immerrr) [email protected] +Albertas Agejevas (@alga) +Savor d'Isavano (@KenetJervet) <[email protected]> +Phillip Berndt (@phillipberndt) <[email protected]> +Ian Lee (@IanLee1521) <[email protected]> +Farkhad Khatamov (@hatamov) <[email protected]> +Kevin Kelley (@kelleyk) <[email protected]> +Sid Shanker (@squidarth) <[email protected]> +Reinoud Elhorst (@reinhrst) +Guido van Rossum (@gvanrossum) <[email protected]> +Dmytro Sadovnychyi (@sadovnychyi) <[email protected]> +Cristi Burcă (@scribu) +bstaint (@bstaint) +Mathias Rav (@Mortal) <[email protected]> +Daniel Fiterman (@dfit99) <[email protected]> +Simon Ruggier (@sruggier) +Élie Gouzien (@ElieGouzien) +Robin Roth (@robinro) +Malte Plath (@langsamer) +Anton Zub (@zabulazza) +Maksim Novikov (@m-novikov) <[email protected]> +Tobias Rzepka (@TobiasRzepka) +micbou (@micbou) +Dima Gerasimov (@karlicoss) <[email protected]> + +Note: (@user) means a github user name. diff --git a/contrib/python/jedi/patches/01-arcadia.patch b/contrib/python/jedi/patches/01-arcadia.patch new file mode 100644 index 00000000000..d1e2311fd9a --- /dev/null +++ b/contrib/python/jedi/patches/01-arcadia.patch @@ -0,0 +1,46 @@ +--- contrib/python/jedi/jedi/evaluate/compiled/fake.py (index) ++++ contrib/python/jedi/jedi/evaluate/compiled/fake.py (working tree) +@@ -3,22 +3,26 @@ Loads functions that are mixed in to the standard library. E.g. builtins are + written in C (binaries), but my autocompletion only understands Python code. By + mixing in Python code, the autocompletion should work much better for builtins. + """ +- ++import sys + import os + from itertools import chain + ++import __res ++ + from jedi._compatibility import unicode + + fake_modules = {} + + + def _get_path_dict(): +- path = os.path.dirname(os.path.abspath(__file__)) ++ path = os.path.dirname(__file__) + base_path = os.path.join(path, 'fake') + dct = {} +- for file_name in os.listdir(base_path): +- if file_name.endswith('.pym'): +- dct[file_name[:-4]] = os.path.join(base_path, file_name) ++ for file_name in __res.resfs_files(): ++ if sys.version_info[0] == 3: ++ file_name = str(file_name, 'ascii') ++ if file_name.startswith(base_path) and file_name.endswith('.pym'): ++ dct[file_name[len(base_path) + 1:-4]] = file_name + return dct + + +@@ -45,8 +49,9 @@ def _load_faked_module(evaluator, module_name): + fake_modules[module_name] = None + return + +- with open(path) as f: +- source = f.read() ++ if sys.version_info[0] == 3: ++ path = bytes(path, 'ascii') ++ source = __res.resfs_read(path) + + fake_modules[module_name] = m = evaluator.latest_grammar.parse(unicode(source)) + |