create-browser-app 0.1.13__py3-none-any.whl → 0.1.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- create_browser_app/main.py +9 -24
- {create_browser_app-0.1.13.dist-info → create_browser_app-0.1.14.dist-info}/METADATA +1 -1
- create_browser_app-0.1.14.dist-info/RECORD +9 -0
- create_browser_app-0.1.13.dist-info/RECORD +0 -9
- {create_browser_app-0.1.13.dist-info → create_browser_app-0.1.14.dist-info}/WHEEL +0 -0
- {create_browser_app-0.1.13.dist-info → create_browser_app-0.1.14.dist-info}/entry_points.txt +0 -0
- {create_browser_app-0.1.13.dist-info → create_browser_app-0.1.14.dist-info}/top_level.txt +0 -0
create_browser_app/main.py
CHANGED
|
@@ -68,32 +68,17 @@ def main(name, template):
|
|
|
68
68
|
else:
|
|
69
69
|
console.print(f"[yellow]⚠[/yellow] Could not fetch template, using basic template")
|
|
70
70
|
|
|
71
|
-
#
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
# Create requirements.txt or pyproject.toml (prefer template's version)
|
|
76
|
-
if "pyproject.toml" in template_files:
|
|
77
|
-
(project_path / "pyproject.toml").write_text(template_files["pyproject.toml"])
|
|
78
|
-
elif "requirements.txt" in template_files:
|
|
79
|
-
(project_path / "requirements.txt").write_text(template_files["requirements.txt"])
|
|
71
|
+
# Write all template files to the project
|
|
72
|
+
if template_files:
|
|
73
|
+
for filename, content in template_files.items():
|
|
74
|
+
(project_path / filename).write_text(content)
|
|
80
75
|
else:
|
|
76
|
+
# Fallback to basic template defaults
|
|
77
|
+
(project_path / "main.py").write_text(TEMPLATE_BASIC)
|
|
81
78
|
(project_path / "requirements.txt").write_text(TEMPLATE_REQUIREMENTS)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if "README.md" in template_files:
|
|
86
|
-
readme_file.write_text(template_files["README.md"])
|
|
87
|
-
else:
|
|
88
|
-
readme_file.write_text(TEMPLATE_README.format(project_name=project_name))
|
|
89
|
-
|
|
90
|
-
# Create .env.example (prefer template's version)
|
|
91
|
-
env_file = project_path / ".env.example"
|
|
92
|
-
env_file.write_text(template_files.get(".env.example", TEMPLATE_ENV))
|
|
93
|
-
|
|
94
|
-
# Create .gitignore (always use default)
|
|
95
|
-
gitignore_file = project_path / ".gitignore"
|
|
96
|
-
gitignore_file.write_text(TEMPLATE_GITIGNORE)
|
|
79
|
+
(project_path / "README.md").write_text(TEMPLATE_README.format(project_name=project_name))
|
|
80
|
+
(project_path / ".env.example").write_text(TEMPLATE_ENV)
|
|
81
|
+
(project_path / ".gitignore").write_text(TEMPLATE_GITIGNORE)
|
|
97
82
|
|
|
98
83
|
# Success message
|
|
99
84
|
console.print(f"[green]✓[/green] Find your project at [cyan]{project_path}[/cyan]\n")
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
create_browser_app/__init__.py,sha256=izlkaSvrxNqPnulbHlD8VYldR618NxRQRlKQFgQn0Gk,42
|
|
2
|
+
create_browser_app/main.py,sha256=oU02yImNWoDAVyk5ULupJUJ4WDfnSreW2TCpjmHwkbw,4637
|
|
3
|
+
create_browser_app/template_fetcher.py,sha256=vpt19HVQLZ8_3It9cEAJhZzAh1KLVj0-ajV4CvgKXBg,4297
|
|
4
|
+
create_browser_app/templates.py,sha256=Vt1oGrWuYfpM0Z8QsY20B7d3x2qHVoUTS3poDihsTvM,3172
|
|
5
|
+
create_browser_app-0.1.14.dist-info/METADATA,sha256=mRBPpJkk4QXzqn8X5C2fbQcc53T2hbkHn7lHmvIunf0,656
|
|
6
|
+
create_browser_app-0.1.14.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
+
create_browser_app-0.1.14.dist-info/entry_points.txt,sha256=yyAKhFZs2kraGA_ixwnRZeStL0uxWvBCMzysg8S-0VE,68
|
|
8
|
+
create_browser_app-0.1.14.dist-info/top_level.txt,sha256=sLW8imVtlXvOy1D5aGPBDxbMP3Yvonif7VxcLu_Izy4,19
|
|
9
|
+
create_browser_app-0.1.14.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
create_browser_app/__init__.py,sha256=izlkaSvrxNqPnulbHlD8VYldR618NxRQRlKQFgQn0Gk,42
|
|
2
|
-
create_browser_app/main.py,sha256=Za2sMGbdimGFenChqkMRDageOa2dlGfV7nHPsLc_XoE,5268
|
|
3
|
-
create_browser_app/template_fetcher.py,sha256=vpt19HVQLZ8_3It9cEAJhZzAh1KLVj0-ajV4CvgKXBg,4297
|
|
4
|
-
create_browser_app/templates.py,sha256=Vt1oGrWuYfpM0Z8QsY20B7d3x2qHVoUTS3poDihsTvM,3172
|
|
5
|
-
create_browser_app-0.1.13.dist-info/METADATA,sha256=mqC7AKLl3NugReLFCT6LFvxJIXhDF6J_A7fL3C4FK5A,656
|
|
6
|
-
create_browser_app-0.1.13.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
-
create_browser_app-0.1.13.dist-info/entry_points.txt,sha256=yyAKhFZs2kraGA_ixwnRZeStL0uxWvBCMzysg8S-0VE,68
|
|
8
|
-
create_browser_app-0.1.13.dist-info/top_level.txt,sha256=sLW8imVtlXvOy1D5aGPBDxbMP3Yvonif7VxcLu_Izy4,19
|
|
9
|
-
create_browser_app-0.1.13.dist-info/RECORD,,
|
|
File without changes
|
{create_browser_app-0.1.13.dist-info → create_browser_app-0.1.14.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|