mmrelay 1.2.0__py3-none-any.whl → 1.2.2__py3-none-any.whl

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 mmrelay might be problematic. Click here for more details.

mmrelay/__init__.py CHANGED
@@ -2,4 +2,4 @@
2
2
  Meshtastic Matrix Relay - Bridge between Meshtastic mesh networks and Matrix chat rooms.
3
3
  """
4
4
 
5
- __version__ = "1.2.0"
5
+ __version__ = "1.2.2"
mmrelay/__main__.py ADDED
@@ -0,0 +1,29 @@
1
+ """
2
+ Alternative entry point for MMRelay that doesn't rely on setuptools console scripts.
3
+
4
+ This can be used as a fallback on Windows systems where the setuptools-generated
5
+ console script fails due to missing pkg_resources.
6
+
7
+ Usage:
8
+ python -m mmrelay [args...]
9
+ """
10
+
11
+ import sys
12
+
13
+ if __name__ == "__main__":
14
+ try:
15
+ from mmrelay.cli import main
16
+
17
+ sys.exit(main())
18
+ except ImportError as e:
19
+ print(f"Error importing MMRelay CLI: {e}", file=sys.stderr)
20
+ print("Please ensure MMRelay is properly installed.", file=sys.stderr)
21
+ sys.exit(1)
22
+ except KeyboardInterrupt:
23
+ print("Interrupted.", file=sys.stderr)
24
+ sys.exit(130)
25
+ except SystemExit:
26
+ raise
27
+ except Exception as e:
28
+ print(f"Unexpected error: {e}", file=sys.stderr)
29
+ sys.exit(1)