forked from bgroenks96/pyclimdex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·32 lines (29 loc) · 1.02 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
#!/usr/bin/env python
import os
from setuptools import setup
import sys
requires = open('requirements.txt').read().strip().split('\n')
install_requires = []
extras_require = {}
for r in requires:
if ';' in r:
# requirements.txt conditional dependencies need to be reformatted for wheels
# to the form: `'[extra_name]:condition' : ['requirements']`
req, cond = r.split(';', 1)
cond = ':' + cond
cond_reqs = extras_require.setdefault(cond, [])
cond_reqs.append(req)
else:
install_requires.append(r)
setup(name='pyclimdex',
version='0.0.1',
description='Python implementation of Climdex indices using xarray/dask',
maintainer='Brian Groenke',
maintainer_email='[email protected]',
license='MIT',
install_requires=install_requires,
extras_require=extras_require,
packages=['climdex'],
long_description=(open('README.md').read() if os.path.exists('README.md')
else ''),
zip_safe=False)