forked from intake/intake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (66 loc) · 2.58 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors
# All rights reserved.
#
# The full license is in the LICENSE file, distributed with this software.
#-----------------------------------------------------------------------------
from setuptools import setup, find_packages
import sys
import versioneer
requires = [line.strip() for line in open('requirements.txt').readlines()
if not line.startswith("#")]
extras_require = {
'server': ['tornado', 'python-snappy'],
'plot': ['hvplot', 'panel >= 0.7.0', 'bokeh < 2.0'],
'dataframe': ['dask[dataframe]', 'msgpack-numpy', 'pyarrow'],
}
extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
# Only include pytest-runner in setup_requires if we're invoking tests
if {'pytest', 'test', 'ptr'}.intersection(sys.argv):
setup_requires = ['pytest-runner']
else:
setup_requires = []
setup(
name='intake',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Data load and catalog system',
url='https://github.com/intake/intake',
maintainer='Martin Durant',
maintainer_email='[email protected]',
license='BSD',
package_data={'': ['*.csv', '*.yml', '*.yaml', '*.html']},
include_package_data=True,
install_requires=requires,
packages=find_packages(),
entry_points={
'console_scripts': [
'intake-server = intake.cli.server.__main__:main',
'intake = intake.cli.client.__main__:main'
],
'intake.drivers': [
'yaml_file_cat = intake.catalog.local:YAMLFileCatalog',
'yaml_files_cat = intake.catalog.local:YAMLFilesCatalog',
'csv = intake.source.csv:CSVSource',
'textfiles = intake.source.textfiles:TextFilesSource',
'catalog = intake.catalog.base:Catalog',
'intake_remote = intake.catalog.base:RemoteCatalog',
'numpy = intake.source.npy:NPySource',
'ndzarr = intake.source.zarr:ZarrArraySource',
'zarr_cat = intake.catalog.zarr:ZarrGroupCatalog',
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
python_requires=">=3.6",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
tests_require=['pytest'],
extras_require=extras_require,
zip_safe=False,
)