diff --git a/meta.yaml b/meta.yaml index aa316d4..82e4169 100644 --- a/meta.yaml +++ b/meta.yaml @@ -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: diff --git a/setup.cfg b/setup.cfg index d5baee0..bdeaba1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.1 +current_version = 0.2.3 commit = True tag = True diff --git a/setup.py b/setup.py index 22155e4..b74503a 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ AUTHOR = "Chang Liao" AUTHOR_EMAIL = "chang.liao@pnnl.gov" URL = "https://github.com/changliao1025/pyhexwatershed" -VERSION = "0.2.1" +VERSION = "0.2.3" REQUIRES_PYTHON = ">=3.8.0" KEYWORDS = "hexwatershed hexagon" @@ -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)