-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
73 lines (67 loc) · 1.67 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
71
72
73
import sys
import param
from setuptools import find_packages, setup
extras_require = {
'tests': [
'codecov',
'flake8',
'geopandas',
'hypothesis',
'pytest-cov',
'pytest',
'scipy',
'shapely',
],
'examples': [
'datashader',
'descartes',
'geopandas',
'holoviews',
'matplotlib',
]
}
install_requires = [
'fsspec',
'numba',
'pandas>=0.25',
'param',
'pyarrow>=0.15',
'python-snappy',
'retrying',
]
# Checking for platform explicitly because
# pyctdev does not handle dependency conditions
# such as 'numpy<1.20;platform_system=="Darwin"'
if sys.platform == 'darwin':
install_requires.extend([
'dask[complete]>=2.0,<2020.12',
'numpy<1.20',
])
else:
install_requires.extend([
'dask[complete]>=2.0',
'numpy',
])
setup_args = dict(
name='spatialpandas',
version=param.version.get_setup_version(
__file__,
"spatialpandas",
archive_commit="$Format:%h$",
),
description='Pandas extension arrays for spatial/geometric operations',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url='https://github.com/holoviz/spatialpandas',
maintainer='Datashader developers',
maintainer_email='dev@datashader.org',
python_requires='>=3.6',
install_requires=install_requires,
extras_require=extras_require,
tests_require=extras_require['tests'],
license='BSD-2-Clause',
packages=find_packages(exclude=('tests', 'tests.*')),
include_package_data=True,
)
if __name__ == '__main__':
setup(**setup_args)