-
Notifications
You must be signed in to change notification settings - Fork 36
Add support for python 3.14 #744
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
base: main
Are you sure you want to change the base?
Conversation
I'm not too fond of reinventing the wheel but we only have one use of this and I don't feel like adding yet another dependency for something that's 20 lines of code... This is necessary to get scriptworker to work with python3.14
This fixes python 3.14 compatibility. `get_event_loop` used to create an event loop if there wasn't any but 3.14 changed that behavior so we have to explicitely create one now
There's no `0.7.9-python3.14-bookworm-slim` image but there is a `0.9.16-python3.14-bookworm-slim` one.
ahal
left a comment
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
| import logging | ||
| import re | ||
|
|
||
| from aiomemoizettl import memoize_ttl |
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.
+1
| _BRANCH_COMMITS_CACHE_TTL_IN_SECONDS = 10 * 60 # 10 minutes | ||
| _fetch_github_branch_commits_data = memoize_ttl(_fetch_github_branch_commits_data_helper, get_ttl=lambda _: _BRANCH_COMMITS_CACHE_TTL_IN_SECONDS) | ||
| async def _fetch_github_branch_commits_data(context, repo_html_url, revision): | ||
| cache_key = (id(context), repo_html_url, revision) |
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.
Per the previous comment we don't actually want the context in here? Probably safer to keep it at least for this commit, but might still warrant a comment?
I kept
_fetch_github_branch_commits_databecause the solution in #731 isn't working well with forks.Supersedes #731
Fixes #729