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

Remove python 3.11 dependencies #154

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

jakurban
Copy link
Collaborator

strbool is deprecated in new version of python.

@mdujava
Copy link
Contributor

mdujava commented May 20, 2024

Usually for ENV variables nonempty (except "false", "no" or "0") are treated as truthful.

@pestanko
Copy link
Collaborator

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")

dhlavac
dhlavac previously approved these changes May 21, 2024
mdujava
mdujava previously approved these changes May 21, 2024
@jakurban jakurban dismissed stale reviews from mdujava and dhlavac via 2938b86 May 21, 2024 10:11
@jakurban jakurban requested review from dhlavac and mdujava May 21, 2024 10:12
@mkudlej
Copy link
Collaborator

mkudlej commented May 21, 2024

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.

Copy link
Collaborator

@mkudlej mkudlej left a 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.

@mdujava
Copy link
Contributor

mdujava commented May 21, 2024

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.

@dhlavac
Copy link
Contributor

dhlavac commented May 23, 2024

@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

@mkudlej mkudlej self-requested a review May 27, 2024 06:59
@mkudlej mkudlej merged commit d8e240b into 3scale-qe:master May 27, 2024
1 check passed
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.

5 participants