diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-13 22:31:18 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-13 22:31:18 +0300 |
commit | 0d21c9d5c7fda1d0fdeddad8beccc0338cb33c41 (patch) | |
tree | 5895d3bc79b846adf02cfb836c9f2039db0cc6ef /contrib | |
parent | 642a79321672b18325904452fa97fa708767a0c4 (diff) | |
download | ydb-0d21c9d5c7fda1d0fdeddad8beccc0338cb33c41.tar.gz |
intermediate changes
ref:195ee9a494ddf56c6c8a87e6e37b8184023002f3
Diffstat (limited to 'contrib')
-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 0000000000..9f790bfdd7 --- /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 0000000000..0d4ac10e92 --- /dev/null +++ b/contrib/python/jedi/AUTHORS.txt @@ -0,0 +1,55 @@ +Main Authors +============ + +David Halter (@davidhalter) <davidhalter88@gmail.com> +Takafumi Arakaki (@tkf) <aka.tkf@gmail.com> + +Code Contributors +================= + +Danilo Bargen (@dbrgn) <mail@dbrgn.ch> +Laurens Van Houtven (@lvh) <_@lvh.cc> +Aldo Stracquadanio (@Astrac) <aldo.strac@gmail.com> +Jean-Louis Fuchs (@ganwell) <ganwell@fangorn.ch> +tek (@tek) +Yasha Borevich (@jjay) <j.borevich@gmail.com> +Aaron Griffin <aaronmgriffin@gmail.com> +andviro (@andviro) +Mike Gilbert (@floppym) <floppym@gentoo.org> +Aaron Meurer (@asmeurer) <asmeurer@gmail.com> +Lubos Trilety <ltrilety@redhat.com> +Akinori Hattori (@hattya) <hattya@gmail.com> +srusskih (@srusskih) +Steven Silvester (@blink1073) +Colin Duquesnoy (@ColinDuquesnoy) <colin.duquesnoy@gmail.com> +Jorgen Schaefer (@jorgenschaefer) <contact@jorgenschaefer.de> +Fredrik Bergroth (@fbergroth) +Mathias Fußenegger (@mfussenegger) +Syohei Yoshida (@syohex) <syohex@gmail.com> +ppalucky (@ppalucky) +immerrr (@immerrr) immerrr@gmail.com +Albertas Agejevas (@alga) +Savor d'Isavano (@KenetJervet) <newelevenken@163.com> +Phillip Berndt (@phillipberndt) <phillip.berndt@gmail.com> +Ian Lee (@IanLee1521) <IanLee1521@gmail.com> +Farkhad Khatamov (@hatamov) <comsgn@gmail.com> +Kevin Kelley (@kelleyk) <kelleyk@kelleyk.net> +Sid Shanker (@squidarth) <sid.p.shanker@gmail.com> +Reinoud Elhorst (@reinhrst) +Guido van Rossum (@gvanrossum) <guido@python.org> +Dmytro Sadovnychyi (@sadovnychyi) <jedi@dmit.ro> +Cristi Burcă (@scribu) +bstaint (@bstaint) +Mathias Rav (@Mortal) <rav@cs.au.dk> +Daniel Fiterman (@dfit99) <fitermandaniel2@gmail.com> +Simon Ruggier (@sruggier) +Élie Gouzien (@ElieGouzien) +Robin Roth (@robinro) +Malte Plath (@langsamer) +Anton Zub (@zabulazza) +Maksim Novikov (@m-novikov) <mnovikov.work@gmail.com> +Tobias Rzepka (@TobiasRzepka) +micbou (@micbou) +Dima Gerasimov (@karlicoss) <karlicoss@gmail.com> + +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 0000000000..d1e2311fd9 --- /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)) + |