Skip to content

Commit

Permalink
fix rust code copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos committed Mar 7, 2024
1 parent 5078bc8 commit bc101e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
import shutil
import toml
import re
import os

if os.path.exists("rust-workspace"):
shutil.rmtree("rust-workspace")

shutil.rmtree("rust-workspace")
shutil.copytree(
"../..",
"rust-workspace",
ignore = shutil.ignore_patterns(".cached", "target", ".git", "issue-*", ".travis", "assets", ".github")
ignore = shutil.ignore_patterns(".cached", "target", ".git", "issue-*", ".travis", "assets", ".github", "py")
)

version = toml.load("rust-workspace/api/Cargo.toml")["package"]["version"]
Expand Down

0 comments on commit bc101e2

Please sign in to comment.