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

Implement Python 3.12 compatible loader. Fixes #130. #131

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Conversation

apollo13
Copy link
Contributor

No description provided.

Copy link
Owner

@thp thp left a 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 in docs/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 Show resolved Hide resolved
src/qrc_importer.py Outdated Show resolved Hide resolved
def create_module(self, spec):
return None

def exec_module(self, module):
Copy link
Contributor Author

@apollo13 apollo13 Mar 12, 2024

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?

Copy link
Contributor Author

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.

@apollo13
Copy link
Contributor Author

@thp Is there anything you miss here?

Copy link
Owner

@thp thp left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@uaqben
Copy link

uaqben commented May 10, 2024

@thp you plan to tag a release including this fix? fixes yubikey-manager-qt 😊

@thp
Copy link
Owner

thp commented May 18, 2024

@thp you plan to tag a release including this fix? fixes yubikey-manager-qt 😊

PyOtherSide 1.6.1 is now released.

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.

3 participants