Skip to content

Commit 9c69d9a

Browse files
committed
Drop support for python < 3.10
It's time, there are nice features added by 3.8, 3.9, and 3.10. We're also forced to pin mypy, meaning we don't get access to mypy and typeshed fixes.
1 parent e4e2644 commit 9c69d9a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/markdown/Release-notes-for-1.10.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,9 @@ Previously, [[@custom_tgt]] were accepted but silently ignored, and
287287

288288
Now, they both can be used, and the generated outputs will be scanned to extract
289289
translation strings.
290+
291+
## Last major version supporting Python 3.7, 3.8, and 3.9
292+
293+
Python older than 3.10 is now EOL, and Meson will drop support for these
294+
versions in the next major release, and will freely use features from 3.8, 3.9
295+
and 3.10. Support for these versions will remain for the 1.10.x series.

mesonbuild/mesonmain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def run(self, args: T.List[str]) -> int:
187187
# support for old python. If this is already the oldest supported version, then
188188
# this can never be true and does nothing.
189189
pending_python_deprecation_notice = \
190-
command in {'setup', 'compile', 'test', 'install'} and sys.version_info < (3, 7)
190+
command in {'setup', 'compile', 'test', 'install'} and sys.version_info < (3, 10)
191191

192192
try:
193193
return options.run_func(options)
@@ -198,8 +198,8 @@ def run(self, args: T.List[str]) -> int:
198198
mlog.warning('Running the setup command as `meson [options]` instead of '
199199
'`meson setup [options]` is ambiguous and deprecated.', fatal=False)
200200
if pending_python_deprecation_notice:
201-
mlog.notice('You are using Python 3.6 which is EOL. Starting with v0.62.0, '
202-
'Meson will require Python 3.7 or newer', fatal=False)
201+
mlog.notice(f'You are using Python 3.{sys.version_info.minor} which is EOL. Starting with v1.11.0, '
202+
'Meson will require Python 3.10 or newer', fatal=False)
203203
mlog.shutdown()
204204

205205
def run_script_command(script_name: str, script_args: T.List[str]) -> int:

0 commit comments

Comments
 (0)