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.

Updates pyproject.toml + CLI to work for initial installation

elijahbenizzyf2f4faf53ab4
diff --git a/README.md b/README.md
index 26b793da..bce06cd1 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ built Burr as a _harness_ to handle state between executions of Hamilton DAGs,
but realized that it has a wide array of applications and decided to release it.
# Getting Started
-``
+
To get started, install from `pypi`, using your favorite package manager:
```bash
diff --git a/burr/cli/__main__.py b/burr/cli/__main__.py
index ce9bc6d4..cdca0091 100644
--- a/burr/cli/__main__.py
+++ b/burr/cli/__main__.py
@@ -6,6 +6,7 @@ import threading
import time
import webbrowser
from contextlib import contextmanager
+from importlib.resources import files
from burr.integrations.base import require_plugin
@@ -103,8 +104,7 @@ def run_server(port: int, dev_mode: bool, no_open: bool, no_copy_demo_data: bool
base_dir = os.path.expanduser("~/.burr")
if not no_copy_demo_data:
logger.info(f"Copying demo data over to {base_dir}...")
- git_root = _get_git_root()
- demo_data_path = f"{git_root}/burr/tracking/server/demo_data"
+ demo_data_path = files("burr").joinpath("tracking/server/demo_data")
for top_level in os.listdir(demo_data_path):
if not os.path.exists(f"{base_dir}/{top_level}"):
logger.info(f"Copying {top_level} over...")
diff --git a/pyproject.toml b/pyproject.toml
index 8997cbe8..51a4d496 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -76,6 +76,10 @@ learn = [
"burr[tracking,streamlit,graphviz]"
]
+start = [
+ "burr[learn]"
+]
+
# just install everything for developers
developer = [
"burr[streamlit]",
@@ -98,6 +102,7 @@ include = ["burr", "burr.*"]
[tool.setuptools.package-data]
burr = [
"burr/tracking/server/build/**/*",
+ "burr/tracking/server/demo_data/**/*"
]
[project.urls]