forked from OpenWaterAnalytics/EPyT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (45 loc) · 1.48 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
42
43
44
45
46
47
48
49
50
51
from setuptools import setup
import os
# python setup.py bdist_wheel
# python setup.py sdist
# twine upload dist/*
module_name = 'epyt'
data = list()
packages = list()
pack_path = os.path.join(os.getcwd(), module_name)
for root, dirs, files in os.walk(pack_path):
p = '/'
if root == pack_path:
packages = dirs
p = ''
for file in files:
data.append(f"{root[len(pack_path) + 1:]}{p}{file}")
packages = [f"{module_name}.{x}" for x in packages]
packages.append(module_name)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name=module_name,
version="0.0.3",
author="KIOS CoE developers",
author_email="kiriakou.marios@ucy.ac.cy",
description='A Python module for EPANET water distribution simulation libraries. The EPyT is inspired by the '
'EPANET-Matlab Toolkit.',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/KIOS-Research/EPYT',
project_urls={
"Bug Tracker": 'https://github.com/KIOS-Research/EPYT/issues',
},
packages=packages,
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: European Union Public Licence 1.2 '
'(EUPL 1.2)',
'Operating System :: OS Independent',
],
python_requires=">=3.7",
package_data={f'{module_name}': data},
install_requires=['numpy', 'matplotlib', 'pandas'],
include_package_data=True
)