GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Python SDK: align default image by eunomie · Pull Request #13027 · dagger/dagger Conversation
|
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func TestCleanSDKPyproject(t *testing.T) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
this test is useless
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah right.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Yves Brissaud <[email protected]>
ee21984 to
7782514
Compare
There was an error while loading. Please reload this page.
* 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]>
* 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]>
* 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]>
* 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]>
* 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]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.