-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (47 loc) · 1.58 KB
/
setup.py
File metadata and controls
58 lines (47 loc) · 1.58 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
57
58
import os
from setuptools import setup, find_packages
import ast
HERE = os.path.abspath(os.path.dirname(__file__))
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_description():
"""Get long description."""
with open(os.path.join(HERE, 'README.md'), 'r') as f:
data = f.read()
return data
def get_version(module='sewergraph'):
"""Get version."""
with open(os.path.join(HERE, module, '__init__.py'), 'r') as f:
data = f.read()
lines = data.split('\n')
for line in lines:
if line.startswith('VERSION_INFO'):
version_tuple = ast.literal_eval(line.split('=')[-1].strip())
version = '.'.join(map(str, version_tuple))
break
return version
REQUIREMENTS = [
'pandas',
'networkx>=2',
'numpy',
]
setup(name='sewergraph',
version=get_version(),
description='Tools for graph calculations on sewer networks',
author='Adam Erispaha',
url='https://github.com/aerispaha/sewergraph',
author_email='aerispaha@gmail.com',
packages=find_packages(exclude=('tests')),
install_requires=REQUIREMENTS,
long_description=get_description(),
long_description_content_type="text/markdown",
platforms="OS Independent",
license="MIT License",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
]
)