pendify 0.1.10__tar.gz → 0.1.11__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.
Files changed (29) hide show
  1. {pendify-0.1.10/src/pendify.egg-info → pendify-0.1.11}/PKG-INFO +1 -1
  2. {pendify-0.1.10 → pendify-0.1.11}/pyproject.toml +1 -1
  3. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/page.py +11 -1
  4. {pendify-0.1.10 → pendify-0.1.11/src/pendify.egg-info}/PKG-INFO +1 -1
  5. {pendify-0.1.10 → pendify-0.1.11}/LICENSE +0 -0
  6. {pendify-0.1.10 → pendify-0.1.11}/MANIFEST.in +0 -0
  7. {pendify-0.1.10 → pendify-0.1.11}/README.md +0 -0
  8. {pendify-0.1.10 → pendify-0.1.11}/setup.cfg +0 -0
  9. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/__init__.py +0 -0
  10. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/__main__.py +0 -0
  11. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/alert.py +0 -0
  12. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/autostart.py +0 -0
  13. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/client.py +0 -0
  14. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/codes.py +0 -0
  15. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/config.py +0 -0
  16. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/icon.py +0 -0
  17. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/pairing.py +0 -0
  18. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/pendify.ico +0 -0
  19. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/plate_almena.py +0 -0
  20. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/qr.py +0 -0
  21. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/runfile.py +0 -0
  22. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/sponsor_art.py +0 -0
  23. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/tray.py +0 -0
  24. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/update.py +0 -0
  25. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/watcher.py +0 -0
  26. {pendify-0.1.10 → pendify-0.1.11}/src/pendify/worker.py +0 -0
  27. {pendify-0.1.10 → pendify-0.1.11}/src/pendify.egg-info/SOURCES.txt +0 -0
  28. {pendify-0.1.10 → pendify-0.1.11}/src/pendify.egg-info/dependency_links.txt +0 -0
  29. {pendify-0.1.10 → pendify-0.1.11}/src/pendify.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pendify
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts.
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/ElkinDev/PendiFy
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pendify"
7
- version = "0.1.10"
7
+ version = "0.1.11"
8
8
  description = "Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -726,6 +726,13 @@ def _pick_sponsor_style():
726
726
  return random.choice(sponsor_art.STYLES)
727
727
 
728
728
 
729
+ def _running_version():
730
+ """The version this copy runs, as update.py read it once at the start, for the top bar's credit; None when it
731
+ could not be read. Never a fresh read of the disk: after an update is installed and before the restart, the page
732
+ still names the copy that runs (owner 2026-10-03 21:0x, OR-114). The one seam the tests replace."""
733
+ return update.RUNNING_VERSION
734
+
735
+
729
736
  def _sponsor_qr(words, style):
730
737
  """The sponsored QR: the code of SPONSOR_ADDRESS in `style`, a picture of the app's own (sponsor_art.py: three
731
738
  flat codes with the picture in the dots, two 3D stills), the same in both themes. `words` are escaped."""
@@ -1014,8 +1021,11 @@ class PairingPage:
1014
1021
  quit_button = f'<button type="submit">{words["quit"]}</button>'
1015
1022
  quit_form = "" if self.on_quit is None else _form("quit", token, quit_button)
1016
1023
  foot = "" if self.on_quit is None else f'<footer class="foot">{quit_form}</footer>'
1024
+ # The credit ends with the running version after the repository link, when it is known (lane pfver, OR-114).
1025
+ version = _running_version()
1026
+ running = "" if version is None else f' · <span class="version">v{html.escape(version)}</span>'
1017
1027
  credit = (f'<p class="credit">{words["credit"]} <b>{CREATOR}</b> · <a href="{REPOSITORY}" target="_blank" '
1018
- f'rel="noopener noreferrer">{REPOSITORY.removeprefix("https://")}</a></p>')
1028
+ f'rel="noopener noreferrer">{REPOSITORY.removeprefix("https://")}</a>{running}</p>')
1019
1029
  # The typed link and the forget in one fold, open when the typed values were refused so the note shows.
1020
1030
  fold = " open" if snapshot["typedRefused"] else ""
1021
1031
  bar = (f'<header class="bar">{credit}{_switch(words, token, lang)}<button id="theme-toggle" class="icon-btn" '
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pendify
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts.
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/ElkinDev/PendiFy
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
File without changes
File without changes
File without changes