Installing SDK without botocore and other transitive dependencies
- Vorherrschende Sprache
- Python
- Sterne
- 338
- Forks
- 147
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I'm using the SDK in a Lambda function, meaning AWS automatically provides a fairly recent version of boto3/botocore and JMESPath. Installing botocore brings in 10MB of code and results in the overall deployment package being over the limit at which code can be displayed in the AWS console.
Is there a way to only install the SDK without it's dependencies? I suppose it's possible to have multiple requirements files and install the X-Ray one with "--no-dependencies", but that just pushes extra complication into CI/CD. It would be awesome if I could do something like "pip install aws-xray-sdk[core]" (or slim or whatever). I can accept that it might require a note that having a really new version of the SDK might have problems if my provided botocore is too old.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Abhängigkeitsdeklarationen und Installationsmetadaten des Pakets zu prüfen, um zu sehen, wie boto3, botocore und JMESPath als erforderlich angegeben sind. Definiere und dokumentiere einen unterstützten Installationspfad, der redundante, von Lambda bereitgestellte Abhängigkeiten vermeidet, und überprüfe, dass das SDK mit diesem Pfad weiterhin korrekt installiert und importiert werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- backend, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100