sdk/python/v0.13.0
版本发布时间: 2024-09-11 23:43:28
dagger/dagger最新发布版本:v0.13.5(2024-10-11 06:27:38)
sdk/python/v0.13.0 - 2024-09-11
This SDK uses 🚙 Engine + 🚗 CLI version v0.13.0
. See what changed in that release.
🐍 https://pypi.org/project/dagger-io/v0.13.0/ 📖 https://dagger-io.readthedocs.io/en/sdk-python-v0.13.0/
Changed
-
Use
uv.lock
by default in new Dagger Modules by @helderco in https://github.com/dagger/dagger/pull/8311
Simpler workflow with uv:dagger init --sdk=python my-module cd my-module uv run vim .
To replace
uv.lock
withrequirements.lock
:uv export --no-dev --no-emit-workspace --no-emit-package=dagger-io -o requirements.lock uv remove dagger-io rm uv.lock
To migrate an existing module to
uv.lock
:dagger develop uv add --editable ./sdk uv run vim .
If both files exist,
uv.lock
will take precedence. -
Modules run in Python 3.12 by default by @helderco in https://github.com/dagger/dagger/pull/8311
To pin to Python 3.11 in a module, either changerequires-python = ">=3.11"
inpyproject.toml
or create a.python-version
file with3.11
as the content.
Fixed
- Fix adding documentation to a constructor-only argument (
dataclasses.InitVar
) by @helderco in https://github.com/dagger/dagger/pull/8357
Note thatInitVar
should be the outer most type in order to be processed correctly bydataclasses.dataclass()
:>>> url: dataclasses.InitVar[Annotated[str, Doc("Some URL")]]
- Fix
dagger.Ignore
when used in object attributes (dataclass field) by @helderco in https://github.com/dagger/dagger/pull/8359
Dependencies
- Bump Engine to v0.13.0 by @jedevc in https://github.com/dagger/dagger/pull/8408
What to do next
- Read the documentation
- Join our Discord server
- Follow us on Twitter