-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dhanush
committed
Mar 14, 2023
1 parent
d7c6fa7
commit 00b817f
Showing
4 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from HyAn.hyan import main | ||
|
||
if __name__ == "__main__": | ||
main() | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def read(rel_path: str) -> str: | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(here, rel_path)) as fp: | ||
return fp.read() | ||
|
||
|
||
def get_version(rel_path: str) -> str: | ||
for line in read(rel_path).splitlines(): | ||
if line.startswith('__version__'): | ||
if line.startswith("__version__"): | ||
quote_char = '"' if '"' in line else "'" | ||
return line.split(quote_char)[1] | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
setup( | ||
name='HyAn', | ||
version=get_version("HyAn/__init__.py"), | ||
packages=find_packages(), | ||
install_requires=[ | ||
"matplotlib==3.7.1", | ||
"numpy==1.24.2", | ||
"PySide6==6.4.2", | ||
"scipy==1.10.1", | ||
"setuptools==65.6.3", | ||
], | ||
package_dir={'hydro-analyzer': 'HyAn'} | ||
name="HyAn", | ||
version=get_version("HyAn/__init__.py"), | ||
packages=find_packages(), | ||
install_requires=[ | ||
"matplotlib==3.7.1", | ||
"numpy==1.24.2", | ||
"PySide6==6.4.2", | ||
"scipy==1.10.1", | ||
"setuptools==65.6.3", | ||
], | ||
package_dir={"hydro-analyzer": "HyAn"}, | ||
) | ||
|