Skip to contentSkip to conversation

Drop support for Python 3.7?

DISCUSSION Stefan Weil via 3 participants 3 messages Aug 13, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

I just saw that the documentation still mentions that QEMU supports Python 3.7.

Python 3.7 is an unsupported Python version since about one year. Therefore I suggest to update the documentation for QEMU 9.1.0 and replace 3.7 by 3.8 as lowest supported version.

In addition the code which still mentions Python 3.7 or even 3.5 and 3.6 could be reviewed and maybe simplified, but I think this is less urgent and can be done after QEMU release 9.1.0.

Regards
Stefan W.

$ git grep -i python.*3.7
docs/about/build-platforms.rst:  As of QEMU |version|, the minimum supported version of Python is 3.7.
python/qemu/qmp/util.py:Python 3.7+.
scripts/qapi/introspect.py:    # TODO: Remove after Python 3.7 adds @dataclass:
scripts/qapi/source.py:    # Replace with @dataclass in Python 3.7+
tests/qapi-schema/test-qapi.py:        # dict (requires Python 3.7)
#1 lore raw

Hi Stefan,

Quoted 3 lines · Stefan Weil via

Hi,

I just saw that the documentation still mentions that QEMU supports Python 3.7.

Oops.

Quoted 1 line

Python 3.7 is an unsupported Python version since about one year. Therefore I suggest to update the documentation for QEMU 9.1.0 and replace 3.7 by 3.8 as lowest supported version.

Indeed, we dropped support for Python 3.7 one year ago, in commit ca056f4499 (May 3, 2023):

Our supported build platforms as of today all support at least 3.8 [...]
Since it is safe under our supported platform policy, bump our minimum supported version of Python to 3.8.

Quoted 13 lines

In addition the code which still mentions Python 3.7 or even 3.5 and 3.6 could be reviewed and maybe simplified, but I think this is less urgent and can be done after QEMU release 9.1.0.

Regards
Stefan W.

$ git grep -i python.*3.7
docs/about/build-platforms.rst:  As of QEMU |version|, the minimum supported version of Python is 3.7.
python/qemu/qmp/util.py:Python 3.7+.
scripts/qapi/introspect.py:    # TODO: Remove after Python 3.7 adds 
@dataclass:
scripts/qapi/source.py:    # Replace with @dataclass in Python 3.7+
tests/qapi-schema/test-qapi.py:        # dict (requires Python 3.7)
#2 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé

Hi Stefan,

Quoted 4 lines · Stefan Weil via

Hi,

I just saw that the documentation still mentions that QEMU supports Python 3.7.

Oops.

Oops indeed, we just missed a spot. My apologies.

Quoted 4 lines
Quoted 3 lines

Python 3.7 is an unsupported Python version since about one year. Therefore I suggest to update the documentation for QEMU 9.1.0 and replace 3.7 by 3.8 as lowest supported version.

Quoted 25 lines

Indeed, we dropped support for Python 3.7 one year ago, in commit ca056f4499 (May 3, 2023):

Our supported build platforms as of today all support at least 3.8 [...]
Since it is safe under our supported platform policy, bump our minimum supported version of Python to 3.8.

Quoted 16 lines

In addition the code which still mentions Python 3.7 or even 3.5 and 3.6 could be reviewed and maybe simplified, but I think this is less urgent and can be done after QEMU release 9.1.0.

Regards
Stefan W.

$ git grep -i python.*3.7
docs/about/build-platforms.rst:  As of QEMU |version|, the minimum
supported version of Python is 3.7.
python/qemu/qmp/util.py:Python 3.7+.
scripts/qapi/introspect.py:    # TODO: Remove after Python 3.7 adds
@dataclass:
scripts/qapi/source.py:    # Replace with @dataclass in Python 3.7+
tests/qapi-schema/test-qapi.py:        # dict (requires Python 3.7)

And this is harmless; but I'll send a patch to update it. I *did* forget.

Thanks,
~~js

Quoted 1 line