forked from OpenWaterAnalytics/EPyT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.76 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (50 loc) · 1.76 KB
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
52
53
54
55
56
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="1.0.1",
author="KIOS CoE",
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,
keywords='epanet, water, networks, hydraulics, quality, simulations, emt, epanet matlab toolkit',
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python',
'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
)