vappman 0.9.1__tar.gz → 0.9.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vappman
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Summary: A visual wrapper for appman
5
5
  Author-email: Joe Defen <joedef@google.com>
6
6
  License: MIT
@@ -20,7 +20,6 @@
20
20
  # - deactivate # to deactivate
21
21
  #
22
22
  # rm -rf ./dist && python3 -m build && pip install -e . --break-system-packages
23
- # pip-tray
24
23
  #
25
24
  # -OR-
26
25
  # python3 -m vappman.main
@@ -37,17 +36,17 @@
37
36
  # rm -rf dist; python3 -m build; ls dist/.
38
37
  # python3 -m twine upload dist/* # keyring --disable # may be required
39
38
  # ## Enter __token__ and the saved TOKEN (in bitwarden)
40
- # pipx upgrade pwr-tray || pipx install pwr-tray # >= python3.11
41
- # --OR-- sudo python3 -m pip install pwr-tray # <= python3.10
42
- # ## VISIT https://pypi.org/project/pwr-tray and delete old versions
39
+ # pipx upgrade vappman || pipx install vappman # >= python3.11
40
+ # --OR-- sudo python3 -m pip install vappman # <= python3.10
41
+ # ## VISIT https://pypi.org/project/vappman and delete old versions
43
42
  #
44
43
  # TEST Build and test (from project directory):
45
44
  # ## BUMP the version (below in [project])
46
45
  # rm -r dist; python3 -m build
47
46
  # python3 -m twine upload --repository testpypi dist/* # keyring --disable # may be required
48
47
  # ## Enter __token__ and the saved TOKEN (in bitwarden)
49
- # sudo python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --no-deps --break-system-packages my-sna
50
- # ## VISIT https://test.pypi.org/project/pwr-tray and delete old versions
48
+ # sudo python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --no-deps --break-system-packages vappman
49
+ # ## VISIT https://test.pypi.org/project/vappman and delete old versions
51
50
 
52
51
  [build-system]
53
52
  requires = ["setuptools>=42", "wheel"]
@@ -55,7 +54,7 @@ build-backend = "setuptools.build_meta"
55
54
 
56
55
  [project]
57
56
  name = "vappman"
58
- version = "0.9.1"
57
+ version = "0.9.2"
59
58
  description = "A visual wrapper for appman"
60
59
  authors = [
61
60
  { name = "Joe Defen", email = "joedef@google.com" }
@@ -91,12 +91,24 @@ class Vappman:
91
91
  lines = result.stdout.splitlines()
92
92
  ansi_escape_pattern = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
93
93
  rv = {}
94
+ prev_wd1 = None
94
95
  for line in lines:
95
- line = ansi_escape_pattern.sub('', line).strip() # get clean text
96
+ line = ansi_escape_pattern.sub('', line) # get clean text
96
97
  if re.match(start, line):
98
+ line = line.strip()
97
99
  wd1 = self.get_word1(line)
98
100
  if wd1:
99
101
  rv[wd1] = line
102
+ prev_wd1 = wd1
103
+ elif prev_wd1 and line.startswith(' '):
104
+ line = line.strip()
105
+ if line:
106
+ rv[prev_wd1] += ' ' + line
107
+ else:
108
+ prev_wd1 = None
109
+ else:
110
+ prev_wd1 = None
111
+
100
112
  return rv
101
113
 
102
114
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vappman
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Summary: A visual wrapper for appman
5
5
  Author-email: Joe Defen <joedef@google.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes