GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python SDK: align default image by eunomie · Pull Request #13027 · dagger/dagger

Conversation

@eunomie

@eunomie eunomie commented Apr 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Align the default Python image

Today the SDK pins its base image to Python 3.14.3, but the template pyproject.toml we drop into a new module sets requires-python = ">=3.13". The runtime reads that and asks the engine for python:3.13-slim, which is a different image from the one the SDK ships with — so a fresh init pulls both 3.13 and 3.14.3.

This PR:

  • Bumps the template to requires-python = ">=3.14".
  • Switches the SDK's Dockerfile tag from python:3.14.3-slim to the moving python:3.14-slim (same digest, so nothing else changes).

With those two changes lined up, the runtime resolves the template's request to the same digest the SDK already has, and only one image is pulled.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@eunomie
eunomie requested a review from a team as a code owner April 24, 2026 09:08
@eunomie
eunomie requested a review from TomChv April 24, 2026 09:19
@eunomie
eunomie force-pushed the py-improvements branch from f8a22af to 27a5a7e Compare April 24, 2026 09:38
@eunomie
eunomie requested a review from a team as a code owner April 24, 2026 09:38
TomChv
TomChv approved these changes Apr 24, 2026
View reviewed changes

@TomChv TomChv left a comment

Copy link
Copy Markdown
Member

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.

LGTM, please add a changie entry so users are notified about the version bump from v3.13 to v3.14 inside the runtime.

It shouldn't change much but worth notifying :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eunomie reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@eunomie
fix(sdk/python): align default Python image with module template
5be9fba
The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie force-pushed the py-improvements branch from edf1336 to ee21984 Compare April 24, 2026 14:28
tiborvass
tiborvass reviewed Apr 24, 2026
View reviewed changes
Comment thread sdk/python/runtime/pyproject_test.go Outdated
"github.com/stretchr/testify/require"
)

func TestCleanSDKPyproject(t *testing.T) {

@tiborvass tiborvass Apr 24, 2026

Copy link
Copy Markdown
Contributor

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.

this test is useless

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tiborvass tiborvass Apr 24, 2026

Copy link
Copy Markdown
Contributor

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.

it's unmarshalling hardcoded strings

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eunomie eunomie Apr 24, 2026

Copy link
Copy Markdown
Member Author

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.

it verifies cleanSDKPyproject is removing the right sections and the others are still there, but I'm fine removing it, it's not like if the code was complex here

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tiborvass tiborvass Apr 24, 2026

Copy link
Copy Markdown
Contributor

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.

Ah right.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tiborvass
tiborvass approved these changes Apr 24, 2026
View reviewed changes
@eunomie
changie entry
7782514
Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie force-pushed the py-improvements branch from ee21984 to 7782514 Compare April 24, 2026 16:51
@eunomie eunomie changed the title Python SDK: align default image and trim files exported to the host Python SDK: align default image Apr 24, 2026
tiborvass
tiborvass approved these changes Apr 24, 2026
View reviewed changes
@tiborvass
tiborvass merged commit 85beba2 into dagger:main Apr 24, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

grouville pushed a commit to grouville/dagger that referenced this pull request Apr 28, 2026
@eunomie @grouville
Python SDK: align default image (dagger#13027)
0487097
* fix(sdk/python): align default Python image with module template

The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>

* changie entry

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
tiborvass pushed a commit that referenced this pull request Apr 30, 2026
@eunomie @tiborvass
Python SDK: align default image (#13027)
5d62cdd
* fix(sdk/python): align default Python image with module template

The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>

* changie entry

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 85beba2)
Signed-off-by: Tibor Vass <[email protected]>
tiborvass pushed a commit that referenced this pull request Apr 30, 2026
@eunomie @tiborvass
Python SDK: align default image (#13027)
ede18a0
* fix(sdk/python): align default Python image with module template

The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>

* changie entry

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 85beba2)
Signed-off-by: Tibor Vass <[email protected]>
tiborvass pushed a commit that referenced this pull request May 2, 2026
@eunomie @tiborvass
Python SDK: align default image (#13027)
0947c25
* fix(sdk/python): align default Python image with module template

The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>

* changie entry

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 85beba2)
Signed-off-by: Tibor Vass <[email protected]>
@eunomie
eunomie deleted the py-improvements branch May 4, 2026 13:41
tiborvass pushed a commit that referenced this pull request May 4, 2026
@eunomie @tiborvass
Python SDK: align default image (#13027)
4e77641
* fix(sdk/python): align default Python image with module template

The base Dockerfile pins python:3.14.3-slim while the runtime template
sets requires-python = ">=3.13". Discovery.parseBaseImage derives a
python:3.13-slim image from the template, which differs from the SDK
default (3.14.3-slim) and causes both images to be pulled on
`dagger init --sdk=python` or `dagger develop`.

Switch the Dockerfile tag to the moving 3.14-slim tag (digest unchanged)
and bump the template's requires-python to ">=3.14". With the moving
tag, Image.Equal matches the derived "python:3.14-slim" against the
default "python:3.14-slim@sha256:...", so the digest-pinned default is
reused and only one image is pulled.

When generating the template on init, substitute the discovered Python
version (e.g. from .python-version) into requires-python so a user who
pinned an older runtime doesn't end up with a freshly-created pyproject
that demands 3.14 against a 3.13 container — uv would refuse to lock.

Update the integration test that asserts the default Python version and
the corresponding docs snippet to reflect the new 3.14 default.

Signed-off-by: Yves Brissaud <[email protected]>

* changie entry

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 85beba2)
Signed-off-by: Tibor Vass <[email protected]>
@tiborvass tiborvass mentioned this pull request May 4, 2026
chore: prep for v0.20.7 #13069
Merged
@BrewTestBot BrewTestBot mentioned this pull request May 4, 2026
dagger 0.20.7 Homebrew/homebrew-core#280811
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tiborvass tiborvass tiborvass approved these changes
@TomChv TomChv TomChv approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@eunomie @tiborvass @TomChv
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.