Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running on Python 3.12 #297

Merged
merged 6 commits into from
Jan 27, 2024
Merged

Fix running on Python 3.12 #297

merged 6 commits into from
Jan 27, 2024

Conversation

tohojo
Copy link
Owner

@tohojo tohojo commented Jan 26, 2024

The distutils module was deprecated in Python 3.12, so let's stop using it.

Fixes #296.

Python 3.12 deprecated the distutils module, which we use to check the version
of matplotlib and error out if it's too old. Arguably, this is a bit overkill
anyway, so replace it with a simple check of the major version by splitting the
version string on periods.

While we're at it, also reject matplotlib version 2.*, since we already removed
that from CI testing.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Update the test matrix to include the latest versions of Python and Matplotlib.
Also update the excluded combinations to exclude old matplotlib versions with
Python 3.11 and 3.12, and to exclude Python 3.8 for matplotlib 3.8.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Starting with Python 3.12, setuptools is no longer installed by default. Install
it explicitly with pip as part of the selftest setup.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Some tests are flaky because of subprocess exit handling. Add more complete
handling of the possible return values from os.waitpid() to be able to debug
the cause of this flakiness.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
The dash-separated test-suite config key is deprecated in favour of test_suite.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Some of the test matrix combinations causes segfaults in the forking test
runner when using PySide2. Exclude these tests from the test matrix for now;
they can be reinstated if the segfault is fixed.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
@tohojo tohojo merged commit 34a977d into master Jan 27, 2024
58 checks passed
@tohojo tohojo deleted the python-312-fix branch January 27, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flent and python 3.12
1 participant