Skip to content

Commit faf70c1

Browse files
author
MarcoFalke
committed
Bump python minimum version to 3.9
1 parent fa8996b commit faf70c1

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.17
1+
3.9.17

ci/test/00_setup_env_native_nowallet_libbitcoinkernel.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_native_nowallet_libbitcoinkernel
10-
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:20.04"
11-
# Use minimum supported python3.8 and clang-10, see doc/dependencies.md
12-
export PACKAGES="python3-zmq clang-10 llvm-10 libc++abi-10-dev libc++-10-dev"
13-
export DEP_OPTS="NO_WALLET=1 CC=clang-10 CXX='clang++-10 -stdlib=libc++'"
10+
export CI_IMAGE_NAME_TAG="docker.io/debian:bullseye"
11+
# Use minimum supported python3.9 and clang-10 (or best-effort clang-11), see doc/dependencies.md
12+
export PACKAGES="python3-zmq clang-11 llvm-11 libc++abi-11-dev libc++-11-dev"
13+
export DEP_OPTS="NO_WALLET=1 CC=clang-11 CXX='clang++-11 -stdlib=libc++'"
1414
export GOAL="install"
1515
export BITCOIN_CONFIG="--enable-reduce-exports --enable-experimental-util-chainstate --with-experimental-kernel-lib --enable-shared"

ci/test/00_setup_env_native_qt5.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_native_qt5
10-
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:20.04"
11-
# Use minimum supported python3.8 and gcc-9, see doc/dependencies.md
10+
export CI_IMAGE_NAME_TAG="docker.io/debian:bullseye"
11+
# Use minimum supported python3.9 and gcc-9, see doc/dependencies.md
1212
export PACKAGES="gcc-9 g++-9 python3-zmq qtbase5-dev qttools5-dev-tools libdbus-1-dev libharfbuzz-dev"
1313
export DEP_OPTS="NO_QT=1 NO_UPNP=1 NO_NATPMP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1 CC=gcc-9 CXX=g++-9"
1414
export TEST_RUNNER_EXTRA="--previous-releases --coverage --extended --exclude feature_dbcrash" # Run extended tests so that coverage does not fail, but exclude the very slow dbcrash

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ AC_PATH_TOOL([AR], [ar])
128128
AC_PATH_TOOL([GCOV], [gcov])
129129
AC_PATH_TOOL([LLVM_COV], [llvm-cov])
130130
AC_PATH_PROG([LCOV], [lcov])
131-
dnl Python 3.8 is specified in .python-version and should be used if available, see doc/dependencies.md
132-
AC_PATH_PROGS([PYTHON], [python3.8 python3.9 python3.10 python3.11 python3.12 python3 python])
131+
dnl The minimum supported version is specified in .python-version and should be used if available, see doc/dependencies.md
132+
AC_PATH_PROGS([PYTHON], [python3.9 python3.10 python3.11 python3.12 python3 python])
133133
AC_PATH_PROG([GENHTML], [genhtml])
134134
AC_PATH_PROG([GIT], [git])
135135
AC_PATH_PROG([CCACHE], [ccache])

doc/dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can find installation instructions in the `build-*.md` file for your platfor
1010
| [Automake](https://www.gnu.org/software/automake/) | [1.13](https://github.com/bitcoin/bitcoin/pull/18290) |
1111
| [Clang](https://clang.llvm.org) | [10.0](https://github.com/bitcoin/bitcoin/pull/27682) |
1212
| [GCC](https://gcc.gnu.org) | [9.1](https://github.com/bitcoin/bitcoin/pull/27662) |
13-
| [Python](https://www.python.org) (scripts, tests) | [3.8](https://github.com/bitcoin/bitcoin/pull/27483) |
13+
| [Python](https://www.python.org) (scripts, tests) | [3.9](https://github.com/bitcoin/bitcoin/pull/28211) |
1414
| [systemtap](https://sourceware.org/systemtap/) ([tracing](tracing.md))| N/A |
1515

1616
## Required

test/functional/test_framework/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ def sha256sum_file(filename):
287287
return h.digest()
288288

289289

290-
# TODO: Remove and use random.randbytes(n) instead, available in Python 3.9
290+
# TODO: Remove and use random.randbytes(n) directly
291291
def random_bytes(n):
292292
"""Return a random bytes object of length n."""
293-
return bytes(random.getrandbits(8) for i in range(n))
293+
return random.randbytes(n)
294294

295295

296296
# RPC/P2P connection constants and functions

0 commit comments

Comments
 (0)