-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
41 lines (35 loc) · 1.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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__"):
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"),
author="dhanush",
author_email="[email protected]",
description="Hydro Analyser - Pumping test analysis tool",
long_description=read("HyAn/pypi_description.md"),
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",
"fpdf==1.7.2",
],
package_dir={"hydro-analyzer": "HyAn"},
entry_points={
"console_scripts": [
"HyAn=HyAn.hyan:main",
],
},
)