aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
chore(deps): remove pyjwt constraint-dependencies when mcp bumps its floor
- Lingua principale
- TypeScript
- Stelle
- 143
- Fork
- 46
- Merge medio
- 3g 9h
- PR unite (30g)
- 20
Descrizione
## Context
Issue #266 adds `constraint-dependencies = ["pyjwt>=2.13.0"]` to `agent/pyproject.toml` as a workaround for PYSEC-2026-175/177/178/179. This constraint is needed because `mcp` (v1.27.1) transitively pulls in pyjwt but hasn't bumped its own floor to >=2.13.0 yet.
## When to action
When `mcp` releases a version whose own dependency tree resolves pyjwt >=2.13.0 naturally (i.e., the constraint becomes redundant).
**How to check:** After bumping `mcp` in `agent/pyproject.toml`, temporarily remove the constraint and run `uv lock`. If pyjwt resolves to >=2.13.0 without the constraint, it's safe to remove.
## What to do
1. Remove the `pyjwt>=2.13.0` line from `[tool.uv] constraint-dependencies` in `agent/pyproject.toml`
2. If no other entries remain, remove the entire `[tool.uv]` section
3. Run `uv lock` to regenerate
4. Verify `osv-scanner` still passes (pyjwt should be >=2.13.0 from mcp's own deps)
## Acceptance Criteria
- [ ] `constraint-dependencies` for pyjwt removed from `agent/pyproject.toml`
- [ ] `agent/uv.lock` regenerated cleanly
- [ ] `osv-scanner` pre-push hook still passes
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Attendi che una release di mcp risolva pyjwt a >=2.13.0, quindi ispeziona agent/pyproject.toml e rimuovi temporaneamente il vincolo. Esegui uv lock, verifica che agent/uv.lock venga rigenerato correttamente ed esegui l’hook pre-push di osv-scanner. L’attività è completata quando il vincolo e qualsiasi sezione [tool.uv] vuota sono stati rimossi, mentre pyjwt rimane alla versione richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system, tooling
- Tipo di issue
- Refactoring
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100