-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
67 lines (58 loc) · 1.84 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
import os
from pathlib import Path
from typing import List
from setuptools import find_namespace_packages, setup
def local_pkg(name: str, relative_path: str) -> str:
"""Returns an absolute path to a local package."""
path = f"{name} @ file://{Path(os.path.abspath(__file__)).parent / relative_path}"
return path
test_requirements = ["pytest", "pytest-subtests", "coverage"]
develop_requirements = test_requirements + ["pre-commit"]
demos_requirements = ["ipython", "ipykernel"]
extras_requires = {
"test": test_requirements,
"develop": develop_requirements,
"demos": demos_requirements,
}
requirements: List[str] = [
local_pkg("gt4py", "external/gt4py"),
local_pkg("dace", "external/dace"),
"mpi4py==3.1.5",
"cftime",
"xarray",
"f90nml>=1.1.0",
"fsspec",
"netcdf4==1.7.0",
"scipy", # restart capacities only
"h5netcdf", # for xarray
"dask", # for xarray
"numpy==1.26.4",
"matplotlib", # for plotting in boilerplate
]
setup(
author="NOAA/NASA",
python_requires=">=3.11",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
install_requires=requirements,
extras_require=extras_requires,
name="ndsl",
license="BSD license",
packages=find_namespace_packages(include=["ndsl", "ndsl.*"]),
include_package_data=True,
url="https://github.com/NOAA-GFDL/NDSL",
version="2024.09.00",
zip_safe=False,
entry_points={
"console_scripts": [
"ndsl-serialbox_to_netcdf = ndsl.stencils.testing.serialbox_to_netcdf:entry_point",
]
},
)