-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
91 lines (73 loc) · 1.98 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
"""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='2.0.0',
description='CLIMADA in Python',
long_description=long_description,
url='https://github.com/davidnbresch/climada_python',
author='ETH',
license='OSI Approved :: GNU General Public License v3 (GPLv3)',
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Topic :: Climate Adaptation',
'Programming Language :: Python :: 3.8',
],
keywords='climate adaptation',
packages=find_packages(where='.'),
install_requires=[
'bottleneck',
'cartopy',
'cfgrib',
'contextily',
'dask',
'geopandas',
'h5py',
'haversine',
'iso3166',
'matplotlib',
'netcdf4',
'numba',
'overpy',
'pandas',
'pandas-datareader',
'pathos',
'pillow',
'pint',
'pybufrkit',
'rasterio',
'scikit-learn',
'statsmodels',
'tables',
'tabulate',
'tqdm',
'xarray',
'xlrd',
'xlsxwriter',
'xmlrunner'
],
package_data={'': extra_files},
include_package_data=True
)