-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (44 loc) · 1.27 KB
/
setup.py
File metadata and controls
52 lines (44 loc) · 1.27 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
import subprocess
from setuptools import find_namespace_packages, setup
from setuptools.command.build import build
class CustomBuild(build):
def run(self):
with open("install.log", "w") as f:
subprocess.run(["./compile_c_libs.sh"], stdout=f, check=True)
build.run(self)
test_requirements = ["pytest", "pytest-subtests", "coverage", "dask"]
develop_requirements = test_requirements + ["pre-commit"]
extras_requires = {
"test": test_requirements,
"develop": develop_requirements,
}
requirements = [
"dacite",
"h5netcdf",
"numpy",
"pyyaml",
"mpi4py",
"xarray",
"netcdf4",
]
setup(
author="NOAA/GFDL",
python_requires=">=3.11",
classifiers=[
"Development Status :: 1 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
],
install_requires=requirements,
extras_require=extras_requires,
name="pyfms",
license="",
packages=find_namespace_packages(include=["pyfms", "pyfms.*"]),
cmdclass={"build": CustomBuild},
include_package_data=True,
url="https://github.com/fmalatino/pyFMS.git",
version="2024.02.0",
zip_safe=False,
)