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
99 lines (80 loc) · 2.35 KB
/
setup.py
File metadata and controls
99 lines (80 loc) · 2.35 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
"""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=[
'bottleneck==1.3.2',
'cartopy==0.18.0',
'cfgrib==0.9.7.7',
'cython==0.29.21',
'dask==2.25.0',
'fiona==1.8.13.post1',
'gdal==3.0.4',
'geopandas==0.6.1',
'h5py==2.10.0',
'haversine==2.3.0',
'nbconvert==5.6.1',
'nbformat==5.0.7',
'netcdf4==1.5.4',
'numba==0.51.2',
'numpy==1.19.1',
'matplotlib==3.2.2',
'pandas==1.0.5',
'pandas-datareader==0.8.1',
'pillow==7.2.0',
'pint==0.15',
'proj==7.0.0',
'tables==3.6.1',
'rasterio==1.1.5',
'scikit-learn==0.23.2',
'statsmodels==0.11.1',
'tabulate==0.8.7',
'tqdm==4.48.2',
'xarray==0.13.0',
'xlrd==1.2.0',
'xlsxwriter==1.3.3',
'contextily==1.0.0',
'iso3166==1.0.1',
'overpy==0.4',
'pathos==0.2.6',
'pybufrkit==0.2.17',
'xmlrunner==1.7.7',
],
package_data={'': extra_files},
include_package_data=True
)