Skip to content

Conversation

@vados-cosmonic
Copy link
Collaborator

This commit fixes a few issues with componentize-py in the Python docs and fixes the docs as well, removing a no-longer-used section.

This commit fixes the discrepancy due to changes in how
`componentize-py` works that have been merged recently.

Both bindings generation and the generated code have changed such that
the guide is no longer correct as to what to import and implement --
the new docs prefer a `wit_world` import which is generated.
This commit removes the section regarding exporting
interfaces (instead of functions) as the code was long ago changed to
use interfaces by default.
Co-authored-by: Wolfgang Meier <womeier@posteo.de>
@vados-cosmonic vados-cosmonic enabled auto-merge (squash) August 4, 2025 10:31
@vados-cosmonic
Copy link
Collaborator Author

Hey @itowlson if you wouldn't mind this one too!

Copy link
Collaborator

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

I'm not sufficiently familiar with componentize-py to verify on correctness, but if you're okay with that, then have at it!

@vados-cosmonic vados-cosmonic merged commit 42d27ba into bytecodealliance:main Aug 5, 2025
8 checks passed
@vados-cosmonic vados-cosmonic deleted the fix(lang/py)=componentize-py-usage branch August 5, 2025 03:15
catamorphism pushed a commit to catamorphism/component-docs that referenced this pull request Aug 12, 2025
* fix(lang/py): componentize-py update

This commit fixes the discrepancy due to changes in how
`componentize-py` works that have been merged recently.

Both bindings generation and the generated code have changed such that
the guide is no longer correct as to what to import and implement --
the new docs prefer a `wit_world` import which is generated.

* fix(lang/py): remove section regarding exporting interface

This commit removes the section regarding exporting
interfaces (instead of functions) as the code was long ago changed to
use interfaces by default.

* refactor(lang/py): use markdown include for WIT file

* fix(lang/py): exports interface in python docs

Co-authored-by: Wolfgang Meier <womeier@posteo.de>

---------

Co-authored-by: Wolfgang Meier <womeier@posteo.de>
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.

3 participants