Skip to content

Commit

Permalink
rework copy so it happens only the first time (really ugly)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos committed Mar 7, 2024
1 parent bc101e2 commit 10c7ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions api/py/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
graft rust-workspace
graft docs
8 changes: 3 additions & 5 deletions api/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
import re
import os

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

shutil.copytree(
if not os.path.exists("rust-workspace"):
shutil.copytree(
"../..",
"rust-workspace",
ignore = shutil.ignore_patterns(".cached", "target", ".git", "issue-*", ".travis", "assets", ".github", "py")
)
)

version = toml.load("rust-workspace/api/Cargo.toml")["package"]["version"]
version = re.sub("\-alpha\.", "a", version)
Expand Down

0 comments on commit 10c7ddd

Please sign in to comment.