-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
62 lines (53 loc) · 1.45 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
#!/usr/bin/env python
import os, sys, subprocess
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
sys.path.append(here)
# import versioneer # noqa: E402
# get the long description from the README file
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# get the current git commit hash
def get_git_commit_hash():
try:
return subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode("utf-8")
except subprocess.CalledProcessError:
return "unknown"
setup(
# metadata
name="adept",
description="Automatic Differentiation Enabled Plasma Transport",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ergodicio/adept",
author="Archis Joglekar",
author_email="archis@ergodic.io",
version="0.0.5",
# cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
python_requires=">=3.10",
install_requires=[
"diffrax",
"matplotlib",
"scipy",
"numpy",
"tqdm",
"xarray",
"mlflow",
"flatdict",
"h5netcdf",
"optax",
"boto3",
"pint",
"mlflow_export_import",
"plasmapy",
"tabulate",
"interpax",
"tabulate",
"pydantic",
],
extras_require={
"cpu": ["jax"],
"gpu": ["jax[cuda12]"],
},
)