Skip to content

Commit

Permalink
chore(weave): Move to hatch build (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong authored Oct 4, 2024
1 parent be3e003 commit 63d0a9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
24 changes: 17 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,24 @@ Changes = "https://github.com/wandb/weave/releases"
Twitter = "https://twitter.com/weights_biases"

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["weave"]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "weave/version.py"

[tool.hatch.build]
include = ["weave"]
exclude = [
"weave_query",
"weave-js",
"examples",
"tests",
"docs",
"dev_docs",
"weave/clear_cache.py",
]

[tool.setuptools.dynamic]
version = { attr = "weave.version.VERSION" }

[tool.pytest.ini_options]
filterwarnings = [
Expand Down
1 change: 1 addition & 0 deletions weave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

__version__ = version.VERSION


from weave.flow.agent import Agent as Agent
from weave.flow.agent import AgentState as AgentState
from weave.flow.dataset import Dataset
Expand Down

0 comments on commit 63d0a9e

Please sign in to comment.