-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
110 lines (92 loc) · 4.31 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
from setuptools import setup, find_packages
import icenet
"""Setup module for icenet
"""
def get_content(filename):
with open(filename, "r") as fh:
return fh.read()
setup(
name=icenet.__name__,
version=icenet.__version__,
author=icenet.__author__,
author_email=icenet.__email__,
description="Library for operational IceNet forecasting",
long_description="""{}\n---\n""".format(get_content("README.md"),
get_content("HISTORY.rst")),
long_description_content_type="text/markdown",
url="https://github.com/icenet-ai",
packages=find_packages(),
keywords="",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
entry_points={
"console_scripts": [
"icenet_data_masks = icenet.data.sic.mask:main",
"icenet_data_cmip = icenet.data.interfaces.esgf:main",
"icenet_data_era5 = icenet.data.interfaces.cds:main",
"icenet_data_oras5 = icenet.data.interfaces.cmems:main",
"icenet_data_hres = icenet.data.interfaces.mars:hres_main",
"icenet_data_seas = icenet.data.interfaces.mars:seas_main",
"icenet_data_sic = icenet.data.sic.osisaf:main",
"icenet_data_reproc_monthly = "
"icenet.data.interfaces.utils:reprocess_main",
"icenet_data_add_time_dim = "
"icenet.data.interfaces.utils:add_time_dim_main",
"icenet_process_cmip = icenet.data.processors.cmip:main",
"icenet_process_era5 = icenet.data.processors.era5:main",
"icenet_process_oras5 = icenet.data.processors.oras5:main",
"icenet_process_hres = icenet.data.processors.hres:main",
"icenet_process_sic = icenet.data.processors.osi:main",
"icenet_process_metadata = icenet.data.processors.meta:main",
"icenet_process_condense = "
"icenet.data.processors.utils:condense_main",
"icenet_dataset_check = icenet.data.dataset:check_dataset",
"icenet_dataset_create = icenet.data.loader:create",
"icenet_train = icenet.model.train:main",
"icenet_predict = icenet.model.predict:main",
"icenet_upload_azure = icenet.process.azure:upload",
"icenet_upload_local = icenet.process.local:upload",
"icenet_plot_record = icenet.plotting.data:plot_tfrecord",
"icenet_plot_forecast = icenet.plotting.forecast:plot_forecast",
"icenet_plot_input = icenet.plotting.data:plot_sample_cli",
"icenet_plot_sic_error = icenet.plotting.forecast:sic_error",
"icenet_plot_sic_error_local = icenet.plotting.forecast:sic_error_local",
"icenet_plot_bin_accuracy = "
"icenet.plotting.forecast:binary_accuracy",
"icenet_plot_sie_error = icenet.plotting.forecast:sie_error",
"icenet_plot_metrics = icenet.plotting.forecast:metric_plots",
"icenet_plot_leadtime_avg = icenet.plotting.forecast:leadtime_avg_plots",
"icenet_video_data = icenet.plotting.video:data_cli",
"icenet_output = icenet.process.predict:create_cf_output",
"icenet_output_geotiff = "
"icenet.process.forecasts:create_geotiff_output",
"icenet_output_broadcast = "
"icenet.process.forecasts:broadcast_main",
"icenet_output_reproject = "
"icenet.process.forecasts:reproject_main",
"icenet_result_threshold = "
"icenet.results.threshold:threshold_main"
],
},
python_requires='>=3.8, <3.12',
install_requires=get_content("requirements.txt"),
include_package_data=True,
extras_require={
"dev": get_content("requirements_dev.txt"),
"docs": get_content("docs/requirements.txt"),
},
test_suite='tests',
tests_require=['pytest>=3'],
zip_safe=False,
)