Skip to content

Commit

Permalink
fix -v
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Oct 10, 2024
1 parent d06cf14 commit e6b9f6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion agentstack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys

from agentstack.cli import init_project_builder, list_tools
from .utils import get_version
from agentstack.utils import get_version
import agentstack.generation as generation


Expand Down
7 changes: 4 additions & 3 deletions agentstack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

def get_version():
try:
with open('pyproject.toml', 'r') as f:
with open('../pyproject.toml', 'r') as f:
pyproject_data = toml.load(f)
return pyproject_data['tool']['poetry']['version']
except (KeyError, FileNotFoundError):
return pyproject_data['project']['version']
except (KeyError, FileNotFoundError) as e:
print(e)
return "Unknown version"


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "agentstack"
version = "0.0.3"
version = "0.0.4"
description = "The fastest way to build robust AI agents"
authors = [
{ name="Braelyn Boynton", email="[email protected]" }
Expand Down

0 comments on commit e6b9f6a

Please sign in to comment.