-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (104 loc) · 3.15 KB
/
pyproject.toml
File metadata and controls
122 lines (104 loc) · 3.15 KB
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
[project]
authors = [{ name = "DTU Wind Energy", email = "mikf@dtu.dk" }]
name = "topfarm"
description = "Topfarm - Wind Farm Optimization using OpenMDAO"
license = "MIT"
readme = { file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.11,<3.14"
dynamic = ["version"]
dependencies = [
"py-wake>=2.6.5,<3,!=2.6.14,!=2.6.15",
"optiwindnet",
"costmodels",
"jupyterlab>=4.2.5,<5",
"pydoe3>=1.0.4,<2",
"pydoe2>=1.3.0,<2",
"shapely>=2.0.6,<3",
"openmdao==3.39.*",
"matplotlib>=3.7.5,<4",
"numpy>=1.24.3,<3",
"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", "topfarm/tests/test_fuga"]
testpaths = "topfarm/tests"
addopts = "--cov-report=term-missing:skip-covered --cov-report=html --cov=topfarm --dist=worksteal"
[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.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "win-64", "osx-arm64"]
[tool.pixi.system-requirements]
libc = "2.34"
[tool.pixi.dependencies]
pytest-xdist = ">=3.6.1,<4"
pytest = ">=8.3.3,<9"
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"
ffmpeg = ">=7.1.0,<8"
netcdf4 = ">=1.7.2,<2"
hdf5 = ">=1.14.4,<2"
pyoptsparse = ">=2.11.3,<3"
numpy = "<2.3"
cyipopt = ">=1.6.1,<2"
sphinx-tags = ">=0.0.0,<1"
gdal = ">=3.9,<4" # Resolve GDAL via conda-forge (prebuilt osx-arm64), avoid pip build
jsonschema-with-format-nongpl = ">=4.25.1,<5" # Provides jsonschema
libsqlite = ">=3.40,<4" # ensure a modern libsqlite3 is present in the env
[tool.pixi.pypi-dependencies]
topfarm = { path = ".", editable = true }
[tool.pixi.feature.python311]
dependencies = { python = "3.11.*" }
tasks = { test311 = "pytest -n auto" }
[tool.pixi.feature.python312]
dependencies = { python = "3.12.*" }
tasks = { test312 = "pytest -n auto" }
[tool.pixi.feature.python313]
dependencies = { python = "3.13.*" }
tasks = { test313 = "pytest -n auto" }
[tool.pixi.environments]
py311 = ["python311"]
py312 = ["python312"]
py313 = ["python313"]
default = ["python313"]
[tool.pixi.tasks]
test-all = { depends-on = ["test312", "test311"] }
test-latest = { depends-on = ["test313"] }