-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Implement Python 3.12 compatible loader. Fixes #130. #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Some comments inline plus these:
- Add a changelog entry in
Version UNRELEASED
section indocs/index.rst
for this - In
.github/workflows/build.yaml
, change[email protected]
to[email protected]
- As some of these loader features were only introduced in a Python version >= 3.3, we should bump the minimum version in
README.md
to Python 3.8, as everything before that is end-of-life (+ add to the changelog)
src/qrc_importer.py
Outdated
def create_module(self, spec): | ||
return None | ||
|
||
def exec_module(self, module): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know Python's import System well enough. Maybe https://docs.python.org/3.11/library/importlib.html#importlib.abc.SourceLoader could be used instead of having to manually exec stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have managed to rewrite it back to the SourceLoader
, let me know what you think.
@thp Is there anything you miss here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
@thp you plan to tag a release including this fix? fixes yubikey-manager-qt 😊 |
|
No description provided.