-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
106 lines (90 loc) · 2.6 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
[project]
authors = [{ name = "DTU Wind Energy", email = "[email protected]" }]
name = "topfarm"
description = "Topfarm - Wind Farm Optimization using OpenMDAO"
license = "MIT"
readme = { file = "README", content-type = "text/x-rst" }
requires-python = ">=3.9,<3.12"
dynamic = ["version"]
dependencies = [
"py-wake>=2.6.5,<3",
"jupyterlab>=4.2.5,<5",
"pydoe3>=1.0.4,<2",
"pydoe2>=1.3.0,<2",
"shapely>=2.0.6,<3",
"openmdao<=3.26",
"matplotlib>=3.7.5,<4",
"numpy>=1.24.3,<2",
"numpy-financial>=1.0.0,<2",
"scipy>=1.10.1,<2",
"scikit-learn>=1.3.2,<2",
]
optional-dependencies = { tensorflow = ["tensorflow>=2.13.1,<3"] }
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "topfarm/_version.py"
[tool.hatch.version.raw-options]
version_scheme = "post-release"
local_scheme = "no-local-version"
[tool.hatch.build.targets.wheel]
packages = ["topfarm"]
[tool.pytest.ini_options]
norecursedirs = "topfarm/tests/deprecated_tests"
testpaths = "topfarm/tests"
addopts = "--cov-report term-missing:skip-covered --cov=topfarm"
[tool.coverage.run]
omit = [
"*/Colonel/*",
"topfarm/tests/*",
"topfarm/workshop.py",
"topfarm/deprecated_mongo_recorder.py",
"topfarm/deprecated_topfarm_problems.py",
"topfarm/constraint_components/deprecated_boundary_component.py",
"topfarm/_version.py",
"topfarm/cost_models/fuga/*",
]
[tool.coverage.report]
fail_under = 90
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "win-64"] # TODO: add macOS
[tool.pixi.dependencies]
pyoptsparse = ">=2.11.3,<3"
pytest-xdist = ">=3.6.1,<4"
pytest = ">=8.3.3,<9"
pycodestyle = ">=2.12.1,<3"
pytest-cov = ">=5.0.0,<6"
sphinx = ">=7.4.7,<8"
sphinx_rtd_theme = ">=3.0.1,<4"
mock = ">=5.1.0,<6"
hatch = ">=1.13.0,<2"
autopep8 = ">=2.3.1,<3"
git = ">=2.47.0,<3"
pre-commit = ">=4.0.1,<5"
pip = ">=24.3.1,<25"
make = ">=4.4.1,<5"
pandoc = ">=3.5,<4"
pypandoc = ">=1.14,<2"
nbsphinx = ">=0.9.5,<0.10"
nbconvert = ">=7.16.4,<8"
[tool.pixi.pypi-dependencies]
topfarm = { path = ".", editable = true }
[tool.pixi.feature.python39]
dependencies = { python = "3.9.*" }
tasks = { test39 = "pytest -n auto" }
[tool.pixi.feature.python310]
dependencies = { python = "3.10.*" }
tasks = { test310 = "pytest -n auto" }
[tool.pixi.feature.python311]
dependencies = { python = "3.11.*" }
tasks = { test311 = "pytest -n auto" }
[tool.pixi.environments]
py39 = ["python39"]
py310 = ["python310"]
py311 = ["python311"]
[tool.pixi.tasks]
test-all = { depends_on = ["test311", "test310", "test39"] }