bump min required Python version to 3.8
This commit is contained in:
12
.cirrus.yml
12
.cirrus.yml
@@ -10,14 +10,12 @@ task:
|
||||
TOXENV: py3
|
||||
ELECTRUM_PYTHON_NAME: python3
|
||||
matrix:
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3.6
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3.7
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3.8
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3.9
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3.10
|
||||
- env:
|
||||
ELECTRUM_PYTHON_VERSION: 3
|
||||
- env:
|
||||
@@ -80,7 +78,7 @@ task:
|
||||
locale_script:
|
||||
- contrib/push_locale
|
||||
env:
|
||||
ELECTRUM_IMAGE: python:3.7
|
||||
ELECTRUM_IMAGE: python:3.8
|
||||
ELECTRUM_REQUIREMENTS_CI: contrib/requirements/requirements-travis.txt
|
||||
# in addition, crowdin_api_key is set as an "override" in https://cirrus-ci.com/settings/...
|
||||
depends_on:
|
||||
@@ -146,7 +144,7 @@ task:
|
||||
flake8_script:
|
||||
- flake8 . --count --select=$ELECTRUM_LINTERS --show-source --statistics
|
||||
env:
|
||||
ELECTRUM_IMAGE: python:3.7
|
||||
ELECTRUM_IMAGE: python:3.8
|
||||
ELECTRUM_REQUIREMENTS: contrib/requirements/requirements.txt
|
||||
matrix:
|
||||
- name: Flake8 Mandatory
|
||||
@@ -223,7 +221,7 @@ task:
|
||||
task:
|
||||
name: Submodules
|
||||
container:
|
||||
image: python:3.7
|
||||
image: python:3.8
|
||||
cpu: 1
|
||||
memory: 1G
|
||||
fetch_script:
|
||||
|
||||
@@ -5,7 +5,7 @@ Electrum - Lightweight Bitcoin client
|
||||
|
||||
Licence: MIT Licence
|
||||
Author: Thomas Voegtlin
|
||||
Language: Python (>= 3.6)
|
||||
Language: Python (>= 3.8)
|
||||
Homepage: https://electrum.org/
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ contrib=$(dirname "$0")
|
||||
|
||||
# note: we should not use a higher version of python than what the binaries bundle
|
||||
if [[ ! "$SYSTEM_PYTHON" ]] ; then
|
||||
SYSTEM_PYTHON=$(which python3.6) || printf ""
|
||||
SYSTEM_PYTHON=$(which python3.8) || printf ""
|
||||
else
|
||||
SYSTEM_PYTHON=$(which $SYSTEM_PYTHON) || printf ""
|
||||
fi
|
||||
|
||||
@@ -27,7 +27,7 @@ import os
|
||||
import sys
|
||||
|
||||
|
||||
MIN_PYTHON_VERSION = "3.6.1" # FIXME duplicated from setup.py
|
||||
MIN_PYTHON_VERSION = "3.8.0" # FIXME duplicated from setup.py
|
||||
_min_python_version_tuple = tuple(map(int, (MIN_PYTHON_VERSION.split("."))))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user