From 61af839867d057180e9e7aaec2bd9c8f2d24dba4 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 7 Aug 2017 08:47:58 +0200 Subject: [PATCH 1/2] BUGFIX: Allow Python < 3.5 to work As run method was introduces in version 3.5, the plugin did not work in lower Python versions. We therefore replaced the call with a older high level API. --- rplugin/python3/neotags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/neotags.py b/rplugin/python3/neotags.py index 44ec7a6..f7115e3 100644 --- a/rplugin/python3/neotags.py +++ b/rplugin/python3/neotags.py @@ -67,7 +67,7 @@ class NeotagsPlugin(object): sys.stdout.write(line) def generate_tags(self, tags_file, filename): - subprocess.run([ + subprocess.call([ self.options['ctags_cmd'], '-f', tags_file, From 9c8656959ccc8f2c08975beca55c878912984170 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 7 Aug 2017 09:05:17 +0200 Subject: [PATCH 2/2] TASK: Configure pyfakefs version to use Until we migrate deprecated copyRealFile we need to stick to a lower version. --- Dockerfile | 2 +- readme.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1406b4..74e9cfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ LABEL Description="This image should provide environment to lint neotags" Vendor # Install dependencies RUN pip install --upgrade pip -RUN pip install --no-cache-dir pep8 neovim pyfakefs +RUN pip install --no-cache-dir pep8 neovim pyfakefs==3.1 diff --git a/readme.rst b/readme.rst index 995af81..1afbfbc 100644 --- a/readme.rst +++ b/readme.rst @@ -44,7 +44,7 @@ Development Install dependencies: -- ``pip install pyfakefs`` +- ``pip install pyfakefs==3.1`` Run tests: