Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes hamilton dependency #96

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading