This repository has been archived by the owner on Jun 7, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
47 lines (42 loc) · 1.56 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
import os
import sys
from setuptools import setup
from pkg_resources import parse_version
here = os.path.abspath(os.path.dirname(__file__))
if sys.version_info[:2] < (2, 6) or (3, 0) <= sys.version_info[0:2] < (3, 2):
raise RuntimeError("Python version 2.6, 2.7 or >= 3.2 required.")
# Get the long description from the relevant file
with open(os.path.join(here, 'README.md')) as f:
long_description = f.read()
lines = long_description.splitlines(True)
long_description = ''.join(lines[8:])
# Get the version from the relevant file
execfile(here + '/tomokth/_version.py')
# Get the development status from the version string
parsed_version = parse_version(__version__)
try:
if parsed_version.is_prerelease:
if 'a' in __version__:
devstatus = 'Development Status :: 3 - Alpha'
else:
devstatus = 'Development Status :: 4 - Beta'
else:
devstatus = 'Development Status :: 5 - Production/Stable'
except AttributeError:
if 'a' in __version__:
devstatus = 'Development Status :: 3 - Alpha'
elif 'b' in __version__:
devstatus = 'Development Status :: 4 - Beta'
else:
devstatus = 'Development Status :: 5 - Production/Stable'
setup(name='tomokth',
version=__version__,
description=('PIV code'),
long_description=long_description,
keywords='PIV',
author='Ashwin, Krishna, Mubashir',
author_email='avmo@kth.se',
license='GPL',
install_requires=['scipy', 'matplotlib', 'h5py', 'scikit-image',
'sympy', 'fluiddyn', 'pymatbridge']
)