Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·53 lines (49 loc) · 1.98 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·53 lines (49 loc) · 1.98 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
from setuptools import setup
import glob
import re
# Read the version from lib/version.py — that file is the single source of
# truth and is tracked by git. setup.py no longer writes it.
with open("lib/version.py") as _vf:
_src = _vf.read()
Version = re.search(r"__version__\s*=\s*'([^']+)'", _src).group(1)
# data_files = (
# ('share/EnsoMetrics', ['share/EnsoMetrics/basin_generic_1x1deg.nc']),
# )
data_files = (
(
'share/EnsoMetrics',
[
'share/EnsoMetrics/basin_generic_1x1deg.nc',
'share/EnsoMetrics/cmip5_historical_ENSO_perf_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/cmip5_historical_ENSO_proc_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/cmip5_historical_ENSO_tel_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/cmip6_historical_ENSO_perf_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/cmip6_historical_ENSO_proc_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/cmip6_historical_ENSO_tel_v20200427_allModels_allRuns.json',
'share/EnsoMetrics/obs2obs_historical_ENSO_perf_v20201231_allObservations.json',
'share/EnsoMetrics/obs2obs_historical_ENSO_proc_v20201231_allObservations.json',
'share/EnsoMetrics/obs2obs_historical_ENSO_tel_v20201231_allObservations.json'],
),
)
setup(name="EnsoMetrics",
author="Eric Guilyardi",
version=Version,
description = "Library for ENSO Metrics",
url="https://github.com/CLIVAR-PRP/ENSO_metrics",
packages=['EnsoMetrics', 'EnsoPlots'],
package_dir={'EnsoMetrics': 'lib', 'EnsoPlots': 'plots'},
scripts=glob.glob("scripts/*.py"),
data_files=data_files,
install_requires=[
'numpy',
'scipy',
'packaging',
'xarray',
'xcdat',
'cftime',
'matplotlib',
'cartopy',
'cmocean',
'regionmask',
'xesmf',
])