Skip to content

Commit

Permalink
build: Move poetry update to post-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikorose committed Jun 22, 2023
1 parent 376d037 commit e2bcf7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 7 additions & 1 deletion post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ echo cargo add --manifest-path ./pyDF/Cargo.toml --features transforms --path ./
# cargo add --manifest-path ./pyDF-data/Cargo.toml --features dataset --path ./libDF deep_filter

cargo update

(
cd DeepFilterNet/
echo "Running poetry update"
poetry update
echo "done"
git add poetry.lock
)
fd "(pyproject)|(Cargo)" -I -t f -e toml -e lock -X git add {}

git commit -m "post-release v$VERSION"
6 changes: 1 addition & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,12 @@ export -f set_version
fd "(pyproject)|(Cargo)" -t f -e toml -x bash -c "set_version {} $VERSION"
(
cd DeepFilterNet/
echo "Running poetry update"
poetry update
echo "done"
git add poetry.lock
# Workaround since 'poetry add' needs the specified package version to be at pypi
sed -i "s/^deepfilterlib.*/deepfilterlib = \"$VERSION\"/" pyproject.toml
sed -i "s/^deepfilterdataloader.*/deepfilterdataloader = { version = \"$VERSION\", optional = true }/" pyproject.toml
)

cargo build --all-features
cargo +nightly build --all-features

(
cd libDF
Expand Down

0 comments on commit e2bcf7b

Please sign in to comment.