Skip to content

Commit

Permalink
Add vision extra sub-module (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop authored Jan 22, 2024
1 parent d364669 commit 5b4de3f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdm.lock

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

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ dependencies = [
]

[project.optional-dependencies]
vision = [
]
all = ["eva[vision]"]
lint = [
"isort>=5.12.0",
"black>=23.1.0",
Expand Down
10 changes: 10 additions & 0 deletions src/eva/vision/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""EVA vision API."""
try:
pass
except ImportError as e:
msg = (
"EVA vision requirements are not installed.\n\n"
"Please pip install as follows:\n"
' python -m pip install "eva[vision]" --upgrade'
)
raise ImportError(str(e) + "\n\n" + msg) from e

0 comments on commit 5b4de3f

Please sign in to comment.