forked from blaze/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·44 lines (34 loc) · 1.29 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
#!/usr/bin/env python
import os
from fnmatch import fnmatch
from setuptools import setup, find_packages
import versioneer
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)]
def read(filename):
with open(filename, 'r') as f:
return f.read()
setup(name='odo',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Data migration utilities',
url='https://github.com/blaze/odo',
author='Blaze development team',
author_email='[email protected]',
license='BSD',
keywords='odo data conversion hdf5 sql blaze',
packages=find_packages(),
install_requires=read('requirements.txt').strip().split('\n'),
extra_requires={'all': read('extra-requirements.txt').strip().split('\n')},
long_description=read('README.rst'),
package_data={'odo': package_data},
zip_safe=False,
scripts=[os.path.join('bin', 'odo')])