Skip to content

Commit fb5a1af

Browse files
committed
bump min required Python version to 3.10
1 parent 3aac8ff commit fb5a1af

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.cirrus.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ task:
1010
TOXENV: py3
1111
ELECTRUM_PYTHON_NAME: python3
1212
matrix:
13-
- env:
14-
ELECTRUM_PYTHON_VERSION: 3.9
1513
- env:
1614
ELECTRUM_PYTHON_VERSION: 3.10
1715
- env:
@@ -85,11 +83,11 @@ task:
8583
locale_script:
8684
- contrib/push_locale
8785
env:
88-
ELECTRUM_IMAGE: python:3.9
86+
ELECTRUM_IMAGE: python:3.10
8987
ELECTRUM_REQUIREMENTS_CI: contrib/requirements/requirements-ci.txt
9088
# in addition, crowdin_api_key is set as an "override" in https://cirrus-ci.com/settings/...
9189
depends_on:
92-
- "unittests: Tox Python 3.9"
90+
- "unittests: Tox Python 3.10"
9391
only_if: $CIRRUS_BRANCH == 'master'
9492

9593
task:
@@ -156,7 +154,7 @@ task:
156154
flake8_script:
157155
- flake8 . --count --select="$ELECTRUM_LINTERS" --ignore="$ELECTRUM_LINTERS_IGNORE" --show-source --statistics --exclude "*_pb2.py,electrum/_vendor/"
158156
env:
159-
ELECTRUM_IMAGE: python:3.9
157+
ELECTRUM_IMAGE: python:3.10
160158
ELECTRUM_REQUIREMENTS: contrib/requirements/requirements.txt
161159
matrix:
162160
- name: "linter: Flake8 Mandatory"
@@ -212,7 +210,7 @@ task:
212210
CIRRUS_WORKING_DIR: /opt/wine64/drive_c/electrum
213211
CIRRUS_DOCKER_CONTEXT: contrib/build-wine
214212
depends_on:
215-
- "unittests: Tox Python 3.9"
213+
- "unittests: Tox Python 3.10"
216214

217215
task:
218216
name: "build: Android (QML $APK_ARCH)"
@@ -246,7 +244,7 @@ task:
246244
binaries_artifacts:
247245
path: "dist/*"
248246
depends_on:
249-
- "unittests: Tox Python 3.9"
247+
- "unittests: Tox Python 3.10"
250248

251249
## mac build disabled, as Cirrus CI no longer supports Intel-based mac builds
252250
#task:
@@ -309,7 +307,7 @@ task:
309307
env:
310308
CIRRUS_DOCKER_CONTEXT: contrib/build-linux/appimage
311309
depends_on:
312-
- "unittests: Tox Python 3.9"
310+
- "unittests: Tox Python 3.10"
313311

314312
task:
315313
container:
@@ -332,12 +330,12 @@ task:
332330
env:
333331
OMIT_UNCLEAN_FILES: 1
334332
depends_on:
335-
- "unittests: Tox Python 3.9"
333+
- "unittests: Tox Python 3.10"
336334

337335
task:
338336
name: "check submodules"
339337
container:
340-
image: python:3.9
338+
image: python:3.10
341339
cpu: 1
342340
memory: 1G
343341
fetch_script:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```
44
Licence: MIT Licence
55
Author: Thomas Voegtlin
6-
Language: Python (>= 3.8)
6+
Language: Python (>= 3.10)
77
Homepage: https://electrum.org/
88
```
99

contrib/freeze_packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contrib=$(dirname "$0")
88

99
# note: we should not use a higher version of python than what the binaries bundle
1010
if [[ ! "$SYSTEM_PYTHON" ]] ; then
11-
SYSTEM_PYTHON=$(which python3.8) || printf ""
11+
SYSTEM_PYTHON=$(which python3.10) || printf ""
1212
else
1313
SYSTEM_PYTHON=$(which $SYSTEM_PYTHON) || printf ""
1414
fi

run_electrum

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import os
2727
import sys
2828

2929

30-
MIN_PYTHON_VERSION = "3.8.0" # FIXME duplicated from setup.py
30+
MIN_PYTHON_VERSION = "3.10.0" # FIXME duplicated from setup.py
3131
_min_python_version_tuple = tuple(map(int, (MIN_PYTHON_VERSION.split("."))))
3232

3333

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages
1313
from setuptools.command.install import install
1414

15-
MIN_PYTHON_VERSION = "3.8.0"
15+
MIN_PYTHON_VERSION = "3.10.0"
1616
_min_python_version_tuple = tuple(map(int, (MIN_PYTHON_VERSION.split("."))))
1717

1818

0 commit comments

Comments
 (0)