Add Python bindings
This commit is contained in:
parent
7b81034625
commit
545be141d8
18 changed files with 1406 additions and 79 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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!"
|
||||
|
|
|
|||
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue