Skip to content

Commit

Permalink
fix(deps): Make deepgp optional install, torchvision dev install
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Nov 21, 2023
1 parent 848d08c commit bdd55c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
poetry-version: 1.3.2

- name: Run poetry install
run: poetry install --extras "gpytorch torchvision"
run: poetry install --extras "deepgp"

- name: Run pytest
timeout-minutes: 15
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ seaborn = "^0.13"
pyyaml = "^6"
tensorboard = "^2"
# cython = "^3.0.4"
gpytorch = { version="^1.8", optional=true}

[tool.poetry.group.dev.dependencies]
pre-commit = "^3"
Expand All @@ -80,13 +81,11 @@ typing-extensions = "^4"
# jahs-bench = {git = "https://github.com/automl/jahs_bench_201.git", rev = "v1.0.2"}
mkdocs-material = "^8.1.3"
mike = "^1.1.2"
gpytorch = { version="^1.8", optional=true}
torchvision = { version="<0.16.0", optional=true}
torchvision = "<0.16.0" # Required by examples

# https://python-poetry.org/docs/master/pyproject/#extras
[tool.poetry.extras]
gpytorch = ["gyptorch"]
torchvision = ["torchvision"]
deepgp = ["gyptorch"]

[build-system]
requires = ["poetry-core>=1.1.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
try:
from .deepGP import DeepGP
except ImportError as e:
DeepGP = MissingDependencyError(libname="neps", dep="gpytorch", install_group="gpytorch", cause=e)
DeepGP = MissingDependencyError(libname="neps", dep="gpytorch", install_group="deepgp", cause=e)

try:
from .pfn import PFN_SURROGATE # only if available locally
Expand Down

0 comments on commit bdd55c1

Please sign in to comment.