forked from CLIMADA-project/climada_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
107 lines (89 loc) · 2.76 KB
/
setup.py
File metadata and controls
107 lines (89 loc) · 2.76 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
"""A setuptools based setup module.
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
import os
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the data recursively from the data folder
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if filename != '.DS_Store':
paths.append(os.path.join('..', path, filename))
return paths
extra_files = package_files(here + '/data/')
# Add configuration files
extra_files.append(here + '/climada/conf/defaults.conf')
setup(
name='climada',
version='1.4.0',
description='CLIMADA in Python',
long_description=long_description,
url='https://github.com/davidnbresch/climada_python',
author='ETH',
license='GNU General Public License',
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Topic :: Climate Adaptation',
'Programming Language :: Python :: 3.6',
],
keywords='climate adaptation',
packages=find_packages(where='.'),
install_requires=[
'cartopy==0.17.0', # conda!
'cloudpickle', # install_test
'contextily==1.0rc2',
'dask==1.2.2',
'descartes',
#'earthengine_api==0.1.210', # ee, conda!
'elevation==1.0.6',
'fiona==1.8.4',
'fsspec>=0.3.6', # < dask
'gdal==2.3.3', # conda!
'geopandas==0.4.1',
'h5py==2.9.0',
'haversine==2.1.1',
'iso3166==1.0',
#'kealib==1.4.7', < fiona
'matplotlib==3.1', #
'mercantile',
#'mpl_toolkits', matplotlib
'netCDF4==1.4.2', # conda!
'numba==0.43.1', # conda!
'numpy==1.16.3', # conda+
'overpy==0.4',
'pandas==0.24.2',
'pandas_datareader==0.7.0',
'pathos==0.2.3',
'pillow==7.0', # PIL
'pint==0.9',
#'pylab', matplotlib
'pyproj==1.9.6', #
'pyshp', # shapefile
'rasterio==1.0.21',
'requests==2.21.0', #
'rtree==0.8.3', # < geopandas.overlay
'scikit-learn==0.20.3', # sklearn
'scipy==1.2.1', # conda+
'shapely==1.6.4', #
'six==1.13.0', #
'tables', # < pandas (climada.entity.measures.test.test_base.TestApply)
'tabulate==0.8.3',
'toolz', # < dask
'tqdm==4.31.1',
'xarray==0.12.1',
'xlrd', # < pandas
'xlsxwriter==1.1.7',
'xmlrunner==1.7.7', # ci tests
],
package_data={'': extra_files},
include_package_data=True
)