VertexEngine-CLI 1.0.1__py3-none-any.whl → 1.1__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 +32 -1
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.1.dist-info}/METADATA +1 -1
- vertexengine_cli-1.1.dist-info/RECORD +10 -0
- vertexengine_cli-1.1.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.1.dist-info}/WHEEL +0 -0
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.1.dist-info}/licenses/LICENSE +0 -0
- {vertexengine_cli-1.0.1.dist-info → vertexengine_cli-1.1.dist-info}/top_level.txt +0 -0
vertex/__main__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
@@ -11,6 +11,37 @@ from .templates import TEMPLATES
|
|
|
11
11
|
def main():
|
|
12
12
|
cli = CLI()
|
|
13
13
|
|
|
14
|
+
# -----------------
|
|
15
|
+
# Upload
|
|
16
|
+
# -----------------
|
|
17
|
+
@cli.command("upload")
|
|
18
|
+
def upload_package(dist_path="dist/*", username=None, password=None):
|
|
19
|
+
"""
|
|
20
|
+
Upload a Python package to PyPI using Twine.
|
|
21
|
+
|
|
22
|
+
dist_path: glob path to distribution files (default: dist/*)
|
|
23
|
+
username: PyPI username (optional if stored in .pypirc)
|
|
24
|
+
password: PyPI password or token (optional if stored in .pypirc)
|
|
25
|
+
"""
|
|
26
|
+
command = ["twine", "upload", dist_path]
|
|
27
|
+
|
|
28
|
+
if username:
|
|
29
|
+
command += ["-u", username]
|
|
30
|
+
if password:
|
|
31
|
+
command += ["-p", password]
|
|
32
|
+
|
|
33
|
+
subprocess.run(command, check=True)
|
|
34
|
+
# -----------------
|
|
35
|
+
# Remove
|
|
36
|
+
# -----------------
|
|
37
|
+
@cli.command("remove")
|
|
38
|
+
def remove_file(
|
|
39
|
+
script_path: str
|
|
40
|
+
):
|
|
41
|
+
"""Remove a script from your project."""
|
|
42
|
+
if not os.path.isfile(script_path):
|
|
43
|
+
raise FileNotFoundError(f"Script not found: {script_path}")
|
|
44
|
+
os.remove(script_path)
|
|
14
45
|
# ------------------
|
|
15
46
|
# build command
|
|
16
47
|
# ------------------
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
vertex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
vertex/__main__.py,sha256=ZARq5h6cqu7pzlqDRuYZEW5xsHFddTjNfqkx5Eb1aSQ,2765
|
|
3
|
+
vertex/minicli.py,sha256=BhpqfYq5eEhwVkAa7I0AycjDmTlQ4q3S0DbSHKxLQgs,1554
|
|
4
|
+
vertex/templates.py,sha256=q4ZLYaieb2GVlgt0t7svo8B8emw_x4Jetca1kprTacI,1532
|
|
5
|
+
vertexengine_cli-1.1.dist-info/licenses/LICENSE,sha256=dV2_I9Rq_DHkqouiT6TD2tsQVh9pgzlqFrkT8BuW2X8,1096
|
|
6
|
+
vertexengine_cli-1.1.dist-info/METADATA,sha256=AW3WQ0a6FMXv1O12vfaAxBlx_VjD31gar-BkRwecrrU,3911
|
|
7
|
+
vertexengine_cli-1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
vertexengine_cli-1.1.dist-info/entry_points.txt,sha256=PXuYQbaV1_2GQbPRcmnP6fvtPDlrf_PatBOKp9yLsps,48
|
|
9
|
+
vertexengine_cli-1.1.dist-info/top_level.txt,sha256=hUfBmDVpG0gMBhuaAWLQqXDZQkqBdFPWZY7O9NNajVg,7
|
|
10
|
+
vertexengine_cli-1.1.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
|