forked from NOAA-GFDL/NDSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (45 loc) · 1.47 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
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"]
develop_requirements = test_requirements + ["pre-commit"]
extras_requires = {"test": test_requirements, "develop": develop_requirements}
requirements: List[str] = [
local_pkg("gt4py", "external/gt4py"),
local_pkg("dace", "external/dace"),
"mpi4py",
"cftime",
"xarray",
"fsspec",
"netcdf4",
"scipy", # restart capacities only
"h5netcdf", # for xarray
"dask", # for xarray
]
setup(
author="NOAA/NASA",
python_requires=">=3.8",
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="0.0.0",
zip_safe=False,
)