Skip to content

Commit 7b08e2d

Browse files
small improvements (#107)
1 parent 098212f commit 7b08e2d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/pyscript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import platformdirs
66
from rich.console import Console
77

8-
LATEST_PYSCRIPT_VERSION = "2023.03.1"
8+
LATEST_PYSCRIPT_VERSION = "2023.05.1"
99
APPNAME = "pyscript"
1010
APPAUTHOR = "python"
1111
DEFAULT_CONFIG_FILENAME = ".pyscriptconfig"

src/pyscript/_generator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def save_config_file(config_file: Path, configuration: dict):
5454
5555
Params:
5656
57-
- config_file(Path): path configuration file. (I.e.: "pyscript.toml"). Supported
57+
- config_file(Path): path configuration file. (i.e.: "pyscript.toml"). Supported
5858
formats: `toml` and `json`.
5959
- configuration(dict): app configuration to be saved
6060
@@ -72,7 +72,7 @@ def string_to_html(
7272
code: str,
7373
title: str,
7474
output_path: Path,
75-
template_name: str = "basic.html",
75+
template_name: str = "wrap.html",
7676
pyscript_version: str = LATEST_PYSCRIPT_VERSION,
7777
) -> None:
7878
"""Write a Python script string to an HTML file template.
@@ -101,7 +101,7 @@ def file_to_html(
101101
input_path: Path,
102102
title: str,
103103
output_path: Optional[Path],
104-
template_name: str = "basic.html",
104+
template_name: str = "wrap.html",
105105
pyscript_version: str = LATEST_PYSCRIPT_VERSION,
106106
) -> None:
107107
"""Write a Python script string to an HTML file template."""
@@ -126,13 +126,14 @@ def create_project(
126126
127127
TODO: more files to add to the core project start state.
128128
"""
129+
date_stamp = datetime.date.today()
129130
context = {
130131
"name": app_name,
131132
"description": app_description,
132133
"type": "app",
133134
"author_name": author_name,
134135
"author_email": author_email,
135-
"version": f"{datetime.date.today().year}.1.1",
136+
"version": f"{date_stamp.year}.{date_stamp.month}.1",
136137
}
137138
app_dir = Path(".") / app_name
138139
app_dir.mkdir()

0 commit comments

Comments
 (0)