Move to python3.8.0

This commit is contained in:
Andrew Hamilton 2019-11-06 14:07:33 +10:00
parent a770a3ebc7
commit 04fb17cb3f
26 changed files with 38 additions and 37 deletions

View file

@ -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.7 -m pip install .
# python3.8 -m pip install .
To test its working properly:

View file

@ -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.7/dist-packages:"${PYTHONPATH}"
export PYTHONPATH=/usr/local/lib/python3.8/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} $@

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3.7
#!/usr/bin/python3.8
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# -*- coding: utf-8 -*-
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -33,7 +33,7 @@ import eris.lscolors as lscolors
import eris.termstr as termstr
PYTHON_VERSION = "3.7"
PYTHON_VERSION = "3.8"
PYTHON_EXECUTABLE = "python" + PYTHON_VERSION
CACHE_PATH = ".eris"

View file

@ -49,7 +49,7 @@ tools_for_extensions = [
[python_syntax]
dependencies = []
url = "https://en.wikipedia.org/wiki/Python_syntax_and_semantics"
command = "python3.7 -m py_compile"
command = "python3.8 -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.7 -m pycodestyle"
command = "python3.8 -m pycodestyle"
[pydocstyle]
dependencies = ["pip/pydocstyle"]
url = "http://www.pydocstyle.org/en/2.1.1/usage.html"
command = "python3.7 -m pydocstyle --ignore=D1"
command = "python3.8 -m pydocstyle --ignore=D1"
[pyflakes]
dependencies = ["pip/pyflakes"]
url = "https://pypi.org/project/pyflakes/"
command = "python3.7 -m pyflakes"
command = "python3.8 -m pyflakes"
[pylint]
dependencies = ["pip/pylint"]
url = "https://www.pylint.org/"
command = "python3.7 -m pylint -f colorized --errors-only"
command = "python3.8 -m pylint -f colorized --errors-only"
has_color = true
[python_modulefinder]
dependencies = []
url = "https://docs.python.org/3/library/modulefinder.html"
command = "python3.7 -m modulefinder"
command = "python3.8 -m modulefinder"
success_status = "normal"
[bandit]
dependencies = ["pip/bandit"]
url = "https://pypi.org/project/bandit/"
command = "python3.7 -m bandit.cli.main -f screen"
command = "python3.8 -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.7 -m dis"
command = "python3.8 -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.7 -m yamllint -f colored"
command = "python3.8 -m yamllint -f colored"
has_color = true
[mediainfo]

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2018-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -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.7 util-linux
python3.7 -m pip install pyinotify pygments docopt pillow toml
sudo apt --yes install python3-pip python3.8 util-linux
python3.8 -m pip install pyinotify pygments docopt pillow toml
echo
echo "Installing all the tools eris may need…"
./install-tools

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3.7
#!/usr/bin/python3.8
# 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.7"
python_version = "python3.8"
with tempfile.TemporaryDirectory() as temp_dir:
output = subprocess.check_output(
[python_version, "-m", "pip", "download", "--dest", temp_dir,
@ -394,7 +394,7 @@ def eris_modules():
modules.append({"name": "eris",
"buildsystem": "simple",
"build-commands": [
"python3.7 -m pip install --no-index --prefix=/app .",
"python3.8 -m pip install --no-index --prefix=/app .",
"cp -a tests test-all /app/bin"],
"sources": [{"type": "git", "url": eris_url,
"commit": get_latest_commit()}]})

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# -*- 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.7 -m pip install .
# python3.8 -m pip install .
To test its working properly:

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# -*- coding: utf-8 -*-
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.

View file

@ -0,0 +1 @@
Success: no issues found in 1 source file

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2011, 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2016-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.7
#!/usr/bin/env python3.8
# Copyright (C) 2016-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.