Skip to content

Commit

Permalink
chore: tf and torch are not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoRobbiati committed Nov 4, 2024
1 parent 6110339 commit c5af099
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 46 deletions.
43 changes: 1 addition & 42 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ packages = [{ include = "qiboml", from = "src" }]
python = ">=3.9,<3.13"
numpy = "^1.26.4"
keras = { version = "^3.0.0", optional = true }
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'", optional = true }
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'"}
# 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
# the tensorflow requirements
torch = { version = "^2.3.1", optional = true }
torch = { version = "^2.3.1"}
qibo = {git="https://github.com/qiboteam/qibo"}
jax = "^0.4.25"
jaxlib = "^0.4.25"
Expand All @@ -33,8 +33,6 @@ pdbpp = "^0.10.3"
optional = true

[tool.poetry.group.tests.dependencies]
torch = "^2.3.1"
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux'" }
pytest = "^7.2.1"
pylint = "3.1.0"
pytest-cov = "4.0.0"
Expand Down

0 comments on commit c5af099

Please sign in to comment.