-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (41 loc) · 1.13 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
52
import subprocess
import sys
from os import path
from setuptools import setup
__author__ = 'indrajit'
__email__ = '[email protected]'
if sys.version_info[:2] < (3, 4):
raise RuntimeError('Python version > 3.4 required.')
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
def find_packages(*args, **kwargs):
return [
'OHA',
'OHA.assessments',
'OHA.helpers',
'OHA.helpers.calculators',
'OHA.helpers.converters',
'OHA.helpers.formatters',
'OHA.helpers.measurements',
'OHA.param_builders',
]
def version():
__version = '0.2.3'
__tag = 'b'
if path.exists('.git'):
__tag = 'git'
__build = subprocess.check_output('git rev-list HEAD --count'.split()).decode().strip()
else:
__build = __tag
return '%s.%s.%s' % (__version, __tag, __build)
setup(
version=version(),
long_description=long_description,
packages=find_packages(),
install_requires=[
'numpy',
'pandas',
],
include_package_data=True,
)