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

avocado/core/loader.py: support Python 3.12 by using importlib #5727

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

clebergnu
Copy link
Contributor

The imp module is no longer available on Python 3.12. Besides enabling usage under Python 3.12, also works as a backport for a test file location import fix.

This also enables RPM builds under Fedora 39.

Reference: #5686
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2220126

The imp module is no longer available on Python 3.12.  Besides
enabling usage under Python 3.12, also works as a backport for
a test file location import fix.

This also enables RPM builds under Fedora 39.

Reference: avocado-framework#5686
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2220126
Signed-off-by: Cleber Rosa <[email protected]>
@clebergnu clebergnu self-assigned this Jul 13, 2023
urllib3 is a dependency of requests, which is a dependency of
resultsdb_api.  Because there's no pinning of version elsewhere, a
version that is incompatible with Python 3.6 can end being installed.

Signed-off-by: Cleber Rosa <[email protected]>
There are API changes in versions 6.0 and later that (at the very
least) trigger lint errors.  Let's be safe and use known compatible
versions.

Signed-off-by: Cleber Rosa <[email protected]>
@clebergnu clebergnu requested a review from richtja July 14, 2023 15:18
Copy link
Contributor

@richtja richtja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @clebergnu, it is LGTM, but there are still some pending jobs left.

It seems there are no workers available using the old macOS version.
Let's bump to the one being used on the latest Avocado along with the
Python version it uses.

Signed-off-by: Cleber Rosa <[email protected]>
@clebergnu
Copy link
Contributor Author

Hi @clebergnu, it is LGTM, but there are still some pending jobs left.

CI is now happy! Thanks for the review!

@clebergnu clebergnu merged commit 470a6df into avocado-framework:92lts Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants