Skip to content

Commit

Permalink
fix maturin uploading/installation of trustspeccli
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarwacki committed Aug 26, 2024
1 parent 9277d15 commit 8cbf536
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions plugin/py-binding/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ cd "$SCRIPT_DIR" || exit

pip install maturin

rm -rf target
maturin develop
3 changes: 2 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cd "$SCRIPT_DIR" || exit

VERSION=$(yq -oy '.package.version' Cargo.toml)

trap "mv $SCRIPT_DIR/plugin/py-binding/Cargo.toml.bu $SCRIPT_DIR/plugin/py-binding/Cargo.toml; mv $SCRIPT_DIR/cli/py/pyproject.toml.bu $SCRIPT_DIR/cli/py/pyproject.toml" EXIT
trap "mv $SCRIPT_DIR/plugin/py-binding/Cargo.toml.bu $SCRIPT_DIR/plugin/py-binding/Cargo.toml; mv $SCRIPT_DIR/cli/py/pyproject.toml.bu $SCRIPT_DIR/cli/py/pyproject.toml; rm plugin/py-binding/README.md" EXIT

cp $SCRIPT_DIR/plugin/py-binding/Cargo.toml $SCRIPT_DIR/plugin/py-binding/Cargo.toml.bu
sed -i "s/{VERSION}/$VERSION/g" $SCRIPT_DIR/plugin/py-binding/Cargo.toml
Expand All @@ -17,6 +17,7 @@ sed -i "s/{VERSION}/$VERSION/g" $SCRIPT_DIR/cli/py/pyproject.toml

bash do_test.sh

cp README.md plugin/py-binding/README.md
cd plugin/py-binding
maturin upload

Expand Down
2 changes: 1 addition & 1 deletion test/cli/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ pip uninstall -y trustspeccli
pip install dist/trustspeccli-*-py3-none-any.whl

cd $SCRIPT_DIR
trust help
trust -V

0 comments on commit 8cbf536

Please sign in to comment.