psytricks 2.2.0a3__tar.gz → 2.2.0a7__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.4
2
2
  Name: psytricks
3
- Version: 2.2.0a3
3
+ Version: 2.2.0a7
4
4
  Summary: PowerShell Python Citrix Tricks.
5
5
  License-Expression: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -124,6 +124,9 @@ Service Wrapper)][www_winsw] but you may choose anything you like to launch the
124
124
  server process like NSSM, Scheduled Tasks 📅, homegrown dark magic 🪄🔮 or
125
125
  others.
126
126
 
127
+ 🧪 A more recent approach could be [Shawl][www_shawl] - let us know if you've
128
+ tried it and how it went!
129
+
127
130
  To go with **WinSW** simply download the bundled version provided with each
128
131
  [PSyTricks release][www_releases]. Just look for the `.zip` asset having `REST`
129
132
  and `WinSW` in its name.
@@ -227,4 +230,5 @@ wrapper.set_maintenance(machine="vm42.vdi.example.xy", disable=False)
227
230
  [www_winsw]: https://github.com/winsw/winsw
228
231
  [www_releases]: https://github.com/imcf/psytricks/releases
229
232
  [www_rtf]: https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
233
+ [www_shawl]: https://github.com/mtkennerly/shawl
230
234
 
@@ -100,6 +100,9 @@ Service Wrapper)][www_winsw] but you may choose anything you like to launch the
100
100
  server process like NSSM, Scheduled Tasks 📅, homegrown dark magic 🪄🔮 or
101
101
  others.
102
102
 
103
+ 🧪 A more recent approach could be [Shawl][www_shawl] - let us know if you've
104
+ tried it and how it went!
105
+
103
106
  To go with **WinSW** simply download the bundled version provided with each
104
107
  [PSyTricks release][www_releases]. Just look for the `.zip` asset having `REST`
105
108
  and `WinSW` in its name.
@@ -203,3 +206,4 @@ wrapper.set_maintenance(machine="vm42.vdi.example.xy", disable=False)
203
206
  [www_winsw]: https://github.com/winsw/winsw
204
207
  [www_releases]: https://github.com/imcf/psytricks/releases
205
208
  [www_rtf]: https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
209
+ [www_shawl]: https://github.com/mtkennerly/shawl
@@ -7,7 +7,7 @@ authors = [
7
7
  license = "GPL-3.0-or-later"
8
8
  readme = "README.md"
9
9
  dynamic = []
10
- version = "2.2.0-a.3"
10
+ version = "2.2.0-a.7"
11
11
 
12
12
  [tool.poetry]
13
13
  documentation = "https://imcf.one/apidocs/psytricks/psytricks.html"
@@ -34,7 +34,7 @@ psytricks = "psytricks.cli:run_cli"
34
34
  poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
35
35
 
36
36
  [tool.poetry-dynamic-versioning]
37
- enable = true
37
+ enable = false
38
38
  style = "semver"
39
39
  vcs = "git"
40
40
 
@@ -3,7 +3,7 @@
3
3
  .. include:: ../../CHANGELOG.md
4
4
  """
5
5
 
6
- __version__ = "0.0.0"
6
+ __version__ = "2.2.0-a.7"
7
7
 
8
8
  # style exceptions for pdoc-include-only docstrings:
9
9
  # ruff: noqa: D400 (missing-trailing-period)
@@ -5,7 +5,7 @@ Collection of functions and other definitions to be sourced by other scripts.
5
5
  #>
6
6
 
7
7
  # the version variable will be filled by poetry at build time:
8
- $Version = "UNDEFINED"
8
+ $Version = "2.2.0-a.7"
9
9
 
10
10
 
11
11
  #region properties-selectors
@@ -49,7 +49,7 @@ def parse_powershell_json(json_dict):
49
49
  try:
50
50
  mapped_value = mapping[value]
51
51
  except KeyError as err:
52
- mapped_value = f"unknownvalue-{value}"
52
+ mapped_value = f"undefined-mapping-{value}"
53
53
  log.error(f"No mapping for value '{value}' - using '{mapped_value}'!")
54
54
  log.trace(err)
55
55
  log.trace(f"{key}: {value} -> {mapped_value}")
@@ -9,7 +9,8 @@ The dicts defined here can be used to map the numerical values back to their
9
9
  descriptive names. The mapped names are corresponding to the ones described in
10
10
  the official Citrix CVAD 2203 developer docs (all transformed to lowercase):
11
11
 
12
- https://developer-docs.citrix.com/projects/citrix-virtual-apps-desktops-sdk/en/2203/
12
+ https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2203/
13
+ https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2507/
13
14
  """
14
15
 
15
16
  #######################################################################################
@@ -25,6 +26,8 @@ power_state = {
25
26
  7: "turningoff",
26
27
  8: "suspending",
27
28
  9: "resuming",
29
+ 10: "notsupported",
30
+ 11: "virtualmachinenotfound",
28
31
  }
29
32
  """A machine's *power status* (`Citrix.Broker.Admin.SDK.PowerState`).
30
33
 
File without changes