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