forked from dask/dask-xgboost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·33 lines (30 loc) · 1.06 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
#!/usr/bin/env python
import os
from setuptools import setup
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='dask-xgboost',
version='0.1.5',
description='Interactions between Dask and XGBoost',
maintainer='Matthew Rocklin',
maintainer_email='[email protected]',
url='https://github.com/dask/dask-xgboost',
license='BSD',
install_requires=install_requires,
extras_require=extras_require,
packages=['dask_xgboost'],
long_description=(open('README.rst').read()
if os.path.exists('README.rst')
else ''),
zip_safe=False)