Skip to content

Commit e5cba25

Browse files
authored
Massage TOML schema to fit API expectations. (#32)
1 parent 5fa186e commit e5cba25

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyscript"
7-
version = "0.2.2"
7+
version = "0.2.3"
88
description = "Command Line Interface for PyScript"
99
authors = [
1010
"Matt Kramer <[email protected]>",

src/pyscript/_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ def create_project(
3838
TODO: more files to add to the core project start state.
3939
"""
4040
context = {
41-
"app_name": app_name,
42-
"app_description": app_description,
41+
"name": app_name,
42+
"description": app_description,
43+
"type": "app",
4344
"author_name": author_name,
4445
"author_email": author_email,
4546
"version": f"{datetime.date.today().year}.1.1",

tests/test_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def test_create_project(tmp_cwd: Path, is_not_none: Any) -> None:
2626
contents = toml.load(fp)
2727

2828
assert contents == {
29-
"app_name": "app_name",
30-
"app_description": "A longer, human friendly, app description.",
29+
"name": "app_name",
30+
"description": "A longer, human friendly, app description.",
31+
"type": "app",
3132
"author_name": "A.Coder",
3233
"author_email": "[email protected]",
3334
"created_on": is_not_none,

0 commit comments

Comments
 (0)