Skip to content

Commit 7543065

Browse files
committed
feat: add gurobi as an optional dependency
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
1 parent 5baf606 commit 7543065

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "COMO"
37
dynamic = ["version"]
@@ -8,7 +12,6 @@ dependencies = [
812
"cobamp@git+https://github.com/JoshLoecker/cobamp@master",
913
"cobra>=0.28.0",
1014
"fast-bioservices>=0.3.9",
11-
"gurobipy>=11.0",
1215
"kaleido==0.2.1",
1316
"loguru>=0.7.2",
1417
"openpyxl>=3.1.5",
@@ -24,14 +27,21 @@ dependencies = [
2427
]
2528

2629
[project.optional-dependencies]
27-
interactive = [
30+
gurobi = [ "gurobipy>=10.0.0" ]
31+
interactive = [
2832
"ipython>=8.0.0",
29-
"jupyterlab>=4.3.2",
33+
"jupyterlab>=4.3.2"
34+
]
35+
dev = [
36+
"commitlint>=1.3.0",
37+
"pytest-asyncio>=0.24.0",
38+
"pytest>=8.3.3",
39+
"ruff>=0.8.0",
40+
"hypothesis>=6.122.1",
41+
"pytest-cov>=6.0.0",
42+
"commitizen>=4.1.0",
3043
]
3144

32-
[build-system]
33-
requires = ["hatchling"]
34-
build-backend = "hatchling.build"
3545

3646
[tool.hatch.version]
3747
path = "main/como/__init__.py"
@@ -45,18 +55,6 @@ allow-direct-references = true
4555
[tool.pytest.ini_options]
4656
pythonpath = [ "main/src" ]
4757

48-
[tool.uv]
49-
dev-dependencies = [
50-
"commitlint>=1.3.0",
51-
"pytest-asyncio>=0.24.0",
52-
"pytest>=8.3.3",
53-
"ruff>=0.8.0",
54-
"hypothesis>=6.122.1",
55-
"pytest-cov>=6.0.0",
56-
"commitizen>=4.1.0",
57-
"cz-conventional-gitmoji>=0.6.1",
58-
]
59-
6058
[tool.commitizen]
6159
name = "cz_conventional_commits"
6260
tag_format = "$version"

0 commit comments

Comments
 (0)