release: Move to python3.9
This commit is contained in:
parent
2b0fd6b724
commit
5d553a6542
25 changed files with 40 additions and 40 deletions
|
|
@ -10,6 +10,6 @@ RUN cd eris && git checkout afa6870484e50ad4ba7b8d662c4ed708c29a759b
|
|||
RUN rm -rf eris/.git
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata
|
||||
RUN cd eris && ./install-dependencies
|
||||
RUN python3.8 -m pip install ./eris
|
||||
RUN python3.9 -m pip install ./eris
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
|
|
|
|||
|
|
@ -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.9 -m pip install .
|
||||
# eris -h
|
||||
|
||||
### Flatpak
|
||||
|
|
|
|||
|
|
@ -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.9/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.9
|
||||
|
||||
|
||||
import json
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import pydoc
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ import eris.lscolors as lscolors
|
|||
import eris.termstr as termstr
|
||||
|
||||
|
||||
PYTHON_VERSION = "3.8"
|
||||
PYTHON_VERSION = "3.9"
|
||||
PYTHON_EXECUTABLE = "python" + PYTHON_VERSION
|
||||
CACHE_PATH = ".eris"
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,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.9 -m py_compile"
|
||||
|
||||
[pydoc]
|
||||
dependencies = []
|
||||
|
|
@ -61,34 +61,34 @@ tools_for_extensions = [
|
|||
[pycodestyle]
|
||||
dependencies = ["pip/pycodestyle"]
|
||||
url = "http://pycodestyle.pycqa.org/en/latest/"
|
||||
command = "python3.8 -m pycodestyle"
|
||||
command = "python3.9 -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.9 -m pydocstyle --ignore=D1,D213"
|
||||
|
||||
[pyflakes]
|
||||
dependencies = ["pip/pyflakes"]
|
||||
url = "https://pypi.org/project/pyflakes/"
|
||||
command = "python3.8 -m pyflakes"
|
||||
command = "python3.9 -m pyflakes"
|
||||
|
||||
[pylint]
|
||||
dependencies = ["pip/pylint"]
|
||||
url = "https://www.pylint.org/"
|
||||
command = "python3.8 -m pylint -f colorized --errors-only"
|
||||
command = "python3.9 -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.9 -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.9 -m bandit.cli.main -f screen"
|
||||
has_color = true
|
||||
timeout = 60
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ tools_for_extensions = [
|
|||
[dis]
|
||||
dependencies = []
|
||||
url = "https://docs.python.org/3/library/dis.html"
|
||||
command = "python3.8 -m dis"
|
||||
command = "python3.9 -m dis"
|
||||
success_status = "normal"
|
||||
|
||||
[objdump_headers]
|
||||
|
|
@ -301,7 +301,7 @@ tools_for_extensions = [
|
|||
[yamllint]
|
||||
dependencies = ["pip/yamllint"]
|
||||
url = "https://github.com/adrienverge/yamllint"
|
||||
command = "python3.8 -m yamllint -f colored"
|
||||
command = "python3.9 -m yamllint -f colored"
|
||||
has_color = true
|
||||
|
||||
[mediainfo]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import gzip
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import asyncio
|
||||
|
|
|
|||
|
|
@ -10,8 +10,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.9 util-linux
|
||||
python3.9 -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.9
|
||||
|
||||
|
||||
import subprocess
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3.8
|
||||
#!/usr/bin/python3.9
|
||||
|
||||
|
||||
import json
|
||||
|
|
@ -103,7 +103,7 @@ def haskell_modules(dep):
|
|||
|
||||
|
||||
def python_modules(package):
|
||||
python_version = "python3.8"
|
||||
python_version = "python3.9"
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
output = subprocess.check_output(
|
||||
[python_version, "-m", "pip", "-v", "download", "--dest", temp_dir,
|
||||
|
|
@ -126,7 +126,7 @@ def python_modules(package):
|
|||
|
||||
|
||||
def python_modules_all(packages):
|
||||
python_version = "python3.8"
|
||||
python_version = "python3.9"
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
output = subprocess.check_output(
|
||||
[python_version, "-m", "pip", "-v", "download", "--dest", temp_dir]
|
||||
|
|
@ -420,7 +420,7 @@ def eris_modules():
|
|||
modules.append({"name": "eris",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"python3.8 -m pip install --no-index --prefix=/app .",
|
||||
"python3.9 -m pip install --no-index --prefix=/app .",
|
||||
"cp -a tests test-all /app/bin"],
|
||||
"sources": [{"type": "git", "url": eris_url,
|
||||
"commit": get_latest_commit()}]})
|
||||
|
|
@ -513,7 +513,7 @@ def main():
|
|||
save_manifest(make_manifest(modules, dep), manifest_path)
|
||||
|
||||
manifest_path = os.path.join(manifests_dir, "python.json")
|
||||
dep = "python3.8"
|
||||
dep = "python3.9"
|
||||
print(f"Making manifest for {dep} …".ljust(70), end="", flush=True)
|
||||
if os.path.exists(manifest_path):
|
||||
print(" (cached)")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
|
@ -28,7 +28,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.9 -m pip install .
|
||||
# eris -h
|
||||
|
||||
### Flatpak
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import asyncio
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import pickle
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import contextlib
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.8
|
||||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
import asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue