Add Python bindings

This commit is contained in:
Andras Schmelczer 2026-03-11 20:48:44 +00:00
parent 7b81034625
commit 545be141d8
18 changed files with 1406 additions and 79 deletions

View file

@ -37,6 +37,11 @@ cd reconcile-js
npm version $1
npm install
NEWVER=$(grep '^version = ' ../Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
cd ../reconcile-python
sed -i '' "s/^version = \".*\"/version = \"$NEWVER\"/" Cargo.toml
sed -i '' "s/^version = \".*\"/version = \"$NEWVER\"/" pyproject.toml
cd ../examples/website
npm install

View file

@ -19,4 +19,11 @@ cd ../examples/website
npm ci
npm run format
cd ../../reconcile-python
uv run maturin develop -q
uv run ruff check python/ tests/
uv run ruff format python/ tests/
uv run pyright python/ tests/
cd -
echo "Success!"

View file

@ -27,4 +27,9 @@ npm run build
npm run test
cd -
cd reconcile-python
uv run maturin develop
uv run pytest -v
cd -
echo "Success!"