forked from tianjuxue/jax-am
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (45 loc) · 1.59 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
import os
from setuptools import find_packages, setup
_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
def get_version():
with open(os.path.join(_CURRENT_DIR, "jax_am/__init__.py")) as file:
for line in file:
if line.startswith("__version__"):
return line[line.find("=") + 1:].strip(' \'"\n')
raise ValueError('`__version__` not defined in `jax_am/__init__.py`')
__version__ = get_version()
if __name__=='__main__':
setup(
name="jax-am",
version=__version__,
description="GPU-accelerated simulation toolbox for additive manufacturing based on JAX.",
author="Xue et al.",
author_email="[email protected]",
long_description=open(os.path.join(_CURRENT_DIR, "README.md")).read(),
long_description_content_type='text/markdown',
packages=find_packages(exclude=['*.test*']),
python_requires=">=3.6",
install_requires=[
"jax",
"jaxlib",
"matplotlib",
"numpy",
"scipy",
"orix",
"meshio",
"gmsh",
"pyfiglet",
"scikit-learn",
"fenics-basix"
],
url="https://github.com/tianjuxue/jax-am",
license="GPL-3.0",
classifiers=[
'Programming Language :: Python :: 3',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Intended Audience :: Science/Research',
]
)