This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
48 lines (41 loc) · 1.68 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
import os
from setuptools import setup, find_packages
def extract_version(module='ioos_qartod'):
version = None
fdir = os.path.dirname(__file__)
fnme = os.path.join(fdir, module, '__init__.py')
with open(fnme) as fd:
for line in fd:
if (line.startswith('__version__')):
_, version = line.split('=')
# Remove quotation characters.
version = version.strip()[1:-1]
break
return version
rootpath = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return open(os.path.join(rootpath, *parts), 'r').read()
with open('requirements.txt') as f:
require = f.readlines()
install_requires = [r.strip() for r in require]
long_description = '{}\n'.format(read('README.rst'))
LICENSE = read('LICENSE.txt')
setup(name='ioos_qartod',
version=extract_version(),
author='Ben Adams',
author_email='[email protected]',
packages=find_packages(),
install_requires=install_requires,
license=LICENSE,
url='https://github.com/asascience-open/QARTOD',
description='IOOS QARTOD Tests implemented in Python',
long_description=long_description,
classifiers=['Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics']
)