daca@home client: Require at least Python 3 from now on (#2491)

This makes it possible to implement new features like .tar.xz support
(see https://trac.cppcheck.net/ticket/9508) or aborting endlessly
running analysis via timeout (see
https://sourceforge.net/p/cppcheck/discussion/development/thread/86813a8a53/).
This commit is contained in:
Sebastian 2020-01-16 20:01:46 +01:00 committed by GitHub
parent 272fbfeb74
commit cd9ec5aac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 13 deletions

View File

@ -105,13 +105,12 @@ matrix:
- pylint --rcfile=pylintrc_travis addons/*.py - pylint --rcfile=pylintrc_travis addons/*.py
- pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport - pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
- pylint --rcfile=pylintrc_travis htmlreport/*.py - pylint --rcfile=pylintrc_travis htmlreport/*.py
- pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py tools/*.py - pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py --ignore=donate-cpu.py --ignore=donate_cpu_lib.py --ignore=test-my-pr.py tools/*.py
- python3 -m pylint --rcfile=pylintrc_travis addons/*.py - python3 -m pylint --rcfile=pylintrc_travis addons/*.py
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport - python3 -m pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py - python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py
- python3 -m pylint --rcfile=pylintrc_travis tools/*.py - python3 -m pylint --rcfile=pylintrc_travis tools/*.py
# check python syntax by compiling some selected scripts # check python syntax by compiling some selected scripts
- python -m py_compile ./tools/donate-cpu.py
- python3 -m py_compile ./tools/donate-cpu.py - python3 -m py_compile ./tools/donate-cpu.py
- python3 -m py_compile ./tools/donate-cpu-server.py - python3 -m py_compile ./tools/donate-cpu-server.py
# check addons/misc.py # check addons/misc.py

View File

@ -102,19 +102,13 @@ for arg in sys.argv[1:]:
sys.exit(1) sys.exit(1)
if sys.version_info.major < 3: if sys.version_info.major < 3:
print("#" * 80)
print("#" * 80) print("#" * 80)
print("IMPORTANT") print("IMPORTANT")
print("Please consider switching to Python 3.") print("Python 2 is no longer supported!")
print("") print("Please run the client with Python 3, thanks!")
print("We plan to completely drop Python 2 support")
print("for the Donate CPU client in the near future.")
print("")
print("For further information and reporting complaints, ideas, ... see:")
print("https://sourceforge.net/p/cppcheck/discussion/development/thread/86813a8a53/")
print("#" * 80) print("#" * 80)
print("#" * 80) time.sleep(2)
time.sleep(5) sys.exit(1)
print('Thank you!') print('Thank you!')
if not check_requirements(): if not check_requirements():

View File

@ -23,7 +23,7 @@ ftp://ftp.se.debian.org/debian/pool/main/0/0xffff/0xffff_0.8.orig.tar.gz
ftp://ftp.se.debian.org/debian/pool/main/a/actionaz/actionaz_3.8.0.orig.tar.gz ftp://ftp.se.debian.org/debian/pool/main/a/actionaz/actionaz_3.8.0.orig.tar.gz
) )
for python_exec in "python" "python3" for python_exec in "python3"
do do
for test_package in "${test_packages[@]}" for test_package in "${test_packages[@]}"
do do