VIStk 0.3.7__py3-none-any.whl → 0.3.10__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.
Potentially problematic release.
This version of VIStk might be problematic. Click here for more details.
- VIS/Templates/spec.txt +2 -2
- VIS/Templates/version.txt +30 -0
- VIS/VIS.py +5 -7
- VIS/project.py +97 -19
- VIS/release.py +118 -67
- {vistk-0.3.7.dist-info → vistk-0.3.10.dist-info}/METADATA +1 -1
- vistk-0.3.10.dist-info/RECORD +18 -0
- vistk-0.3.7.dist-info/RECORD +0 -17
- {vistk-0.3.7.dist-info → vistk-0.3.10.dist-info}/WHEEL +0 -0
- {vistk-0.3.7.dist-info → vistk-0.3.10.dist-info}/entry_points.txt +0 -0
- {vistk-0.3.7.dist-info → vistk-0.3.10.dist-info}/licenses/LICENSE +0 -0
- {vistk-0.3.7.dist-info → vistk-0.3.10.dist-info}/top_level.txt +0 -0
VIS/Templates/spec.txt
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UTF-8
|
|
2
|
+
|
|
3
|
+
VSVersionInfo(
|
|
4
|
+
ffi=FixedFileInfo(
|
|
5
|
+
filevers=($sM$,$sm$,$sp$,0),
|
|
6
|
+
prodvers=($M$,$m$,$p$,0),
|
|
7
|
+
mask=0x3f,
|
|
8
|
+
flags=0x0,
|
|
9
|
+
OS=0x40004,
|
|
10
|
+
fileType=0x1,
|
|
11
|
+
subtype=0x0,
|
|
12
|
+
date=(0, 0)
|
|
13
|
+
),
|
|
14
|
+
kids=[
|
|
15
|
+
StringFileInfo(
|
|
16
|
+
[
|
|
17
|
+
StringTable(
|
|
18
|
+
u'040904B0',
|
|
19
|
+
[StringStruct(u'CompanyName', u'$company$'),
|
|
20
|
+
StringStruct(u'FileDescription', u'$desc$'),
|
|
21
|
+
StringStruct(u'FileVersion', u'$sM$.$sm$.$sp$'),
|
|
22
|
+
StringStruct(u'InternalName', u'$title$-$name$'),
|
|
23
|
+
StringStruct(u'LegalCopyright', u'Copyright © $year$ $company$'),
|
|
24
|
+
StringStruct(u'OriginalFilename', u'$name$.exe'),
|
|
25
|
+
StringStruct(u'ProductName', u'$name$'),
|
|
26
|
+
StringStruct(u'ProductVersion', u'$M$.$m$.$p$')])
|
|
27
|
+
]),
|
|
28
|
+
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
|
|
29
|
+
]
|
|
30
|
+
)
|
VIS/VIS.py
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
import os
|
|
3
3
|
import zipfile
|
|
4
|
-
import subprocess
|
|
5
|
-
import shutil
|
|
6
4
|
from VIS.project import *
|
|
7
5
|
from importlib import metadata
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
from VIS.release import newRelease
|
|
11
7
|
|
|
12
8
|
inp = sys.argv
|
|
13
9
|
print(f"VIS Version {metadata.version("VIStk")}")
|
|
@@ -51,5 +47,7 @@ def __main__():
|
|
|
51
47
|
print("Screen does not exist")
|
|
52
48
|
|
|
53
49
|
case "release" | "Release" | "r" | "R":
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
if len(inp) == 4:
|
|
51
|
+
newRelease(inp[2],inp[3])
|
|
52
|
+
else:
|
|
53
|
+
newRelease(inp[2])
|
VIS/project.py
CHANGED
|
@@ -76,16 +76,37 @@ class VINFO():
|
|
|
76
76
|
#DO NOT MESS WITH THE TEMPLATE HEADERS
|
|
77
77
|
|
|
78
78
|
title = input("Enter a name for the VIS project: ")
|
|
79
|
-
|
|
79
|
+
self.title = title
|
|
80
80
|
info = {}
|
|
81
|
-
info[title] = {}
|
|
82
|
-
info[title]["Screens"]={}
|
|
83
|
-
info[title]["defaults"]={}
|
|
84
|
-
info[title]["defaults"]["icon"]="VIS"#default icon
|
|
81
|
+
info[self.title] = {}
|
|
82
|
+
info[self.title]["Screens"]={}
|
|
83
|
+
info[self.title]["defaults"]={}
|
|
84
|
+
info[self.title]["defaults"]["icon"]="VIS"#default icon
|
|
85
|
+
self.d_icon = "VIS"
|
|
86
|
+
self[self.title]["metadata"]={}
|
|
87
|
+
comp = input("What company is this for(or none)? ")
|
|
88
|
+
if not comp in ["none","None"]:
|
|
89
|
+
info[self.title]["metadata"]["company"] = comp
|
|
90
|
+
self.company = comp
|
|
91
|
+
else:
|
|
92
|
+
info[self.title]["metadata"]["company"] = None
|
|
93
|
+
self.company = None
|
|
94
|
+
|
|
95
|
+
version = input("What is the initial version for the project (0.0.1 default): ")
|
|
96
|
+
vers = version.split(".")
|
|
97
|
+
if len(vers)==3:
|
|
98
|
+
if vers[0].isnumeric() and vers[1].isnumeric() and vers[2].isnumeric():
|
|
99
|
+
self.version = version
|
|
100
|
+
else:
|
|
101
|
+
self.version = "0.0.1"
|
|
102
|
+
else:
|
|
103
|
+
self.version = "0.0.1"
|
|
104
|
+
info[self.title]["metadata"]["version"] = self.version
|
|
105
|
+
|
|
85
106
|
with open(wd+"/.VIS/project.json","w") as f:
|
|
86
107
|
f.write("{}")
|
|
87
108
|
json.dump(info,f,indent=4)
|
|
88
|
-
print(f"Setup project.json for project {title} in {wd}/.VIS/")
|
|
109
|
+
print(f"Setup project.json for project {self.title} in {wd}/.VIS/")
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
#Need to get current python location where VIS is installed
|
|
@@ -95,39 +116,73 @@ class VINFO():
|
|
|
95
116
|
self.p_project = getPath()
|
|
96
117
|
self.p_vinfo = self.p_project + "/.VIS"
|
|
97
118
|
self.p_sinfo = self.p_vinfo + "/project.json"
|
|
98
|
-
with open(self.p_sinfo,"r") as f:
|
|
119
|
+
with open(self.p_sinfo,"r") as f:
|
|
120
|
+
info = json.load(f)
|
|
121
|
+
self.title = list(info.keys())[0]
|
|
122
|
+
self.version = info[self.title]["metadata"]["version"]
|
|
123
|
+
self.company = info[self.title]["metadata"]["company"]
|
|
124
|
+
|
|
125
|
+
self.screenlist = []
|
|
99
126
|
self.p_screens = self.p_project +"/Screens"
|
|
100
127
|
self.p_modules = self.p_project +"/modules"
|
|
101
128
|
self.p_templates = self.p_vinfo + "/Templates"
|
|
102
|
-
self.
|
|
129
|
+
self.p_icons = self.p_project + "/Icons"
|
|
130
|
+
self.p_images = self.p_project + "/Images"
|
|
131
|
+
|
|
132
|
+
def setVersion(self,version:str):
|
|
133
|
+
"""Sets a new project version
|
|
134
|
+
"""
|
|
135
|
+
with open(self.p_sinfo,"r") as f:
|
|
136
|
+
info = json.load(f)
|
|
137
|
+
|
|
138
|
+
info[self.title]["metadata"]["version"] = version
|
|
139
|
+
|
|
140
|
+
with open(self.p_sinfo,"w") as f:
|
|
141
|
+
json.dump(info,f,indent=4)
|
|
142
|
+
|
|
103
143
|
|
|
104
144
|
class Screen(VINFO):
|
|
105
145
|
"""A VIS screen object
|
|
106
146
|
"""
|
|
107
|
-
def __init__(self,name:str,script:str,release:bool=False,icon:str=None,exists:bool=True):
|
|
147
|
+
def __init__(self,name:str,script:str,release:bool=False,icon:str=None,exists:bool=True,desc:str=None):
|
|
108
148
|
super().__init__()
|
|
109
149
|
self.name=name
|
|
110
150
|
self.script=script
|
|
111
151
|
self.release=release
|
|
112
152
|
self.icon=icon
|
|
113
|
-
self.path = self.p_screens+"/"+name
|
|
114
|
-
self.m_path = self.p_modules+"/"+name
|
|
153
|
+
self.path = self.p_screens+"/"+self.name
|
|
154
|
+
self.m_path = self.p_modules+"/"+self.name
|
|
115
155
|
|
|
116
156
|
if not exists:
|
|
117
157
|
with open(self.p_sinfo,"r") as f:
|
|
118
158
|
info = json.load(f)
|
|
119
159
|
|
|
120
|
-
info[self.title]["Screens"][name] = {"script":script,"release":release}
|
|
160
|
+
info[self.title]["Screens"][self.name] = {"script":script,"release":release}
|
|
121
161
|
if not icon == None:
|
|
122
|
-
info[self.title]["Screens"][name]["icon"] = icon
|
|
162
|
+
info[self.title]["Screens"][self.name]["icon"] = icon
|
|
163
|
+
|
|
164
|
+
if not desc == None:
|
|
165
|
+
info[self.title]["Screens"][self.name]["desc"] = desc
|
|
166
|
+
else:
|
|
167
|
+
info[self.title]["Screens"][self.name]["desc"] = "A VIS Created Executable"
|
|
168
|
+
|
|
169
|
+
info[self.title]["Screens"][self.name]["version"] = "1.0.0"#always making first major version of screen
|
|
170
|
+
|
|
171
|
+
info[self.title]["Screens"][self.name]["current"] = None#always making first major version of screen
|
|
123
172
|
|
|
124
173
|
with open(self.p_sinfo,"w") as f:
|
|
125
174
|
json.dump(info,f,indent=4)
|
|
126
175
|
|
|
127
176
|
shutil.copyfile(self.p_templates+"/screen.txt",self.p_project+"/"+script)
|
|
128
|
-
os.mkdir(self.p_screens+"/"+name)
|
|
129
|
-
os.mkdir(self.p_modules+"/"+name)
|
|
130
|
-
|
|
177
|
+
os.mkdir(self.p_screens+"/"+self.name)
|
|
178
|
+
os.mkdir(self.p_modules+"/"+self.name)
|
|
179
|
+
|
|
180
|
+
with open(self.p_sinfo,"r") as f:
|
|
181
|
+
info = json.load(f)
|
|
182
|
+
self.desc = info[self.title]["Screens"][self.name]["desc"]
|
|
183
|
+
self.s_version = info[self.title]["Screens"][self.name]["version"]
|
|
184
|
+
self.current = info[self.title]["Screens"][self.name]["current"]
|
|
185
|
+
|
|
131
186
|
|
|
132
187
|
def addElement(self,element:str) -> int:
|
|
133
188
|
if validName(element):
|
|
@@ -195,7 +250,27 @@ class Screen(VINFO):
|
|
|
195
250
|
print("Stitched: ")
|
|
196
251
|
for i in stitched:
|
|
197
252
|
print(f"\t{i} to {self.name}")
|
|
198
|
-
|
|
253
|
+
|
|
254
|
+
def syncVersion(self) -> int:
|
|
255
|
+
"""Syncs the version stored in sinfo with the version in memory
|
|
256
|
+
"""
|
|
257
|
+
with open(self.p_sinfo,"r") as f:
|
|
258
|
+
info = json.load(f)
|
|
259
|
+
info[self.title]["Screens"][self.name]["current"] = self.current
|
|
260
|
+
with open(self.p_sinfo,"w") as f:
|
|
261
|
+
json.dump(info,f)
|
|
262
|
+
return 1
|
|
263
|
+
|
|
264
|
+
def crntVersion(self) -> int:
|
|
265
|
+
"""Checks if the version needs to be synced and returns 1 if its synced
|
|
266
|
+
"""
|
|
267
|
+
if not self.s_version == self.current:
|
|
268
|
+
self.current = self.version
|
|
269
|
+
self.syncVersion()
|
|
270
|
+
return 1
|
|
271
|
+
else:
|
|
272
|
+
return 0
|
|
273
|
+
|
|
199
274
|
|
|
200
275
|
class Project(VINFO):
|
|
201
276
|
"""VIS Project Object
|
|
@@ -212,8 +287,10 @@ class Project(VINFO):
|
|
|
212
287
|
scr = Screen(screen,
|
|
213
288
|
info[self.name]["Screens"][screen]["script"],
|
|
214
289
|
info[self.name]["Screens"][screen]["release"],
|
|
215
|
-
info[self.name]["Screens"][screen].get("icon")
|
|
290
|
+
info[self.name]["Screens"][screen].get("icon"),
|
|
291
|
+
exists=True)
|
|
216
292
|
self.screenlist.append(scr)
|
|
293
|
+
self.d_icon = info[self.name]["defaults"]["icon"]
|
|
217
294
|
|
|
218
295
|
def newScreen(self,screen:str) -> int:
|
|
219
296
|
"""Creates a new screen with some prompting
|
|
@@ -248,7 +325,8 @@ class Project(VINFO):
|
|
|
248
325
|
release = False
|
|
249
326
|
ictf =input("What is the icon for this screen (or none)?: ")
|
|
250
327
|
icon = ictf.strip(".ico") if ".ICO" in ictf.upper() else None
|
|
251
|
-
|
|
328
|
+
desc = input("Write a description for this screen: ")
|
|
329
|
+
self.screenlist.append(Screen(screen,script,release,icon,False,desc))
|
|
252
330
|
|
|
253
331
|
return 1
|
|
254
332
|
else:
|
VIS/release.py
CHANGED
|
@@ -1,107 +1,158 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
from VIS.project import *
|
|
3
2
|
import subprocess
|
|
4
|
-
import json
|
|
5
3
|
import shutil
|
|
6
4
|
from os.path import exists
|
|
5
|
+
import time
|
|
6
|
+
import datetime
|
|
7
7
|
|
|
8
|
-
root = getPath()
|
|
9
8
|
info = {}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
name = list(info.keys())[0]
|
|
9
|
+
project = Project()
|
|
10
|
+
|
|
13
11
|
|
|
14
12
|
def build(version:str=""):
|
|
15
13
|
"""Build project spec file with specific version
|
|
16
14
|
"""
|
|
17
15
|
|
|
18
|
-
print(f"Creating project.spec for {name}")
|
|
16
|
+
print(f"Creating project.spec for {project.name}")
|
|
19
17
|
|
|
20
|
-
with open(
|
|
18
|
+
with open(project.p_vinfo+"/Templates/spec.txt","r") as f:
|
|
21
19
|
spec = f.read()
|
|
22
|
-
with open(
|
|
20
|
+
with open(project.p_vinfo+"/Templates/collect.txt","r") as f:
|
|
23
21
|
collect = f.read()
|
|
24
22
|
|
|
25
23
|
spec_list = []
|
|
26
24
|
name_list = []
|
|
27
|
-
|
|
28
|
-
for i in
|
|
29
|
-
if
|
|
30
|
-
name_list.append(i)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if not info[name]["Screens"][i].get("icon") == None:
|
|
34
|
-
icon = info[name]["Screens"][i]["icon"]
|
|
25
|
+
os.mkdir(project.p_vinfo+"/Build")
|
|
26
|
+
for i in project.screenlist:
|
|
27
|
+
if i.release:
|
|
28
|
+
name_list.append(i.name)
|
|
29
|
+
if not i.icon == None:
|
|
30
|
+
icon = i.icon
|
|
35
31
|
else:
|
|
36
|
-
icon =
|
|
37
|
-
spec_list.append(spec.replace("$name$",i))
|
|
32
|
+
icon = project.d_icon
|
|
33
|
+
spec_list.append(spec.replace("$name$",i.name))
|
|
38
34
|
spec_list[len(spec_list)-1] = spec_list[len(spec_list)-1].replace("$icon$",icon)
|
|
39
|
-
spec_list[len(spec_list)-1] = spec_list[len(spec_list)-1].replace("$file$",
|
|
35
|
+
spec_list[len(spec_list)-1] = spec_list[len(spec_list)-1].replace("$file$",i.script)
|
|
36
|
+
|
|
37
|
+
#build metadata
|
|
38
|
+
with open(project.p_templates+"/version.txt","r") as f:
|
|
39
|
+
meta = f.read()
|
|
40
|
+
|
|
41
|
+
#Update Overall Project Version
|
|
42
|
+
vers = project.version.split(".")
|
|
43
|
+
major = vers[0]
|
|
44
|
+
minor = vers[1]
|
|
45
|
+
patch = vers[2]
|
|
46
|
+
meta = meta.replace("$M$",major)
|
|
47
|
+
meta = meta.replace("$m$",minor)
|
|
48
|
+
meta = meta.replace("$p$",patch)
|
|
49
|
+
|
|
50
|
+
#Update Screen Version
|
|
51
|
+
vers = i.s_version.split(".")
|
|
52
|
+
major = vers[0]
|
|
53
|
+
minor = vers[1]
|
|
54
|
+
patch = vers[2]
|
|
55
|
+
meta = meta.replace("$sM$",major)
|
|
56
|
+
meta = meta.replace("$sm$",minor)
|
|
57
|
+
meta = meta.replace("$sp$",patch)
|
|
58
|
+
|
|
59
|
+
if project.company != None:
|
|
60
|
+
meta = meta.replace("$company$",project.company)
|
|
61
|
+
meta = meta.replace("$year$",str(datetime.datetime.now().year))
|
|
62
|
+
else:
|
|
63
|
+
meta = meta.replace(" VALUE \"CompanyName\", VER_COMPANYNAME_STR\n","")
|
|
64
|
+
meta = meta.replace(" VALUE \"LegalCopyright\", VER_LEGALCOPYRIGHT_STR\n","")
|
|
65
|
+
meta = meta.replace("#define VER_LEGAL_COPYRIGHT_STR \"Copyright © $year$ $company$\\0\"\n\n","")
|
|
66
|
+
meta = meta.replace("$name$",i.name)
|
|
67
|
+
meta = meta.replace("$desc$",i.desc)
|
|
68
|
+
|
|
69
|
+
with open(project.p_vinfo+f"/Build/{i.name}.txt","w") as f:
|
|
70
|
+
f.write(meta)
|
|
71
|
+
spec_list[len(spec_list)-1] = spec_list[len(spec_list)-1].replace("$meta$",project.p_vinfo+f"/Build/{i.name}.txt")
|
|
40
72
|
spec_list.append("\n\n")
|
|
41
73
|
|
|
42
74
|
insert = ""
|
|
43
75
|
for i in name_list:
|
|
44
76
|
insert=insert+"\n\t"+i+"_exe,\n\t"+i+"_a.binaries,\n\t"+i+"_a.zipfiles,\n\t"+i+"_a.datas,"
|
|
45
77
|
collect = collect.replace("$insert$",insert)
|
|
46
|
-
collect = collect.replace("$version$",name+"-"+version) if not version == "" else collect.replace("$version$",name)
|
|
78
|
+
collect = collect.replace("$version$",project.name+"-"+version) if not version == "" else collect.replace("$version$",project.name)
|
|
47
79
|
|
|
48
80
|
header = "# -*- mode: python ; coding: utf-8 -*-\n\n\n"
|
|
49
81
|
|
|
50
|
-
with open(
|
|
82
|
+
with open(project.p_vinfo+"/project.spec","w") as f:
|
|
51
83
|
f.write(header)
|
|
52
|
-
with open(
|
|
84
|
+
with open(project.p_vinfo+"/project.spec","a") as f:
|
|
53
85
|
f.writelines(spec_list)
|
|
54
86
|
f.write(collect)
|
|
55
87
|
|
|
56
|
-
print(f"
|
|
88
|
+
print(f"Finished creating project.spec for {project.title} {version if not version =="" else "current"}")#advanced version will improve this
|
|
57
89
|
|
|
58
90
|
def clean(version:str=" "):
|
|
59
91
|
"""Cleans up build environment to save space
|
|
60
92
|
"""
|
|
61
93
|
print("Cleaning up build environment")
|
|
94
|
+
project=Project()
|
|
95
|
+
shutil.rmtree(project.p_vinfo+"/Build")
|
|
96
|
+
print("Appending Screen Data To Environment")
|
|
62
97
|
if version == " ":
|
|
63
|
-
if exists(f"{
|
|
64
|
-
if exists(f"{
|
|
65
|
-
shutil.copytree(
|
|
66
|
-
shutil.copytree(
|
|
98
|
+
if exists(f"{project.p_project}/dist/{project.title}/Icons/"): shutil.rmtree(f"{project.p_project}/dist/{project.title}/Icons/")
|
|
99
|
+
if exists(f"{project.p_project}/dist/{project.title}/Images/"): shutil.rmtree(f"{project.p_project}/dist/{project.title}/Images/")
|
|
100
|
+
shutil.copytree(project.p_project+"/Icons/",f"{project.p_project}/dist/{project.title}/Icons/",dirs_exist_ok=True)
|
|
101
|
+
shutil.copytree(project.p_project+"/Images/",f"{project.p_project}/dist/{project.title}/Images/",dirs_exist_ok=True)
|
|
67
102
|
else:
|
|
68
|
-
if exists(f"{
|
|
69
|
-
if exists(f"{
|
|
70
|
-
shutil.copytree(
|
|
71
|
-
shutil.copytree(
|
|
72
|
-
print(f"\n\nReleased new{version}build of {
|
|
103
|
+
if exists(f"{project.p_project}/dist/{project.title}/Icons/"): shutil.rmtree(f"{project.p_project}/dist/{project.name}/Icons/")
|
|
104
|
+
if exists(f"{project.p_project}/dist/{project.title}/Images/"): shutil.rmtree(f"{project.p_project}/dist/{project.name}/Images/")
|
|
105
|
+
shutil.copytree(project.p_project+"/Icons/",f"{project.p_project}/dist/{project.title}-{version.strip(" ")}/Icons/",dirs_exist_ok=True)
|
|
106
|
+
shutil.copytree(project.p_project+"/Images/",f"{project.p_project}/dist/{project.title}-{version.strip(" ")}/Images/",dirs_exist_ok=True)
|
|
107
|
+
print(f"\n\nReleased new{version}build of {project.title}!")
|
|
108
|
+
|
|
109
|
+
def newVersion(version:str):
|
|
110
|
+
"""Updates the project version, permanent, cannot be undone
|
|
111
|
+
"""
|
|
112
|
+
project = VINFO()
|
|
113
|
+
old = str(project.version)
|
|
114
|
+
vers = project.version.split(".")
|
|
115
|
+
if version == "Major":
|
|
116
|
+
vers[0] = str(int(vers[0])+1)
|
|
117
|
+
vers[1] = str(0)
|
|
118
|
+
vers[2] = str(0)
|
|
119
|
+
if version == "Minor":
|
|
120
|
+
vers[1] = str(int(vers[1])+1)
|
|
121
|
+
vers[2] = str(0)
|
|
122
|
+
if version == "Patch":
|
|
123
|
+
vers[2] = str(int(vers[2])+1)
|
|
73
124
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
125
|
+
project.setVersion(f"{vers[0]}.{vers[1]}.{vers[2]}")
|
|
126
|
+
project = VINFO()
|
|
127
|
+
print(f"Updated Version {old}=>{project.version}")
|
|
128
|
+
|
|
129
|
+
def newRelease(version,type:str="Patch"):
|
|
130
|
+
"""Releases a version of your project
|
|
131
|
+
"""
|
|
132
|
+
match version:
|
|
133
|
+
case "a":
|
|
134
|
+
build("alpha")
|
|
135
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
136
|
+
clean(" alpha ")
|
|
137
|
+
case "b":
|
|
138
|
+
build("beta")
|
|
139
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
140
|
+
clean(" beta ")
|
|
141
|
+
case "c":
|
|
142
|
+
newVersion(type)
|
|
143
|
+
build()
|
|
144
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
145
|
+
clean()
|
|
146
|
+
case "sync":
|
|
147
|
+
build("alpha")
|
|
148
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
149
|
+
clean(" alpha ")
|
|
150
|
+
build("beta")
|
|
151
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
152
|
+
clean(" beta ")
|
|
153
|
+
build()
|
|
154
|
+
subprocess.call(f"pyinstaller {project.p_vinfo}/project.spec --noconfirm --distpath {project.p_project}/dist/ --log-level FATAL")
|
|
155
|
+
clean()
|
|
156
|
+
print("\t- alpha\n\t- beta\n\t- current")
|
|
157
|
+
case _:
|
|
158
|
+
print(f"Could not release Project Version {version}")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
VIS/Form.zip,sha256=qyNG6hPgFcMkkilC1D3KnIC2BStmFJabyGXQmxqvQzg,24596
|
|
2
|
+
VIS/VIS.py,sha256=Wu-RoboUtWyqeUydhYxkov6kXvA-tgbnujUrgZxWQYg,1892
|
|
3
|
+
VIS/__init__.py,sha256=gO-ri9N9K-CQ3wJi-CX12MYhbrdqz2fvhJU-ZGf5BjI,69
|
|
4
|
+
VIS/menu.py,sha256=PqPYzsFfGpVeej85v59wbeWeSy24I-m0bFUAxtRBiSQ,1815
|
|
5
|
+
VIS/project.py,sha256=aSG0xJKqhp3s_fMwO14fAcY5llC4PKSfLTDJrULs8VE,13804
|
|
6
|
+
VIS/release.py,sha256=HltNabVQdMzRP7-WCgAqieu0N5nJuL963jSYvNKMkzw,6934
|
|
7
|
+
VIS/Templates/collect.txt,sha256=ZU5m4g2VBOWNWAGMUjZoi2UIc2uWmlV-L7_IXc3lBVU,96
|
|
8
|
+
VIS/Templates/f_element.txt,sha256=MVovajsLC2O5t_ZSOb9NppGqzziGqISWSaEJ7kbrl7U,485
|
|
9
|
+
VIS/Templates/screen.txt,sha256=qjEB8x_krQ1UGcVjbIxuVgasxcpJwIMh2UKbdeeE0KI,791
|
|
10
|
+
VIS/Templates/spec.txt,sha256=3PReA_cz0TqQ3l_eo7C_aVGZNneWOPT5KoK-lOom4RI,709
|
|
11
|
+
VIS/Templates/version.txt,sha256=O3e6gO4MkPps1plgkpsIfMxutxqVbT8sVDf91-LUmvc,826
|
|
12
|
+
VIS/__pycache__/__init__.cpython-313.pyc,sha256=G_EdBuWyhjGJ4zI9Sc81loMtV0ANdEzC6JmUwcnaomI,218
|
|
13
|
+
vistk-0.3.10.dist-info/licenses/LICENSE,sha256=FxXH04vmzWaQWNEoGwgDcLEG8Li5qf36NNz3UyrBMvQ,1300
|
|
14
|
+
vistk-0.3.10.dist-info/METADATA,sha256=smtb2zmDxHyZPNRGXiA29SqT1J9pnILsL5iD2wKTGH8,2494
|
|
15
|
+
vistk-0.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
vistk-0.3.10.dist-info/entry_points.txt,sha256=Fq_VLNEc6Rk4-S8ICPkPjNozFeDeeeFAF5lvK7hQu7o,41
|
|
17
|
+
vistk-0.3.10.dist-info/top_level.txt,sha256=iFRNav6cokh9J-6nat5rgNWLdQm371xQ3OPb9w7i5mI,4
|
|
18
|
+
vistk-0.3.10.dist-info/RECORD,,
|
vistk-0.3.7.dist-info/RECORD
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
VIS/Form.zip,sha256=qyNG6hPgFcMkkilC1D3KnIC2BStmFJabyGXQmxqvQzg,24596
|
|
2
|
-
VIS/VIS.py,sha256=PRTVufZLrpqdhToVNUe61CHPVTeYQA2BTKw5GrNO_s0,1887
|
|
3
|
-
VIS/__init__.py,sha256=gO-ri9N9K-CQ3wJi-CX12MYhbrdqz2fvhJU-ZGf5BjI,69
|
|
4
|
-
VIS/menu.py,sha256=PqPYzsFfGpVeej85v59wbeWeSy24I-m0bFUAxtRBiSQ,1815
|
|
5
|
-
VIS/project.py,sha256=ONgPwmAdDz6qTvXmMB2hW1t1bAUfkoKmIHhq4McLxLk,10722
|
|
6
|
-
VIS/release.py,sha256=t4K1PbYAHSy6pt65dmyvbkW65bnuPkPVzKREWFNAAUI,4473
|
|
7
|
-
VIS/Templates/collect.txt,sha256=ZU5m4g2VBOWNWAGMUjZoi2UIc2uWmlV-L7_IXc3lBVU,96
|
|
8
|
-
VIS/Templates/f_element.txt,sha256=MVovajsLC2O5t_ZSOb9NppGqzziGqISWSaEJ7kbrl7U,485
|
|
9
|
-
VIS/Templates/screen.txt,sha256=qjEB8x_krQ1UGcVjbIxuVgasxcpJwIMh2UKbdeeE0KI,791
|
|
10
|
-
VIS/Templates/spec.txt,sha256=_IlwxuNxmtFOriZ6JWgtPANLkA8GFzOm80lE9PhqKfs,690
|
|
11
|
-
VIS/__pycache__/__init__.cpython-313.pyc,sha256=G_EdBuWyhjGJ4zI9Sc81loMtV0ANdEzC6JmUwcnaomI,218
|
|
12
|
-
vistk-0.3.7.dist-info/licenses/LICENSE,sha256=FxXH04vmzWaQWNEoGwgDcLEG8Li5qf36NNz3UyrBMvQ,1300
|
|
13
|
-
vistk-0.3.7.dist-info/METADATA,sha256=sWIcFbsGgao7bXCkehiAz83yEDsC1l145ru0JlsafCM,2493
|
|
14
|
-
vistk-0.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
-
vistk-0.3.7.dist-info/entry_points.txt,sha256=Fq_VLNEc6Rk4-S8ICPkPjNozFeDeeeFAF5lvK7hQu7o,41
|
|
16
|
-
vistk-0.3.7.dist-info/top_level.txt,sha256=iFRNav6cokh9J-6nat5rgNWLdQm371xQ3OPb9w7i5mI,4
|
|
17
|
-
vistk-0.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|