VertexEngine-CLI 1.0.1__py3-none-any.whl → 1.2rc1__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.
- vertex/__main__.py +54 -2
- vertex/templates.py +1 -1
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.2rc1.dist-info}/METADATA +6 -1
- vertexengine_cli-1.2rc1.dist-info/RECORD +10 -0
- vertexengine_cli-1.2rc1.dist-info/entry_points.txt +2 -0
- vertexengine_cli-1.0.1.dist-info/RECORD +0 -9
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.2rc1.dist-info}/WHEEL +0 -0
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.2rc1.dist-info}/licenses/LICENSE +0 -0
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.2rc1.dist-info}/top_level.txt +0 -0
vertex/__main__.py
CHANGED
|
@@ -1,16 +1,68 @@
|
|
|
1
1
|
# __main__.py
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
import os
|
|
4
|
-
|
|
4
|
+
import subprocess
|
|
5
5
|
from PyInstaller.__main__ import run as pyinstaller_run
|
|
6
6
|
|
|
7
7
|
from .minicli import CLI
|
|
8
8
|
from .templates import TEMPLATES
|
|
9
|
-
|
|
9
|
+
import sys
|
|
10
|
+
import glob
|
|
10
11
|
|
|
11
12
|
def main():
|
|
12
13
|
cli = CLI()
|
|
13
14
|
|
|
15
|
+
# -----------------
|
|
16
|
+
# Upload
|
|
17
|
+
# -----------------
|
|
18
|
+
@cli.command("upload")
|
|
19
|
+
def upload_package(dist_path="dist/*", username=None, password=None):
|
|
20
|
+
"""
|
|
21
|
+
Upload a Python package to PyPI using Twine.
|
|
22
|
+
|
|
23
|
+
dist_path: glob path to distribution files (default: dist/*)
|
|
24
|
+
username: PyPI username (optional if stored in .pypirc)
|
|
25
|
+
password: PyPI password or token (optional if stored in .pypirc)
|
|
26
|
+
"""
|
|
27
|
+
# Expand wildcards in a cross-platform way
|
|
28
|
+
files = glob.glob(dist_path)
|
|
29
|
+
if not files:
|
|
30
|
+
print(f"❌ No files found at {dist_path}")
|
|
31
|
+
return
|
|
32
|
+
|
|
33
|
+
# Use Python to call Twine (works on Windows, Linux, macOS)
|
|
34
|
+
command = [sys.executable, "-m", "twine", "upload"] + files
|
|
35
|
+
|
|
36
|
+
if username:
|
|
37
|
+
command += ["-u", username]
|
|
38
|
+
if password:
|
|
39
|
+
command += ["-p", password]
|
|
40
|
+
|
|
41
|
+
print(f"🚀 Running: {' '.join(command)}")
|
|
42
|
+
try:
|
|
43
|
+
subprocess.run(command, check=True)
|
|
44
|
+
print("✅ Upload complete!")
|
|
45
|
+
except subprocess.CalledProcessError as e:
|
|
46
|
+
print(f"❌ Upload failed: {e}")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
print(f"🚀 Running: {' '.join(command)}")
|
|
50
|
+
try:
|
|
51
|
+
subprocess.run(command, check=True)
|
|
52
|
+
print("✅ Upload complete!")
|
|
53
|
+
except subprocess.CalledProcessError as e:
|
|
54
|
+
print(f"❌ Upload failed: {e}")
|
|
55
|
+
# -----------------
|
|
56
|
+
# Remove
|
|
57
|
+
# -----------------
|
|
58
|
+
@cli.command("remove")
|
|
59
|
+
def remove_file(
|
|
60
|
+
script_path: str
|
|
61
|
+
):
|
|
62
|
+
"""Remove a script from your project."""
|
|
63
|
+
if not os.path.isfile(script_path):
|
|
64
|
+
raise FileNotFoundError(f"Script not found: {script_path}")
|
|
65
|
+
os.remove(script_path)
|
|
14
66
|
# ------------------
|
|
15
67
|
# build command
|
|
16
68
|
# ------------------
|
vertex/templates.py
CHANGED
|
@@ -43,7 +43,7 @@ TEMPLATES: dict[str, dict[str, str]] = {
|
|
|
43
43
|
app.exec()
|
|
44
44
|
"""
|
|
45
45
|
),
|
|
46
|
-
"README.md": "# VertexEngine Game\n\nGenerated with
|
|
46
|
+
"README.md": "# VertexEngine Game\n\nGenerated with VertexEngine. ✨\n",
|
|
47
47
|
".gitignore": "__pycache__/\n.env\n",
|
|
48
48
|
},
|
|
49
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: VertexEngine-CLI
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2rc1
|
|
4
4
|
Summary: An Offical CLI library for VertexEngine.
|
|
5
5
|
Author-email: Tyrel Miguel <annbasilan0828@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -22,6 +22,11 @@ Commands:
|
|
|
22
22
|
`python -m vertex build [path]` - build an exe with 2 flags:
|
|
23
23
|
`--onefile, --windowed`
|
|
24
24
|
|
|
25
|
+
### Change Logs (1.1), NEW!
|
|
26
|
+
1.1:
|
|
27
|
+
- Added 2 new commands!:
|
|
28
|
+
vertex remove {filepath}
|
|
29
|
+
vertex upload {flags}
|
|
25
30
|
## How to install Pyinstaller
|
|
26
31
|
Step 1. Type in:
|
|
27
32
|
pip install pyinstaller
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
vertex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
vertex/__main__.py,sha256=rbAfP5X9IA6tnyZ245G8nEw6okOmGJeumlKvcsCG7_U,3550
|
|
3
|
+
vertex/minicli.py,sha256=BhpqfYq5eEhwVkAa7I0AycjDmTlQ4q3S0DbSHKxLQgs,1554
|
|
4
|
+
vertex/templates.py,sha256=pEqaHWn6uBu4VjpOscrG9u2Mtp9iJ3Zs_LseyLSoZ4E,1538
|
|
5
|
+
vertexengine_cli-1.2rc1.dist-info/licenses/LICENSE,sha256=dV2_I9Rq_DHkqouiT6TD2tsQVh9pgzlqFrkT8BuW2X8,1096
|
|
6
|
+
vertexengine_cli-1.2rc1.dist-info/METADATA,sha256=e03npE6iRZAmi-beDo-c4fiKOJslIIcEWQx6drn50p8,4033
|
|
7
|
+
vertexengine_cli-1.2rc1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
vertexengine_cli-1.2rc1.dist-info/entry_points.txt,sha256=PXuYQbaV1_2GQbPRcmnP6fvtPDlrf_PatBOKp9yLsps,48
|
|
9
|
+
vertexengine_cli-1.2rc1.dist-info/top_level.txt,sha256=hUfBmDVpG0gMBhuaAWLQqXDZQkqBdFPWZY7O9NNajVg,7
|
|
10
|
+
vertexengine_cli-1.2rc1.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
vertex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
vertex/__main__.py,sha256=E3eoBSHIrM5QSmZKWZQRwjEE7IwNy4dykLZNsu5USfQ,1726
|
|
3
|
-
vertex/minicli.py,sha256=BhpqfYq5eEhwVkAa7I0AycjDmTlQ4q3S0DbSHKxLQgs,1554
|
|
4
|
-
vertex/templates.py,sha256=q4ZLYaieb2GVlgt0t7svo8B8emw_x4Jetca1kprTacI,1532
|
|
5
|
-
vertexengine_cli-1.0.1.dist-info/licenses/LICENSE,sha256=dV2_I9Rq_DHkqouiT6TD2tsQVh9pgzlqFrkT8BuW2X8,1096
|
|
6
|
-
vertexengine_cli-1.0.1.dist-info/METADATA,sha256=N09d4SK8oDSYqraSBlndwWn3E_6qWaXl18Do_iSmOuQ,3913
|
|
7
|
-
vertexengine_cli-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
vertexengine_cli-1.0.1.dist-info/top_level.txt,sha256=hUfBmDVpG0gMBhuaAWLQqXDZQkqBdFPWZY7O9NNajVg,7
|
|
9
|
-
vertexengine_cli-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|