Skip to content

Commit

Permalink
chore: Add upper version bound on VegaFusion (#3638)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Redding <[email protected]>
  • Loading branch information
jonmmease and dangotbanned authored Oct 13, 2024
1 parent 8135911 commit 2032036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion altair/utils/_importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
def import_vegafusion() -> ModuleType:
min_version = "1.5.0"
try:
import vegafusion as vf # type: ignore

version = importlib_version("vegafusion")
embed_version = importlib_version("vegafusion-python-embed")
if version != embed_version or Version(version) < Version(min_version):
Expand All @@ -23,7 +25,6 @@ def import_vegafusion() -> ModuleType:
f" - vegafusion-python-embed=={embed_version}\n"
)
raise RuntimeError(msg)
import vegafusion as vf # type: ignore

return vf
except ImportError as err:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ all = [
"pandas>=0.25.3",
"numpy",
"pyarrow>=11",
"vegafusion[embed]>=1.6.6",
"vegafusion[embed]>=1.6.6,<2",
"anywidget>=0.9.0",
"altair_tiles>=0.3.0"
]
Expand Down

0 comments on commit 2032036

Please sign in to comment.