-
Notifications
You must be signed in to change notification settings - Fork 118
/
setup.py
69 lines (63 loc) · 2.08 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
63
64
65
66
67
68
69
from setuptools import setup
import re
import os
__version__ = re.findall(
r"""__version__ = ["']+([0-9\.]*)["']+""",
open("openaerostruct/__init__.py").read(),
)[0]
optional_dependencies = {
"docs": ["sphinx_mdolab_theme"],
"test": ["testflo"],
"ffd": ["pygeo>=1.6.0"],
"mphys": ["mphys>=2.0.0", "pygeo>=1.15.0"],
}
# Add an optional dependency that concatenates all others
optional_dependencies["all"] = sorted(
[dependency for dependencies in optional_dependencies.values() for dependency in dependencies]
)
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="openaerostruct",
version=__version__,
description="OpenAeroStruct",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mdolab/OpenAeroStruct",
keywords="",
author="",
author_email="",
license="BSD-3",
packages=[
"openaerostruct",
"openaerostruct/docs",
"openaerostruct/docs/_utils",
"openaerostruct/geometry",
"openaerostruct/structures",
"openaerostruct/aerodynamics",
"openaerostruct/transfer",
"openaerostruct/functionals",
"openaerostruct/integration",
"openaerostruct/common",
"openaerostruct/utils",
"openaerostruct/mphys",
],
# Test files
package_data={"openaerostruct": ["tests/*.py", "*/tests/*.py", "*/*/tests/*.py"]},
install_requires=[
# Remember to update the oldest versions in the GitHub Actions build, the readme, and in docs/installation.rst
"openmdao>=3.15",
"numpy>=1.20",
"scipy>=1.6.0",
"matplotlib",
],
extras_require=optional_dependencies,
zip_safe=False,
# ext_modules=ext,
entry_points="""
[console_scripts]
plot_wing=openaerostruct.utils.plot_wing:disp_plot
plot_wingbox=openaerostruct.utils.plot_wingbox:disp_plot
""",
)