Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes for pypi distribution

elijahbenizzyb933eab49a55
diff --git a/burr/core/application.py b/burr/core/application.py
index ae3539b9..e08bd80c 100644
--- a/burr/core/application.py
+++ b/burr/core/application.py
@@ -309,7 +309,7 @@ class Application:
except ModuleNotFoundError:
logger.exception(
" graphviz is required for visualizing the application graph. Install it with:"
- '\n\n pip install "burr[visualization]" or pip install graphviz \n\n'
+ '\n\n pip install "burr[graphviz]" or pip install graphviz \n\n'
)
return
digraph_attr = dict(
diff --git a/burr/integrations/streamlit.py b/burr/integrations/streamlit.py
index 8b4ab70f..f7f77565 100644
--- a/burr/integrations/streamlit.py
+++ b/burr/integrations/streamlit.py
@@ -1,3 +1,4 @@
+import colorsys
import dataclasses
import inspect
import json
@@ -9,15 +10,13 @@ from burr.integrations.base import require_plugin
from burr.integrations.hamilton import Hamilton, StateSource
try:
- import colorsys
-
import graphviz
import matplotlib.colors as mc
import streamlit as st
except ImportError as e:
require_plugin(
e,
- ["streamlit", "graphviz", "colorsys", "matplotlib"],
+ ["streamlit", "graphviz", "matplotlib"],
"streamlit",
)
diff --git a/docs/getting_started/install.rst b/docs/getting_started/install.rst
index 2bb7d2c6..0d32cd08 100644
--- a/docs/getting_started/install.rst
+++ b/docs/getting_started/install.rst
@@ -3,17 +3,17 @@ Installing
==========
Burr requires almost no dependencies. Every "extra"/"plugin" is an additional install target. Note, if you're using ``zsh``,
-you'll need to add quotes around the install target, like `pip install "burr[visualization]"`.
+you'll need to add quotes around the install target, like `pip install "burr[graphviz]"`.
.. code-block:: bash
pip install burr
-To get visualization capabilities, you can install the `burr[visualization]` extra:
+To get visualization capabilities, you can install the `burr[graphviz]` extra:
.. code-block:: bash
- pip install burr[visualization]
+ pip install burr[graphviz]
And to visualize your state machines on streamlit, you can install the `burr[streamlit]` extra:
diff --git a/docs/getting_started/simple-example.rst b/docs/getting_started/simple-example.rst
index c87314aa..98b93dd7 100644
--- a/docs/getting_started/simple-example.rst
+++ b/docs/getting_started/simple-example.rst
@@ -59,7 +59,7 @@ Next, let's put together our application. To do this, we'll use an ``Application
)
-We can visualize the application (note you need ``burr[visualization]`` installed):
+We can visualize the application (note you need ``burr[graphviz]`` installed):
.. code-block:: python
diff --git a/examples/cowsay/requirements.txt b/examples/cowsay/requirements.txt
index 3155b767..ee7475ae 100644
--- a/examples/cowsay/requirements.txt
+++ b/examples/cowsay/requirements.txt
@@ -1,2 +1,2 @@
+burr[streamlit,graphviz]
cowsay
-dw-burr[streamlit]
diff --git a/pyproject.toml b/pyproject.toml
index 9316885a..3327cb5e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "burr"
-version = "0.0.1"
+version = "0.1.0"
dependencies = [
"sf-hamilton>=1.47.0"
]
@@ -28,7 +28,9 @@ classifiers = [
[project.optional-dependencies]
streamlit = [
- "streamlit"
+ "streamlit",
+ "graphviz",
+ "matplotlib"
]
graphviz = [
@@ -50,13 +52,10 @@ documentation = [
]
[tool.poetry.packages]
-include = [
- { include = "burr", from = "." },
-]
-
+py_modules = ["burr"]
[project.urls]
Homepage = "https://github.com/dagworks-inc/burr"
Documentation = "https://github.com/dagworks-inc/burr"
Repository = "https://github.com/dagworks-inc/burr"
-"Bug Tracker" = "https://github.com/dagworks-inc/burr"
\ No newline at end of file
+"Bug Tracker" = "https://github.com/dagworks-inc/burr"