Revert "Move to python3.8.0"
This reverts commit 04fb17cb3f.
- Am seeing a bug where only one worker continues processing
on python3.8.
- Ubuntu and freedesktop-sdk are still on 3.7.
- Not using any features of 3.8 yet.
- Also removes color from mypy.
This commit is contained in:
parent
d645f62b10
commit
1cf2fc445c
26 changed files with 43 additions and 45 deletions
|
|
@ -11,7 +11,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase.
|
|||
# git clone https://github.com/ahamilton/eris
|
||||
# cd eris
|
||||
# ./install-dependencies
|
||||
# python3.8 -m pip install .
|
||||
# python3.7 -m pip install .
|
||||
|
||||
To test its working properly:
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export PATH="${HERE}"/usr/bin/:"${HERE}"/usr/local/bin/:"${PATH}"
|
|||
export UNION_PRELOAD="${HERE}"
|
||||
export LD_PRELOAD="${HERE}/libunionpreload.so"
|
||||
export LD_LIBRARY_PATH="${HERE}"/usr/lib/:"${HERE}"/usr/lib/i386-linux-gnu/:"${HERE}"/usr/lib/x86_64-linux-gnu/:"${HERE}"/usr/lib32/:"${HERE}"/usr/lib64/:"${HERE}"/lib/:"${HERE}"/lib/i386-linux-gnu/:"${HERE}"/lib/x86_64-linux-gnu/:"${HERE}"/lib32/:"${HERE}"/lib64/:"${LD_LIBRARY_PATH}"
|
||||
export PYTHONPATH=/usr/local/lib/python3.8/dist-packages:"${PYTHONPATH}"
|
||||
export PYTHONPATH=/usr/local/lib/python3.7/dist-packages:"${PYTHONPATH}"
|
||||
if [ -z $APPIMAGE_ENTER ]; then
|
||||
EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2- | sed -e 's|%.||g')
|
||||
exec ${EXEC} $@
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.7
|
||||
|
||||
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
|
|
@ -34,7 +34,7 @@ import eris.lscolors as lscolors
|
|||
import eris.termstr as termstr
|
||||
|
||||
|
||||
PYTHON_VERSION = "3.8"
|
||||
PYTHON_VERSION = "3.7"
|
||||
PYTHON_EXECUTABLE = "python" + PYTHON_VERSION
|
||||
CACHE_PATH = ".eris"
|
||||
|
||||
|
|
@ -303,11 +303,11 @@ def pytest(path):
|
|||
|
||||
@deps(deps={"pip/mypy"}, url="http://mypy-lang.org/", executables={"mypy"})
|
||||
def mypy(path):
|
||||
env = os.environ.copy()
|
||||
env["MYPY_FORCE_COLOR"] = "1"
|
||||
return _run_command([PYTHON_EXECUTABLE, "-m", "mypy", "--color-output",
|
||||
"--ignore-missing-imports", "--pretty", path],
|
||||
timeout=TIMEOUT, has_color=True, env=env)
|
||||
stdout, stderr, returncode = _do_command(
|
||||
[PYTHON_EXECUTABLE, "-m", "mypy", "--ignore-missing-imports", path],
|
||||
timeout=TIMEOUT)
|
||||
status = Status.ok if returncode == 0 else Status.problem
|
||||
return status, stdout
|
||||
|
||||
|
||||
def _colorize_coverage_report(lines):
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ tools_for_extensions = [
|
|||
[python_syntax]
|
||||
dependencies = []
|
||||
url = "https://en.wikipedia.org/wiki/Python_syntax_and_semantics"
|
||||
command = "python3.8 -m py_compile"
|
||||
command = "python3.7 -m py_compile"
|
||||
|
||||
[pydoc]
|
||||
dependencies = []
|
||||
|
|
@ -63,34 +63,34 @@ tools_for_extensions = [
|
|||
[pycodestyle]
|
||||
dependencies = ["pip/pycodestyle"]
|
||||
url = "http://pycodestyle.pycqa.org/en/latest/"
|
||||
command = "python3.8 -m pycodestyle"
|
||||
command = "python3.7 -m pycodestyle"
|
||||
|
||||
[pydocstyle]
|
||||
dependencies = ["pip/pydocstyle"]
|
||||
url = "http://www.pydocstyle.org/en/2.1.1/usage.html"
|
||||
command = "python3.8 -m pydocstyle --ignore=D1,D213"
|
||||
command = "python3.7 -m pydocstyle --ignore=D1,D213"
|
||||
|
||||
[pyflakes]
|
||||
dependencies = ["pip/pyflakes"]
|
||||
url = "https://pypi.org/project/pyflakes/"
|
||||
command = "python3.8 -m pyflakes"
|
||||
command = "python3.7 -m pyflakes"
|
||||
|
||||
[pylint]
|
||||
dependencies = ["pip/pylint"]
|
||||
url = "https://www.pylint.org/"
|
||||
command = "python3.8 -m pylint -f colorized --errors-only"
|
||||
command = "python3.7 -m pylint -f colorized --errors-only"
|
||||
has_color = true
|
||||
|
||||
[python_modulefinder]
|
||||
dependencies = []
|
||||
url = "https://docs.python.org/3/library/modulefinder.html"
|
||||
command = "python3.8 -m modulefinder"
|
||||
command = "python3.7 -m modulefinder"
|
||||
success_status = "normal"
|
||||
|
||||
[bandit]
|
||||
dependencies = ["pip/bandit"]
|
||||
url = "https://pypi.org/project/bandit/"
|
||||
command = "python3.8 -m bandit.cli.main -f screen"
|
||||
command = "python3.7 -m bandit.cli.main -f screen"
|
||||
has_color = true
|
||||
timeout = 60
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ tools_for_extensions = [
|
|||
[dis]
|
||||
dependencies = []
|
||||
url = "https://docs.python.org/3/library/dis.html"
|
||||
command = "python3.8 -m dis"
|
||||
command = "python3.7 -m dis"
|
||||
success_status = "normal"
|
||||
|
||||
[objdump_headers]
|
||||
|
|
@ -303,7 +303,7 @@ tools_for_extensions = [
|
|||
[yamllint]
|
||||
dependencies = ["pip/yamllint"]
|
||||
url = "https://github.com/adrienverge/yamllint"
|
||||
command = "python3.8 -m yamllint -f colored"
|
||||
command = "python3.7 -m yamllint -f colored"
|
||||
has_color = true
|
||||
|
||||
[mediainfo]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2018-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ if [ $DIST_ID != "ubuntu" ]; then
|
|||
exit 1
|
||||
fi
|
||||
echo "Installing the dependencies of the eris script…"
|
||||
sudo apt --yes install python3-pip python3.8 util-linux
|
||||
python3.8 -m pip install pyinotify pygments docopt pillow toml
|
||||
sudo apt --yes install python3-pip python3.7 util-linux
|
||||
python3.7 -m pip install pyinotify pygments docopt pillow toml
|
||||
echo
|
||||
echo "Installing all the tools eris may need…"
|
||||
./install-tools
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.7
|
||||
|
||||
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
@ -106,7 +106,7 @@ def haskell_modules(dep):
|
|||
|
||||
|
||||
def python_modules(package):
|
||||
python_version = "python3.8"
|
||||
python_version = "python3.7"
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
output = subprocess.check_output(
|
||||
[python_version, "-m", "pip", "download", "--dest", temp_dir,
|
||||
|
|
@ -398,7 +398,7 @@ def eris_modules():
|
|||
modules.append({"name": "eris",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"python3.8 -m pip install --no-index --prefix=/app .",
|
||||
"python3.7 -m pip install --no-index --prefix=/app .",
|
||||
"cp -a tests test-all /app/bin"],
|
||||
"sources": [{"type": "git", "url": eris_url,
|
||||
"commit": get_latest_commit()}]})
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
|
|
@ -36,7 +36,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase.
|
|||
# git clone https://github.com/ahamilton/eris
|
||||
# cd eris
|
||||
# ./install-dependencies
|
||||
# python3.8 -m pip install .
|
||||
# python3.7 -m pip install .
|
||||
|
||||
To test its working properly:
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
[m[38;5;2m[48;2;0;0;0m[1mSuccess: no issues found in 1 source file[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2011, 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2016-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# Copyright (C) 2016-2019 Andrew Hamilton. All rights reserved.
|
||||
# Licensed under the Artistic License 2.0.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue