-
Notifications
You must be signed in to change notification settings - Fork 26
/
pyproject.toml
214 lines (186 loc) · 6.65 KB
/
pyproject.toml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# Poetry settings ==============================================================
[tool.poetry]
name = "FAST-OAD-core"
version = "1.8.0" # This version number is overwritten by GitHub packaging workflow but setting this version here will allow installation of CS25 models in development mode
description = "FAST-OAD is a framework for performing rapid Overall Aircraft Design"
readme = "README.md"
authors = [
"Christophe DAVID <[email protected]>",
"Scott DELBECQ <[email protected]>"
]
packages = [
{ include = "fastoad", from = "src" },
]
exclude = ["**/tests/**"]
homepage = "https://github.com/fast-aircraft-design/FAST-OAD"
keywords = [
"aircraft",
"design",
"multi-disciplinary"
]
license = "GPL-3.0-only"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics"
]
# User dependencies ------------------------------------------------------------
[tool.poetry.dependencies]
# IMPORTANT: when modifying this list, docs/requirements.txt must be updated for
# ReadTheDocs to be able to compile the documentation.
# A pre-commit hook has been added to do this task. As a result, any modification
# of poetry.lock file will modify docs/requirements.txt and make
# the commit fail because "files were modified by this hook". In that case,
# doing again the commit including changes in docs/requirements.txt will succeed.
python = ">=3.9, <3.13"
numpy = ">=1.23.2, <3"
scipy = "^1.11.2"
pandas = [
{ version = ">=1.3.4, <3", python = "<3.11" },
{ version = ">=1.5.3, <3", python = "~3.11" },
{ version = "^2.1.1", python = "^3.12" },
]
openmdao = "^3.27"
ipopo = [
{ version = "^1.0.0", python = "<3.10" },
{ version = "^3.0.0", python = "^3.10" }
]
ipywidgets = ">=7.7.0, <9"
ipysheet = ">=0.5.0, <1"
plotly = [
{ version = "^5", python = "<3.12" },
{ version = "^5.19", python = "^3.12" }
]
wop = "^2.2.0"
lxml = [
{ version = ">=4.6.5, <6", python = "<3.11" },
{ version = ">=4.9.3, <6", python = "^3.11" },
]
tomlkit = ">=0.5.3, <1"
"ruamel.yaml" = ">=0.15.78, <0.18"
jsonschema = ">=3.2.0, <5"
ensure = [
{ version = "^1.0.0", python = "<3.12" },
{ version = "^1.0.4", python = "^3.12" },
]
tabulate = ">=0.8.9, <1"
aenum = "^3.1.0"
jupyterlab = [
{ version = "^3.4.7", python = "<3.12" },
{ version = "^4.2", python = "^3.12" }
]
stdatm = ">=0.4.2"
Deprecated = "^1.2.13"
click = "^8.0.3"
pyDOE3 = "^1.0.0"
importlib-metadata = { version = "^4.2", python = "<3.10" }
mpi4py = [
{ version = "^3.1.3", python = "<3.11", optional = true },
{ version = "^3.1.4", python = "~3.11", optional = true },
{ version = "^3.1.5", python = "~3.12", optional = true },
]
# Extras ---------------------------------------------------------------
[tool.poetry.extras]
# Activated with:
# poetry install -E mpi
# or, as a user:
# pip install fast-oad-core[mpi]
mpi = ["mpi4py"]
mpi4py = ["mpi4py"] # Old way, kept for backward compatibility
# Development dependencies -----------------------------------------------------
[tool.poetry.group.dev.dependencies]
fast-oad-cs25 = ">=0.7.1"
matplotlib = "^3.9.0"
[tool.poetry.group.test.dependencies]
pytest = "^8.0"
pytest-cov = "^5.0"
coverage = { version = "^7.0", extras = ["toml"] }
nbval = "^0.11"
wrapt = "^1.16.0"
[tool.poetry.group.doc.dependencies]
sphinx = ">=7.1.2"
sphinx-rtd-theme = ">=2.0"
sphinxcontrib-bibtex = "^2.6.3"
[tool.poetry.group.lint.dependencies]
pre-commit = "^3.5.0"
nbstripout = "^0.6.0"
ruff = "0.6.9"
# Entry points -----------------------------------------------------------------
[tool.poetry.scripts]
fastoad = "fastoad.cmd.cli:fast_oad"
fast-oad = "fastoad.cmd.cli:fast_oad"
# Plugins ----------------------------------------------------------------------
[tool.poetry.plugins."fastoad.plugins"]
"bundled" = "fastoad"
# Dynamic versioning settings ==================================================
# poetry-dynamic-versioning has to be installed in the same environment as
# Poetry (normally outside your project environment).
# see https://github.com/mtkennerly/poetry-dynamic-versioning#installation
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
# Packaging system =============================================================
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
# Ruff settings ================================================================
[tool.ruff]
line-length = 100
target-version = "py39"
extend-include = ["*.ipynb"]
exclude = ["tests/dummy_plugins/"]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Pytest settings ==============================================================
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "--cov-report term-missing --cov-report html --verbose"
testpaths = ["src"]
norecursedirs = ["dist", "build", ".tox", ".ipynb_checkpoints"]
# Coverage settings ============================================================
[tool.coverage.run]
branch = true
source = ["fastoad"]
omit = ["*/test/*", "*/tests/*"]
# Lines below according to https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html#if-you-use-multiprocessing
concurrency = ["multiprocessing"]
parallel = true
sigterm = true
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ = = .__main__.:"
]