Skip to content

Commit 6951e9f

Browse files
feat: fixed pyproject and publish workflow
1 parent a55e727 commit 6951e9f

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: docs
33
on:
44
workflow_dispatch:
55
push:
6-
6+
branches: [main]
7+
tags:
8+
- "*"
79
jobs:
810
evaluate-label:
911
runs-on: ubuntu-latest
@@ -21,7 +23,7 @@ jobs:
2123
echo "No deployment for this ref" >&2
2224
exit 1
2325
fi
24-
26+
2527
2628
deploy-docs:
2729
needs: [evaluate-label]

pyproject.toml

+15-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ documentation = "https://qibo.science/docs/qiboml/stable"
1414
packages = [{ include = "qiboml", from = "src" }]
1515

1616
[tool.poetry.dependencies]
17-
python = ">=3.9,<3.13"
18-
numpy = "^1.26.4"
17+
python = ">=3.10,<3.13"
18+
numpy = "^2.0.0"
1919
keras = { version = "^3.0.0", optional = true }
2020
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'", optional = true }
2121
# TODO: the marker is a temporary solution due to the lack of the tensorflow-io 0.32.0's wheels for Windows, this package is one of
@@ -62,6 +62,19 @@ torch = { version = "^2.3.1"}
6262
[tool.poetry.group.benchmark.dependencies]
6363
pytest-benchmark = { version = "^4.0.0", extras = ["histogram"] }
6464

65+
[tool.poetry.group.cuda11]
66+
optional = true
67+
68+
[tool.poetry.group.cuda11.dependencies]
69+
jax = {extras = ["cuda11"], version = "^0.4.25"}
70+
71+
[tool.poetry.group.cuda12]
72+
optional = true
73+
74+
[tool.poetry.group.cuda12.dependencies]
75+
jax = {extras = ["cuda12"], version = "^0.4.25"}
76+
77+
6578
[tool.poe.tasks]
6679
bench = "pytest benchmarks/"
6780
test = "pytest"

0 commit comments

Comments
 (0)