Skip to content

Python package updates - #10976

Merged
helderco merged 4 commits into
dagger:mainfrom
helderco:python-gql-upgrade
Sep 3, 2025
Merged

helderco merged 4 commits into
dagger:mainfrom
helderco:python-gql-upgrade

Conversation

@helderco

@helderco helderco commented Sep 3, 2025 •

Copy link
Copy Markdown
Contributor

General package updates, and fix for gql v4 (follow-up to #10888).

Main gql related changes:

  • httpx errors are now captured under gql.TransportConnectionFailed
  • Removed dagger.ExecuteTimeoutError because I don't see the need for its own exception
  • dsql_gql now returns a gql.GraphQLRequest instead of graphql.DocumentNode but affected code is considered private/internal

Other notes:

  • I wanted to rename dagger.TransportError to dagger.ClientRequestError but was concerned about a possible breaking change. Not sure if people catch it. I could deprecate the old name through an alias but decided not to bother for now.
  • This supercedes chore(deps): update gql[httpx] requirement from ~=3.5.0 to >=3.5,<4.1 in /sdk/python in the sdk-python group #10942
  • It's best practice for a library to constrain on the minimum version and not upper. To avoid the breaking change from gql 4.0 in the future I'd rather do something else, like copy uv.lock from template rather than re-compute on every dagger init.

@helderco helderco added this to the v0.18.17 milestone Sep 3, 2025
@helderco
helderco requested a review from a team as a code owner September 3, 2025 00:07
@helderco helderco added the kind/dependencies Pull requests that update a dependency file label Sep 3, 2025

@TomChv TomChv left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this be a breaking change for users that may have installed the gql[httpx] in their module dep?

Otherwise changes LGTM, please create a changelog if this change affect users

Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
@helderco
helderco merged commit 7779266 into dagger:main Sep 3, 2025
@helderco
helderco deleted the python-gql-upgrade branch September 3, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants