Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert change to version
  • Loading branch information
FabioRosado committed Feb 28, 2024
commit e1f2d0baae21348a8bf0850b32f3d4fb748af964
4 changes: 3 additions & 1 deletion src/pyscript/_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import json
from pathlib import Path
from typing import Optional
Expand Down Expand Up @@ -109,13 +110,14 @@ def create_project(
if not pyscript_version:
pyscript_version = _get_latest_pyscript_version()

date_stamp = datetime.date.today()
context = {
"name": app_name,
"description": app_description,
"type": "app",
"author_name": author_name,
"author_email": author_email,
"version": pyscript_version,
"version": f"{date_stamp.year}.{'{:02d}'.format(date_stamp.month)}.1",
}

app_dir = Path(".") / app_name
Expand Down