-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (41 loc) · 1.19 KB
/
setup.py
File metadata and controls
47 lines (41 loc) · 1.19 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
import os
import subprocess
from pathlib import Path
from typing import List
from setuptools import find_namespace_packages, setup
from setuptools.command.install import install
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", "coverage"]
develop_requirements = test_requirements + ["pre-commit"]
extras_requires = {
"test": test_requirements,
"develop": develop_requirements,
}
requirements: List[str] = [
"click",
"gitpython",
"h5netcdf",
"h5py",
"numpy",
"xarray",
"netCDF4",
local_pkg("pyFMS", "pyFMS"),
local_pkg("pyfrenctools", "FREnctools_lib")
]
setup(
author = "NOAA",
python_requires=">3.11",
classifiers="",
install_requires=requirements,
extras_require=extras_requires,
name="fmsgridtools",
license="",
packages=find_namespace_packages(include=["fmsgridtools", "fmsgridtools.*"]),
include_package_data=True,
version="0.0.1",
zip_safe=False,
entry_points={"console_scripts": ["fmsgridtools = fmsgridtools.main:main"]},
)