Drop unused requests dependency; termux config parity

requests was listed in requirements.txt and installed by termux_setup.sh but is
never imported. Remove it from both. Add smdp_address/format to the Termux
config template for parity with config.yaml.example. 98 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
A ashkan@beigi.net 2026-07-02 02:49:56 +00:00
parent e054cc69c3
commit 7c71ab1def
3 changed files with 7 additions and 2 deletions

View File

@ -80,6 +80,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Profile package `type` is now `profile-package-v2`; it embeds the raw
credentials plus the encoded EF byte values and the LPA activation code.
### Removed
- Dropped the unused `requests` dependency from `requirements.txt` and the
Termux installer (it was never imported).
### Fixed
- `generate_imsi` hardcoded a 10-digit MSIN, producing invalid 16-digit IMSIs
for a 3-digit MNC (e.g. MCC 302 / MNC 720). MSIN length is now

View File

@ -23,7 +23,7 @@ pkg install -y python python-pip nginx
# ---- 2. Install Python dependencies ----
echo "[2/5] Installing Python dependencies..."
pip install --quiet flask cryptography pymongo pyyaml requests
pip install --quiet flask cryptography pymongo pyyaml
# ---- 3. Deploy server files ----
echo "[3/5] Deploying server files..."
@ -65,6 +65,8 @@ profile:
carrier_name: "Ad-Hoc Network"
profile_name: "Emergency 5G"
apn: "internet"
smdp_address: "esim.local"
format: "v2"
EOF
# ---- 4. Configure nginx ----

View File

@ -1,7 +1,6 @@
Flask==3.0.0
cryptography==41.0.7
pymongo==4.6.0
requests==2.31.0
pyyaml==6.0.1
pytest==7.4.0
pytest-cov==4.1.0