Skip to content

Conversation

dicej
Copy link
Collaborator

@dicej dicej commented Nov 27, 2024

This adds support for fermyon:[email protected] worlds, while still using the 2.0.0 worlds by default. Apps may opt-in to using a 3.0.0 world by specifying e.g. --world fermyon:spin/[email protected] as part of their componentize-py command in their spin.toml file.

This also updates to componentize-py v0.16.0 (which includes bytecodealliance/componentize-py#128, a feature required for compatibility with earlier SDK releases).

@dicej
Copy link
Collaborator Author

dicej commented Nov 27, 2024

Leaving this as a draft until componentize-py v0.16.0 is available. EDIT: done.

@dicej dicej marked this pull request as ready for review November 27, 2024 21:37
This adds support for fermyon:[email protected] worlds, while still using the 2.0.0
worlds by default.  Apps may opt-in to using a 3.0.0 world by specifying
e.g. `--world fermyon:spin/[email protected]` as part of their `componentize-py`
command in their `spin.toml` file.

This also updates to `componentize-py` v0.16.0 (which includes
bytecodealliance/componentize-py#128, a feature required
for compatibility with earlier SDK releases).

Signed-off-by: Joel Dice <[email protected]>
@dicej
Copy link
Collaborator Author

dicej commented Nov 27, 2024

99.9% of the changes here are in generated code and docs. The main things to note are the newly-added WIT files and the componentize-py version updates.

@karthik2804
Copy link
Contributor

The PR looks great. Do we also want to add some wrapping code in the SDK for postgres v3 like we have been doing?
https://github.com/fermyon/spin-python-sdk/blob/main/src/spin_sdk/postgres.py

@dicej
Copy link
Collaborator Author

dicej commented Dec 2, 2024

The PR looks great. Do we also want to add some wrapping code in the SDK for postgres v3 like we have been doing? https://github.com/fermyon/spin-python-sdk/blob/main/src/spin_sdk/postgres.py

Yeah, but let's leave that for a separate PR. This one's big enough already.

@dicej dicej merged commit dd764ad into spinframework:main Dec 3, 2024
1 check passed
@dicej dicej deleted the spin3-support branch December 3, 2024 18:06
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.

2 participants