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 Python 3.8 compatibility #475

Merged
merged 2 commits into from
Jul 13, 2023
Merged

Fix Python 3.8 compatibility #475

merged 2 commits into from
Jul 13, 2023

Conversation

Lorak-mmk
Copy link
Contributor

@Lorak-mmk Lorak-mmk commented Jul 13, 2023

Recent change introduced typing that is incompatible with Python < 3.9. There are other Scylla projects relying on CCM (e.g. most drivers) and for some of them this change caused CI failures (as of now - for Rust driver and Python driver).

This PR fixes the problem by making this typing compatible with older Python versions.
It also adds CI that runs on older Python. I wanted it to be 3.6, because that's the oldest version supported by Python driver, but it seems this version can't be installed by setup-python@v4 action, so I bumped it to 3.8

`list[x]` only works from Python 3.9 upwards, not in Python 3.8,
which caused CI fails in rust driver and python driver.
@Lorak-mmk Lorak-mmk force-pushed the fix-python38 branch 2 times, most recently from 7f5b4f8 to 9cb443c Compare July 13, 2023 13:12
@fruch
Copy link
Contributor

fruch commented Jul 13, 2023

@Lorak-mmk we are not running python-driver integration tests with all versions of python (only the unittests)

I'm o.k. with doing 3.8 and up.

but we should upgrade CI where it's relevent to to 3.9 at least

To ensure compatibility and minimize problems for other projects,
ccm should be tested with older python too.
@fruch fruch merged commit 665f699 into scylladb:next Jul 13, 2023
2 checks passed
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.

2 participants