pingwizard 1.0.6__tar.gz → 1.0.7__tar.gz
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.
- {pingwizard-1.0.6 → pingwizard-1.0.7}/PKG-INFO +11 -2
- pingwizard-1.0.7/pingwizard/check_available_updates.py +17 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard/gui_wizard.py +20 -3
- pingwizard-1.0.7/pingwizard/version.py +1 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard.egg-info/PKG-INFO +11 -2
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard.egg-info/SOURCES.txt +1 -0
- pingwizard-1.0.6/pingwizard/version.py +0 -1
- {pingwizard-1.0.6 → pingwizard-1.0.7}/LICENSE +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/README.md +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard/__init__.py +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard/__main__.py +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard/assets/PINGMapper_Logo_small.png +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard/create_shortcut.py +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard.egg-info/dependency_links.txt +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/pingwizard.egg-info/top_level.txt +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/setup.cfg +0 -0
- {pingwizard-1.0.6 → pingwizard-1.0.7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pingwizard
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Light-weight interface for running PING ecosystem (PINGMapper, etc.)
|
|
5
5
|
Author: Cameron Bodine
|
|
6
6
|
Author-email: bodine.cs@gmail.email
|
|
@@ -20,6 +20,15 @@ Classifier: Topic :: Scientific/Engineering :: Hydrology
|
|
|
20
20
|
Requires-Python: <3.13
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: project-url
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
23
32
|
|
|
24
33
|
# PINGWizard
|
|
25
34
|
Light-weight interface for running PING ecosystem (PINGMapper, etc.)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
import json
|
|
6
|
+
|
|
7
|
+
def check(name):
|
|
8
|
+
|
|
9
|
+
latest_pip = (subprocess.run([sys.executable, '-m', 'pip', 'list', '-o', '--format=json'], capture_output=True, text=True)).stdout
|
|
10
|
+
latest_pip = json.loads(latest_pip)
|
|
11
|
+
|
|
12
|
+
ping_packages = []
|
|
13
|
+
for i in latest_pip:
|
|
14
|
+
if 'ping' in i['name']:
|
|
15
|
+
ping_packages.append(i)
|
|
16
|
+
|
|
17
|
+
return latest_pip
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import sys, os
|
|
3
|
+
import time
|
|
3
4
|
import runpy
|
|
5
|
+
from pingwizard.version import __version__ as pwversion
|
|
6
|
+
from pingwizard.check_available_updates import check
|
|
7
|
+
|
|
8
|
+
from pingmapper.version import __version__ as pmversion
|
|
4
9
|
|
|
5
10
|
PySimpleGUI_License = 'e3yAJ9MVaOWANplCbmndNNl2VwHvlCwpZTSjIl6DIjkiRGpYc53aRty8aBWpJF1qdwGLlzv9bUiHILs3Inkyxpp5Yq2OVku8cg2ZVrJ7RNCQI66bMcTLcnyKMbTRMK57OCTPMGxGNtS8whirTBGTlLjxZEWg5DzWZdUXRUlLcDGfxnv7eiWB1jlOb6nqR8WTZ2XsJVzbabW19ouWI6j0oXiKN0Si4AwtI7iFw8iGTBmtFftjZEUxZMpYcLncNk0rIJj4oyisQq2uFCtqZnXWJvvqbEiCICsSIbkC5jhKbvWTVqM2YtX6Ni0XIJjloji1QEmU9Ak5ayWp5nlnIwi3wiiOQK279ytqcKGwFGuvepS6IH6iIOiYIGs7I4kYNQ13cY33RkvIbqWkVyypSKUOQoiZO2ijIFzaMNTEAp0bNxyWI1sLIwkRRjhZdNGBVoJkcZ3MNN1yZMWTQtihOiieIYyXMDDIIF0ILaTyAt36LKTREj5JI1iYwcixRgGuFk0BZGU5VZ4dciGUl3ykZ3XtMbilOMiBIhy1M5DtId1mL6T1A935LYTLEN5iI3iJwoirR8Wa12h5a0WtxkBNZdGiRJyYZXX9N5zZI2jSoZizYpmp9YkHaIWz5YluLTmcNXzNQmGZd0twYGW6l3sALZmTNWvubcSEItsPITk6lFQgQUWZRrkfcEmAVxz0c9y7IG6sILjZEYyzO8Cf4c0WLDj3QCwSLwjPEt2BMMi0J69p854e39898f71ea82d3a530f7a6ed8a02a4eea9ffd2c7b1279074b491c71b411f392e6d726a2d2f9dbf63388356cf4e083e358fe428852d676073e128607b9ad194c15e34a4feb463a749fd3295606caa293b823d102e854cd845b79b5ec5eaec0b2ef7f9cf0c87b2dfcad3f14cd0d66a2da97e6b38a535eb8707b4486c9802a4bfeb09703382e157449096f0e3551af9f444197cacb3f3d42187cea97ab61978985ddeecd086b9cb86c4ec1c08082d47b3ed0ae9c044d9aa65e5c9bf6e00238f78ed858cfdaf0021fb95d636e0cce84d84d2c2da7ac57f2e54fe793fce44a8b8abf96ce7c381f4b7eeb55dc4b68768e8172a4dffc1b683e62a108b2dfc2ef340dab058e6ee5c1f525f93e89d39258862f099987a8ec7022db5aecb5a58e81d02370d5717d18498ae58749aa5e463cf757ab7fa84efe49c1b770da397eef22423696ad433e7232646e279906bef084b21714ac5fc2af564a03ebc789123aed44531765b3e72c6165131feab68e35e0276a64760ee9abf043bece1e3cd148bcec97ab835395391387ff9d2b74a835a15ea5bac9c7e1218c217481a3999a91e037a138aaf5dddadb2247141242140b130e273aab5e1e6855fae8b7ee80d64be2d09a46f3d49555f53a7a849138fc3b9d2323658ea7e86a0039c40f3c15fd3647f99ec98232d9734a5933177c48c6575a1415e2808640cfb27773e728fe128b99757'
|
|
6
11
|
import PySimpleGUI as sg
|
|
@@ -28,14 +33,15 @@ def wizard():
|
|
|
28
33
|
# Define the layout blocks
|
|
29
34
|
|
|
30
35
|
# Title #
|
|
31
|
-
title = sg.Text("PING Wizard", font=("Helvetica",
|
|
36
|
+
title = sg.Text("PING Wizard", font=("Helvetica", 24), justification="center", size=(25, 1))
|
|
37
|
+
version = sg.Text("ver. {}".format(pwversion), font=("Helvetica", 8), justification="center", size=(75, 1))
|
|
32
38
|
|
|
33
39
|
# PINGMapper #
|
|
34
40
|
## Title
|
|
35
41
|
pm_title = sg.Text("PINGMapper", font=("Helvetica", 16), justification="center")
|
|
36
42
|
|
|
37
43
|
## Description
|
|
38
|
-
pm_desc = sg.Text("PINGMapper - Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat.", font=("Helvetica", 10), justification="left", size=(30, 5))
|
|
44
|
+
pm_desc = sg.Text("PINGMapper (ver. {}) - Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat.".format(pmversion), font=("Helvetica", 10), justification="left", size=(30, 5))
|
|
39
45
|
|
|
40
46
|
## Logo
|
|
41
47
|
pm_logo = sg.Image(pingmapper_logo, size=(200, 120))
|
|
@@ -53,6 +59,7 @@ def wizard():
|
|
|
53
59
|
## Update Installation Buttons
|
|
54
60
|
pm_install_text = sg.Text("Update\nPINGMapper", font=("Helvetica", 10, "bold"),size=(11, 2))
|
|
55
61
|
pm_install_btn = sg.Button("Update", key="pinginstaller", button_color="darkorange", size=(10, 2))
|
|
62
|
+
pm_check_btn = sg.Button("Check for Updates", key="check_updates", button_color="grey", size=(10, 2))
|
|
56
63
|
|
|
57
64
|
|
|
58
65
|
#############
|
|
@@ -61,6 +68,7 @@ def wizard():
|
|
|
61
68
|
|
|
62
69
|
layout = [
|
|
63
70
|
[title],
|
|
71
|
+
[version],
|
|
64
72
|
[sg.HorizontalSeparator()],
|
|
65
73
|
[sg.HorizontalSeparator()],
|
|
66
74
|
[pm_logo, pm_desc],
|
|
@@ -68,7 +76,7 @@ def wizard():
|
|
|
68
76
|
# [pm_desc],
|
|
69
77
|
[pm_gui_text, sg.VerticalSeparator(), pm_gui_btn, pm_batch_gui_btn],
|
|
70
78
|
[pm_test_text, sg.VerticalSeparator(), pm_test_single_btn, pm_test_batch_btn],
|
|
71
|
-
[pm_install_text, sg.VerticalSeparator(), pm_install_btn],
|
|
79
|
+
[pm_install_text, sg.VerticalSeparator(), pm_install_btn, pm_check_btn],
|
|
72
80
|
[sg.HorizontalSeparator()],
|
|
73
81
|
[sg.HorizontalSeparator()],
|
|
74
82
|
[exit_btn],
|
|
@@ -122,9 +130,18 @@ def wizard():
|
|
|
122
130
|
module_name = "pinginstaller"
|
|
123
131
|
module_args = []
|
|
124
132
|
|
|
133
|
+
elif event == "check_updates":
|
|
134
|
+
print("Checking for updates...")
|
|
135
|
+
# Set the arguments for the PINGMapper Batch GUI
|
|
136
|
+
module_name = "pinginstaller"
|
|
137
|
+
module_args = ["check"]
|
|
138
|
+
|
|
139
|
+
window.Disappear()
|
|
125
140
|
sys.argv = [module_name, *module_args]
|
|
126
141
|
|
|
127
142
|
runpy.run_module(module_name, run_name="__main__")
|
|
143
|
+
time.sleep(1)
|
|
144
|
+
window.Reappear()
|
|
128
145
|
|
|
129
146
|
# window.close()
|
|
130
147
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.0.7'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pingwizard
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Light-weight interface for running PING ecosystem (PINGMapper, etc.)
|
|
5
5
|
Author: Cameron Bodine
|
|
6
6
|
Author-email: bodine.cs@gmail.email
|
|
@@ -20,6 +20,15 @@ Classifier: Topic :: Scientific/Engineering :: Hydrology
|
|
|
20
20
|
Requires-Python: <3.13
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: project-url
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
23
32
|
|
|
24
33
|
# PINGWizard
|
|
25
34
|
Light-weight interface for running PING ecosystem (PINGMapper, etc.)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.0.6'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|