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

Make valkey-py install the correct dependencies in Python 3.11.0 to Python 3.11.3 #92

Merged

Conversation

nirav-ark-biotech
Copy link
Contributor

@nirav-ark-biotech nirav-ark-biotech commented Sep 10, 2024

I just happened to be using Python 3.11.1 while using valkey-py.

The PR #87 broke my CI/CD pipeline (when upgrading to valkey-py 6.1 bc the codebase, in

if sys.version_info >= (3, 11, 3):

just so happens to check whether or not we're 3.11.3 and above.

If you are in Python 3.11.0 - 3.11.2, you go into the else and this code fails if async timeout is not installed

so we need to still to install async-timeout if python version < 3.11.3

Pull Request check-list

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

Description of change

@nirav-ark-biotech nirav-ark-biotech force-pushed the support_python_3.11.0-to-3.11.3 branch from a2f7f5b to e79e8d3 Compare September 10, 2024 21:12
@nirav-ark-biotech nirav-ark-biotech changed the title Make valkey-py usable in Python 3.11.0 to Python 3.11.3 Make valkey-py install the correct dependencies in Python 3.11.0 to Python 3.11.3 Sep 10, 2024
mkmkme
mkmkme previously approved these changes Sep 11, 2024
Copy link
Collaborator

@mkmkme mkmkme left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! It looks good to me.

Two questions:

  1. Did you verify locally that this does fix your problem?
  2. Could you squash the commits into one as the second one is a fixup to the first one?

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.12%. Comparing base (03320e6) to head (0f8b7c0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #92   +/-   ##
=======================================
  Coverage   75.12%   75.12%           
=======================================
  Files         132      132           
  Lines       34398    34398           
=======================================
  Hits        25840    25840           
  Misses       8558     8558           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aiven-sal
Copy link
Member

Hi!
Thanks for reporting and apologies for the inconvenience.
I think that setup.py would also need to be updated.
I'll add a commit here for that, so we can make a new release quickly

Signed-off-by: Nirav Ark <nirav@ark-biotech.com>
setup.py Outdated Show resolved Hide resolved
Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
@aiven-sal aiven-sal force-pushed the support_python_3.11.0-to-3.11.3 branch from f3fc0bb to 0c76703 Compare September 11, 2024 08:07
mkmkme
mkmkme previously approved these changes Sep 11, 2024
Copy link
Collaborator

@mkmkme mkmkme left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@aiven-sal aiven-sal enabled auto-merge September 11, 2024 08:10
@mkmkme mkmkme disabled auto-merge September 11, 2024 08:11
Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
there are some issues with asyncio-timeout in 3.11.1
and 3.11.2
We need to test at least 3.11.1 separatly

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Copy link
Collaborator

@ahmedsobeh ahmedsobeh left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@aiven-sal aiven-sal requested a review from mkmkme September 11, 2024 08:27
@ahmedsobeh ahmedsobeh merged commit 1114d82 into valkey-io:main Sep 11, 2024
85 checks passed
@nirav-ark-biotech
Copy link
Contributor Author

Great, thanks all!

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