psytricks 2.2.0a20__tar.gz → 2.2.0a21__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.

Potentially problematic release.


This version of psytricks might be problematic. Click here for more details.

@@ -0,0 +1,37 @@
1
+ # 🏗️ ResTricks Service Installation / Upgrade TL;DR ⏩
2
+
3
+ The commands below can be used to upgrade an existing installation of the
4
+ `ResTricksService` - for a *fresh* installation you'd also need to create the
5
+ target location and adjust the configuration in `restricks-server.xml`.
6
+
7
+ ```PowerShell
8
+ $TargetDir = "C:\ProgramData\PSyTricks" # or wherever you're installing to
9
+
10
+ $PSyTricksTag="v2.2.0.a19"
11
+ $PSyTricksVersion="2.2.0a19"
12
+ $PSyTricksPkg="psytricks-REST-${PSyTricksVersion}_WinSW.NET461-2.12.0"
13
+ $PSyTricksZip="${PSyTricksPkg}.zip"
14
+ $PSyTricksBaseDl="https://github.com/imcf/psytricks/releases/download"
15
+ $PSyTricksUri="${PSyTricksBaseDl}/${PSyTricksTag}/${PSyTricksZip}"
16
+
17
+ cd "C:\Temp\"
18
+
19
+ Invoke-WebRequest -Uri $PSyTricksUri -OutFile $PSyTricksZip
20
+ Expand-Archive $PSyTricksZip -DestinationPath .
21
+ cd $PSyTricksPkg
22
+ # when upgrading, simply remove the example config - for an initial installation
23
+ # move it to the target location and rename it to "restricks-server.xml":
24
+ Remove-Item restricks-server.example.xml
25
+
26
+ Stop-Service RESTricksServer
27
+ Get-Service RESTricksServer
28
+
29
+ foreach ($File in Get-ChildItem -File) {
30
+ Unblock-File -Path $File.FullName
31
+ Move-Item -Path $File.FullName -Destination $TargetDir -Force
32
+ }
33
+
34
+ Start-Service RESTricksServer
35
+ Get-Service RESTricksServer
36
+ Get-Content -Tail 10 "${TargetDir}\restricks-server.wrapper.log"
37
+ ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: psytricks
3
- Version: 2.2.0a20
3
+ Version: 2.2.0a21
4
4
  Summary: PowerShell Python Citrix Tricks.
5
5
  License-Expression: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -260,3 +260,41 @@ wrapper.set_maintenance(machine="vm42.vdi.example.xy", disable=False)
260
260
  [www_rtf]: https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
261
261
  [www_shawl]: https://github.com/mtkennerly/shawl
262
262
 
263
+ # 🏗️ ResTricks Service Installation / Upgrade TL;DR ⏩
264
+
265
+ The commands below can be used to upgrade an existing installation of the
266
+ `ResTricksService` - for a *fresh* installation you'd also need to create the
267
+ target location and adjust the configuration in `restricks-server.xml`.
268
+
269
+ ```PowerShell
270
+ $TargetDir = "C:\ProgramData\PSyTricks" # or wherever you're installing to
271
+
272
+ $PSyTricksTag="v2.2.0.a19"
273
+ $PSyTricksVersion="2.2.0a19"
274
+ $PSyTricksPkg="psytricks-REST-${PSyTricksVersion}_WinSW.NET461-2.12.0"
275
+ $PSyTricksZip="${PSyTricksPkg}.zip"
276
+ $PSyTricksBaseDl="https://github.com/imcf/psytricks/releases/download"
277
+ $PSyTricksUri="${PSyTricksBaseDl}/${PSyTricksTag}/${PSyTricksZip}"
278
+
279
+ cd "C:\Temp\"
280
+
281
+ Invoke-WebRequest -Uri $PSyTricksUri -OutFile $PSyTricksZip
282
+ Expand-Archive $PSyTricksZip -DestinationPath .
283
+ cd $PSyTricksPkg
284
+ # when upgrading, simply remove the example config - for an initial installation
285
+ # move it to the target location and rename it to "restricks-server.xml":
286
+ Remove-Item restricks-server.example.xml
287
+
288
+ Stop-Service RESTricksServer
289
+ Get-Service RESTricksServer
290
+
291
+ foreach ($File in Get-ChildItem -File) {
292
+ Unblock-File -Path $File.FullName
293
+ Move-Item -Path $File.FullName -Destination $TargetDir -Force
294
+ }
295
+
296
+ Start-Service RESTricksServer
297
+ Get-Service RESTricksServer
298
+ Get-Content -Tail 10 "${TargetDir}\restricks-server.wrapper.log"
299
+ ```
300
+
@@ -5,12 +5,12 @@ authors = [
5
5
  { name = "Niko Ehrenfeuchter", email = "nikolaus.ehrenfeuchter@unibas.ch" },
6
6
  ]
7
7
  license = "GPL-3.0-or-later"
8
- readme = "README.md"
9
- dynamic = []
10
- version = "2.2.0-a.20"
8
+ dynamic = ["readme"]
9
+ version = "2.2.0-a.21"
11
10
 
12
11
  [tool.poetry]
13
12
  documentation = "https://imcf.one/apidocs/psytricks/psytricks.html"
13
+ readme = ["README.md", "INSTALLATION.md"]
14
14
 
15
15
  [tool.poetry.urls]
16
16
  "Changelog" = "https://github.com/imcf/psytricks/blob/main/CHANGELOG.md"
@@ -3,7 +3,7 @@
3
3
  .. include:: ../../CHANGELOG.md
4
4
  """
5
5
 
6
- __version__ = "2.2.0-a.20"
6
+ __version__ = "2.2.0-a.21"
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 = "2.2.0-a.20"
8
+ $Version = "2.2.0-a.21"
9
9
 
10
10
 
11
11
  #region properties-selectors
File without changes
File without changes