-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.py
41 lines (36 loc) · 1.13 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
import os
from setuptools import find_packages, setup
__package_name__ = "mphys"
__package_version__ = "2.0.0"
mphys_root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(mphys_root, "README.md"), encoding="utf-8") as f:
long_description = f.read()
optional_dependencies = {
"remote": ["pbs4py", "zmq"],
"test": ["testflo"],
"docs": ["sphinx", "sphinxcontrib.bibtex", "pbs4py", "zmq"],
"format": ["black", "flake8", "isort"],
}
# Add an optional dependency that concatenates all others
optional_dependencies["all"] = sorted(
[
dependency
for dependencies in optional_dependencies.values()
for dependency in dependencies
]
)
setup(
name=__package_name__,
version=__package_version__,
description=(
"Components and related code for multiphysics" " problems in OpenMDAO"
),
long_description=long_description,
long_description_content_type="text/markdown",
author="",
author_email="",
zip_safe=False,
packages=find_packages(),
install_requires=["numpy", "openmdao >= 3.25, != 3.27.0"],
extras_require=optional_dependencies,
)