- Python
pipcomponentize-py0.17.2
Once you have pip installed, you can install componentize-py using:
pip install componentize-py==0.17.2The bindings are generated from src/spin_sdk/wit/spin.wit.
componentize-py \
-d src/spin_sdk/wit \
-w spin-all \
--import-interface-name fermyon:spin/postgres@2.0.0=postgres \
--import-interface-name spin:postgres/postgres@3.0.0=spin_postgres_postgres \
--import-interface-name fermyon:spin/sqlite@2.0.0=sqlite \
--world-module spin_sdk.wit \
bindings \
bindings
rm -r src/spin_sdk/wit/imports src/spin_sdk/wit/exports
mv bindings/spin_sdk/wit/* src/spin_sdk/wit/
rm -r bindingsAny time you regenerate the bindings or edit files by hand, you'll want to
regenerate the HTML docs to match. First, install pdoc using pip install pdoc3. Then, update the docs using:
./scripts/generate_docs.pyFirst, make sure you have an up-to-date version of the build package installed:
pip install --upgrade buildThen, build the distribution:
rm -rf dist
python -m buildFirst, make sure you have an up-to-date version of the twine package installed:
pip install --upgrade twineThen, publish the distribution:
twine upload dist/*This first time you run that, it will ask for a username and password. Enter
__token__ for the username and specify a valid PyPI token as the password.
Contact Joel Dice for a token if you don't have one.