Skip to content

Commit

Permalink
Merge pull request #70 from changliao1025/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
changliao1025 authored May 10, 2023
2 parents 2c022b0 + 63ef35b commit f689287
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 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.19"
version: "0.2.20"

source:
git_rev: v0.2.19
git_rev: v0.2.20
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.19
current_version = 0.2.20
commit = True
tag = True

Expand Down
19 changes: 6 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
import os
import subprocess
import shutil

from setuptools import setup, find_packages, Command
from packaging import version


NAME = "hexwatershed"
DESCRIPTION = \
"A mesh-independent flow direction model for hydrologic models"
AUTHOR = "Chang Liao"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/changliao1025/pyhexwatershed"
VERSION = "0.2.19"
VERSION = "0.2.20"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "hexwatershed hexagon"

REQUIRED = [
"packaging",
"numpy",
"matplotlib",
"gdal",
Expand Down Expand Up @@ -151,19 +149,13 @@ def run(self):
self.announce("cmake complie", level=3)

ver = get_cmake_version()
if version.parse(ver) < version.parse("3.12"):
compilecall = [

compilecall = [
"cmake", "--build", ".",
"--config", "Release",
"--target", "install"
]
else:
compilecall = [
"cmake", "--build", ".",
"--config", "Release",
"--target", "install",
"--parallel", "4"
]


subprocess.run(compilecall, check=True)

Expand All @@ -190,6 +182,7 @@ def run(self):
keywords=KEYWORDS,
url=URL,
data_files=data_files,
setup_requires=['setuptools'],
packages=['pyhexwatershed'],
package_data={
"pyhexwatershed": ["_bin/*", "_lib/*"]
Expand Down

0 comments on commit f689287

Please sign in to comment.