-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove python 3.11 dependencies #154
Conversation
Usually for ENV variables nonempty (except "false", "no" or "0") are treated as truthful. |
I would create a new function for conversion, something like: def str2bool(v: str) -> bool:
return str(v).lower() in ("yes", "true", "t", "1", "on") |
FYI. workflows https://github.com/3scale-qe/3scale-api-python/tree/master/.github/workflows should be changed and tested with are locked to Python 3.11 and I think they should be checked with newer Python before this PR is merged. |
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.
Check workflows and Python 3.12 availability in Linux image which is used in workflows.
As I remember we do not want to upgrade to 3.12 yet, this code works for 3.11 and 3.12, so should be fine to merge as is. |
@mkudlej can we merge it ? Tried with 3.11 and 3.12 should be working with both versions and image will be created with 3.11 |
strbool is deprecated in new version of python.