-
Notifications
You must be signed in to change notification settings - Fork 65
/
setup.py
92 lines (85 loc) · 2.82 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
from setuptools import find_packages, setup
from pathlib import Path
import re
# Version info is set in one place; the aviary/__init__.py file
__version__ = re.findall(
r"""__version__ = ["']+([0-9\.\-dev]*)["']+""",
open('aviary/__init__.py').read(),
)[0]
with open(Path(__file__).parent / "README.md", encoding="utf-8") as f:
long_description = f.read()
pkgname = "aviary"
extras_require = {
"test": ["testflo", "pre-commit", "sphinx_book_theme==1.1.0"],
"examples": ["openaerostruct", "ambiance", "itables"],
}
all_packages = []
for packages in extras_require.values():
all_packages.extend(packages)
extras_require["all"] = all_packages
setup(
name="om-aviary",
long_description=long_description,
long_description_content_type='text/markdown',
version=__version__,
packages=find_packages(),
install_requires=[
"openmdao>=3.33.0",
"dymos>=1.8.1",
"hvplot",
"importlib_resources",
"numpy<2",
"matplotlib",
"pandas",
"panel>=1.0.0",
"parameterized",
"simupy",
],
extras_require=extras_require,
package_data={
pkgname: [
"subsystems/aerodynamics/gasp_based/data/*",
"subsystems/aerodynamics/gasp_based/test/data/*",
"subsystems/aerodynamics/flops_based/test/*.csv",
"subsystems/aerodynamics/flops_based/test/data/*.csv",
"subsystems/propulsion/gasp_based/data/*",
"subsystems/propulsion/test/*.csv",
"validation_cases/validation_data/gasp_data/*.dat",
"validation_cases/validation_data/gasp_data/*.csv",
"validation_cases/validation_data/flops_data/engine_only/*.deck",
"utils/legacy_code_data/*default_values*",
"utils/test/*",
"utils/test/data/*",
"models/engines/*.deck",
"models/engines/*.txt",
"models/engines/*.eng",
"models/N3CC/*",
"models/propellers/*.map",
"models/propellers/*.prop",
"models/large_single_aisle_1/*",
"models/large_single_aisle_2/*",
"models/small_single_aisle/*",
"models/test_aircraft/*",
"visualization/assets/*",
"visualization/assets/aviary_vars/*"
],
f"{pkgname}.docs": [
"*.py",
"tests/*.py",
"*/*.md",
"*/*.ipynb",
"*/*/*.md",
"*/*/*.ipynb",
],
f"{pkgname}.subsystems.aero.test.data": ["*.csv"],
f"{pkgname}.subsystems.prop.test": ["*.csv"],
},
entry_points={
'console_scripts': [
'aviary=aviary.interface.cmd_entry_points:aviary_cmd',
],
'openmdao_report': [
'aviary_reports=aviary.interface.reports:register_custom_reports',
]
}
)