-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·36 lines (29 loc) · 1.14 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
#!/usr/bin/env python
import os
from fnmatch import fnmatch
from setuptools import setup, find_packages
def find_data_files(where, exts):
exts = tuple(exts)
for root, dirs, files in os.walk(where):
for f in files:
if any(fnmatch(f, pat) for pat in exts):
yield os.path.join(root, f)
exts = ('*.h5', '*.csv', '*.xls', '*.xlsx', '*.db', '*.json', '*.gz', '*.hdf5',
'*.sas7bdat')
package_data = [x.replace('odo' + os.sep, '') for x in
find_data_files('odo', exts)]
setup(name='odo',
version='0.3.1',
description='Data migration utilities',
url='http://github.com/ContinuumIO/odo',
author='Blaze development deam',
author_email='blaze-dev@continuum.io',
license='BSD',
keywords='odo data conversion hdf5 sql blaze',
packages=find_packages(),
install_requires=list(open('requirements.txt').read().strip().split('\n')),
long_description=(open('README.rst').read() if os.path.exists('README.rst')
else ''),
package_data={'odo': package_data},
zip_safe=False,
scripts=[os.path.join('bin', 'odo')])