Skip to content

Commit

Permalink
Removes hamilton dependency
Browse files Browse the repository at this point in the history
This way we have... zero dependencies!
  • Loading branch information
elijahbenizzy authored and skrawcz committed Mar 21, 2024
1 parent a77f76b commit fc9c68b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
11 changes: 10 additions & 1 deletion burr/integrations/hamilton.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import dataclasses
from typing import Any, Dict, Literal, Tuple, Union

from hamilton.driver import Driver
from burr.integrations.base import require_plugin

try:
from hamilton.driver import Driver
except ImportError as e:
require_plugin(
e,
["sf-hamilton"],
"hamilton",
)

from burr.core import Action, State

Expand Down
1 change: 1 addition & 0 deletions examples/gpt/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
burr[hamilton]
burr[streamlit]
openai
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "burr"
version = "0.9.0"
dependencies = [
"sf-hamilton>=1.47.0"
]
dependencies = [] # yes, there are none
requires-python = ">=3.9"
authors = [
{name = "Elijah ben Izzy", email = "[email protected]"},
Expand All @@ -30,7 +28,12 @@ classifiers = [
streamlit = [
"streamlit",
"graphviz",
"matplotlib"
"matplotlib",
"sf-hamilton"
]

hamilton = [
"sf-hamilton"
]

graphviz = [
Expand All @@ -44,6 +47,7 @@ postgresql = [
tests = [
"pytest",
"pytest-asyncio",
"burr[hamilton]"
]

documentation = [
Expand Down Expand Up @@ -79,7 +83,7 @@ tracking = [
]

learn = [
"burr[tracking,streamlit,graphviz]"
"burr[tracking,streamlit,graphviz,hamilton]"
]

start = [
Expand Down

0 comments on commit fc9c68b

Please sign in to comment.