laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/43981?usp=email )


Change subject: setup: make smpp.twisted3 an extra, only pySim-smpp2sim.py 
needs it
......................................................................

setup: make smpp.twisted3 an extra, only pySim-smpp2sim.py needs it

smpp.twisted3 is imported by pySim-smpp2sim.py alone; no module under
pySim/ uses it. Every release of smpp.twisted3 pins Twisted~=23.10.0,
a Twisted with three open advisories (CVE-2026-42304, CVE-2024-41810,
CVE-2024-41671), so every installation of the library carries a Twisted
it never loads and cannot upgrade. Move the requirement to a
`smpp2sim` extra; the script keeps working with `pip install
"pysim[smpp2sim]"` and fails with a plain ImportError without it, the
same way the `smdpp` extra behaves for klein.

The folder osmocom-pysim-smpp-twisted-optional of
hampushellsberg-dev/PySIM-upstream-patches on GitHub has the analysis
and the validation output.

Change-Id: I7001effd073fa341c08a6e4508e22b568aa7cd70
---
M requirements.txt
M setup.py
2 files changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/81/43981/1

diff --git a/requirements.txt b/requirements.txt
index aafccc2..947ccff 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -14,5 +14,4 @@
 git+https://github.com/osmocom/asn1tools
 packaging
 git+https://github.com/hologram-io/smpp.pdu
-smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted
 smpplib
diff --git a/setup.py b/setup.py
index ff093fb..20feba4 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,6 @@
         "packaging",
         "smpp.pdu @ git+https://github.com/hologram-io/smpp.pdu";,
         "asn1tools",
-        "smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted";,
     ],
     scripts=[
         'pySim-prog.py',
@@ -57,6 +56,9 @@
             "requests",
             "smpplib",
         ],
+        "smpp2sim": [
+            "smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted";,
+        ],
         "CardKeyProviderPgsql": [
             "psycopg2-binary",
         ]

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/43981?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I7001effd073fa341c08a6e4508e22b568aa7cd70
Gerrit-Change-Number: 43981
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-CC: hampushellsberg <[email protected]>

Reply via email to