Skip to content

Python 3.11 - Using uv and bump dependencies for 3.11 - #271

Merged
asheshvidyut merged 32 commits into
grpc:mainfrom
asheshvidyut:upgrade-to-python-3.14
Jul 31, 2026
Merged

Python 3.11 - Using uv and bump dependencies for 3.11#271
asheshvidyut merged 32 commits into
grpc:mainfrom
asheshvidyut:upgrade-to-python-3.14

Conversation

@asheshvidyut

@asheshvidyut asheshvidyut commented Jul 27, 2026

Copy link
Copy Markdown
Member

Description

This PR installs uv and then installs Python 3.11 using uv.

Virtual env is also created using uv with Python 3.11.

Testing

@asheshvidyut asheshvidyut changed the title using uv and bump dependencies Using uv and bump dependencies for Python 3.14 Jul 27, 2026
@asheshvidyut asheshvidyut changed the title Using uv and bump dependencies for Python 3.14 Python 3.14 - Using uv and bump dependencies for Python 3.14 Jul 27, 2026
@asheshvidyut asheshvidyut changed the title Python 3.14 - Using uv and bump dependencies for Python 3.14 Python 3.14 - Using uv and bump dependencies for 3.14 Jul 27, 2026
@asheshvidyut asheshvidyut changed the title Python 3.14 - Using uv and bump dependencies for 3.14 Part 1 - Python 3.14 - Using uv and bump dependencies for 3.14 Jul 28, 2026
@asheshvidyut asheshvidyut changed the title Part 1 - Python 3.14 - Using uv and bump dependencies for 3.14 [Part 1] - Python 3.14 - Using uv and bump dependencies for 3.14 Jul 28, 2026
Comment thread framework/helpers/retryers.py
Comment thread framework/test_app/runners/k8s/k8s_base_runner.py
@asheshvidyut asheshvidyut changed the title [Part 1] - Python 3.14 - Using uv and bump dependencies for 3.14 [Part 1] - Python 3.11 - Using uv and bump dependencies for 3.11 Jul 29, 2026
@asheshvidyut asheshvidyut changed the title [Part 1] - Python 3.11 - Using uv and bump dependencies for 3.11 Python 3.11 - Using uv and bump dependencies for 3.11 Jul 29, 2026
@asheshvidyut
asheshvidyut requested a review from sreenithi July 29, 2026 15:00
Comment thread .kokoro/psm_interop_kokoro_lib.sh
Comment thread .kokoro/psm_interop_kokoro_lib.sh
Comment thread requirements.txt Outdated
@asheshvidyut
asheshvidyut requested a review from sreenithi July 30, 2026 14:55

@sreenithi sreenithi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just some last comments

Comment thread .kokoro/psm_interop_kokoro_lib.sh Outdated
Comment thread .kokoro/psm_interop_kokoro_lib.sh
asheshvidyut and others added 3 commits July 30, 2026 21:23
Comment thread bin/freeze.sh Outdated

@pawbhard pawbhard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, Just check once b/529575020, this is the bug because of which upgrade is happening, check if we are updating decency mentioned in bug (If needed check with reporter).

Comment thread framework/helpers/retryers.py
Comment thread .pylintrc Outdated
@arjan-bal
arjan-bal removed their request for review July 31, 2026 06:05
@asheshvidyut

Copy link
Copy Markdown
Member Author

LGTM, Just check once b/529575020, this is the bug because of which upgrade is happening, check if we are updating decency mentioned in bug (If needed check with reporter).

Yes we are updating google-auth-httplib2 to the latest version 0.4.0

@asheshvidyut
asheshvidyut force-pushed the upgrade-to-python-3.14 branch from b5bdc90 to d70a475 Compare July 31, 2026 06:14
@asheshvidyut
asheshvidyut force-pushed the upgrade-to-python-3.14 branch from d70a475 to 0b431f1 Compare July 31, 2026 06:14
@asheshvidyut

Copy link
Copy Markdown
Member Author

Regarding the tenacity_compat.get_exc_info_from_future

This is the PR which drops it - https://github.com/jd/tenacity/pull/304/changes

source code

def get_exc_info_from_future(future):
    """
    Get an exc_info value from a Future.

    Given a a Future instance, retrieve an exc_info value suitable for passing
    in as the exc_info parameter to logging.Logger.log() and related methods.

    On Python 2, this will be a (type, value, traceback) triple.
    On Python 3, this will be an exception instance (with embedded traceback).

    If there was no exception, None is returned on both versions of Python.
    """
    if six.PY3:
        return future.exception()
    else:
        ex, tb = future.exception_info()
        if ex is None:
            return None
        return type(ex), ex, tb

This is called with retry_state.outcome which is already done in the line above. Hence I am just using local_exc_info = ex

Hence no impact as such.

@asheshvidyut
asheshvidyut enabled auto-merge (squash) July 31, 2026 06:18
@asheshvidyut
asheshvidyut merged commit 83fa795 into grpc:main Jul 31, 2026
9 checks 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.

3 participants