summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2021-04-15 01:32:40 +0200
committerMike Frysinger <vapier@google.com>2021-06-03 11:34:17 +0000
commita3b2edf1af4854881c763010d1083e8c76ac7535 (patch)
tree0a42ec1a817f733567a4b3d8a4ce533a1380fc30 /main.py
parente253b43e17de114f1efafa9a3e3929f23115ae99 (diff)
downloadgit-repo-a3b2edf1af4854881c763010d1083e8c76ac7535.tar.gz
Drop support for Python 3.5
Running repo with Python 3.5 fails due to the use of the encoding parameter to subprocess.run(). There are also f-strings being used in some of the tests. This drops support for these systems: * Ubuntu Xenial: released Apr 2016, EOS Apr 2021, EOL Apr 2024 * Debian Stretch: released Jun 2017, EOL Jun 2022 So the minimum required distros now are: * Ubuntu Bionic: released Apr 2018 w/Python 3.6 * Debian Buster: released Jul 2019 w/Python 3.7 Change-Id: I1144f7ab6f882b10cac0131982df081fe4ac44f9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303363 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index e399ddce..1f3a7683 100755
--- a/main.py
+++ b/main.py
@@ -71,7 +71,7 @@ from subcmds import all_commands
71# 71#
72# python-3.6 is in Ubuntu Bionic. 72# python-3.6 is in Ubuntu Bionic.
73MIN_PYTHON_VERSION_SOFT = (3, 6) 73MIN_PYTHON_VERSION_SOFT = (3, 6)
74MIN_PYTHON_VERSION_HARD = (3, 5) 74MIN_PYTHON_VERSION_HARD = (3, 6)
75 75
76if sys.version_info.major < 3: 76if sys.version_info.major < 3:
77 print('repo: error: Python 2 is no longer supported; ' 77 print('repo: error: Python 2 is no longer supported; '