Skip to content

Commit

Permalink
Merge pull request #50 from changliao1025/development
Browse files Browse the repository at this point in the history
fix rmtre error
  • Loading branch information
changliao1025 authored May 9, 2023
2 parents c77aa9b + 064f746 commit cae7511
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package:
name: "hexwatershed"
version: "0.2.1"
version: "0.2.3"

source:
git_rev: v0.2.1
git_rev: v0.2.3
git_url: https://github.com/changliao1025/pyhexwatershed

build:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.1
current_version = 0.2.3
commit = True
tag = True

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
AUTHOR = "Chang Liao"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/changliao1025/pyhexwatershed"
VERSION = "0.2.1"
VERSION = "0.2.3"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "hexwatershed hexagon"

Expand Down Expand Up @@ -88,7 +88,8 @@ def run(self):
source_path = os.path.join(
HERE, "external", "hexwatershed")
# Run the command using subprocess
shutil.rmtree(source_path)
if os.path.exists(source_path):
shutil.rmtree(source_path, ignore_errors=True)

subprocess.run(git_command.split(), check=True)

Expand Down

0 comments on commit cae7511

Please sign in to comment.