Skip to content

Commit 0467a79

Browse files
committed
Migrate project metadata to standard format (not poetry).
1 parent 8676d68 commit 0467a79

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

agentstack/generation/files.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,25 @@ def __init__(self, filename: str = PYPROJECT_FILENAME):
113113

114114
@property
115115
def project_metadata(self) -> dict:
116+
"""
117+
[project]
118+
name = "project_name"
119+
version = "0.0.1"
120+
description = "foo bar"
121+
authors = [
122+
{ name = "Name <Email>" }
123+
]
124+
license = { text = "MIT" }
125+
requires-python = ">=3.10"
126+
127+
dependencies = [
128+
...
129+
]
130+
"""
116131
try:
117-
return self._data['tool']['poetry']
132+
return self._data['project']
118133
except KeyError:
119-
raise KeyError("No poetry metadata found in pyproject.toml.")
134+
raise KeyError("No project metadata found in pyproject.toml.")
120135

121136
@property
122137
def project_name(self) -> str:

0 commit comments

Comments
 (0)