From 609c9903473b139fdf1b2ed02b9c93b648eeea8c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 Mar 2020 13:51:23 +1300 Subject: [PATCH] Require Python 3.6 for Samba 4.13 This allows Samba to use formatted string literals, which are quite handy. REF: https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep498 Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- WHATSNEW.txt | 11 +++++++++++ buildtools/wafsamba/samba_python.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 93341756593..e9b269209f0 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -16,6 +16,17 @@ UPGRADING NEW FEATURES/CHANGES ==================== +Python 3.6 Required +------------------- + +Samba's minimum runtime requirement for python was raised to Python +3.5 with samba 4.12. Samba 4.13 raises this minimum version to Python +3.6 both to access new features and because this is the oldest version +we test with in our CI infrastructure. + +(Build time support for the file server with Python 2.6 has not +changed) + REMOVED FEATURES ================ diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index 0b96a81ff41..994190fdeb2 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -5,7 +5,7 @@ from waflib import Build, Logs, Utils, Configure, Errors from waflib.Configure import conf @conf -def SAMBA_CHECK_PYTHON(conf, version=(3,5,0)): +def SAMBA_CHECK_PYTHON(conf, version=(3,6,0)): if conf.env.disable_python: version=(2,6,0)