forked from NOAA-GFDL/pace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (55 loc) · 1.66 KB
/
setup.py
File metadata and controls
65 lines (55 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
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."""
return f"{name} @ file://{Path(__file__).parent / relative_path} "
requirements: List[str] = [
local_pkg("NDSL", "NDSL"),
local_pkg("pyFV3", "pyFV3"),
local_pkg("pySHiELD", "pySHiELD"),
"dacite",
"f90nml",
"numpy < 2.0.0", # numpy 2.x has breaking API changes
"xarray",
"zarr < 3.0.0", # zarr 3.x has breaking API changes
]
test_requirements = [
"mpi4py",
"nbmake",
"pytest",
]
dev_requirements = [
*test_requirements,
"pip-tools", # for pip-compile
"pre-commit",
]
extras_require = {
"dev": dev_requirements,
"test": test_requirements,
}
setup(
author="Allen Institute for AI",
author_email="oliver.elbert@noaa.gov",
python_requires=">=3.8,<3.12",
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",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
install_requires=requirements,
extras_require=extras_require,
name="pace",
license="BSD license",
packages=find_namespace_packages(include=["pace", "pace.*"]),
include_package_data=True,
url="https://github.com/NOAA-GFDL/pace",
version="0.2.0",
zip_safe=False,
)