Support Python 3.11
- Ngôn ngữ chính
- Python
- Star
- 169
- Fork
- 19
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 11
Mô tả
## Request
The AWS SDK for Python currently requires Python 3.12 or newer. This issue tracks adding support for Python 3.11, which remains supported upstream until October 2027. It follows the version-support discussion in #8. Python 3.10 is outside this issue's scope.
Our initial review indicates that Python 3.11 support is feasible, but we have not committed to a release or timeline. If this affects you, please add a thumbs-up reaction. Comments describing blocked use cases or deployment environments will help us understand the impact.
## Required Changes
Generated service-client code already appears compatible with Python 3.11. Most changes are needed in the Smithy runtime:
- Replace Python 3.12-only PEP 695 syntax with `TypeAlias`, `TypeVar`, and `Generic`
- Use `typing_extensions.override` on Python 3.11
- Update runtime and code-generator metadata
- Add Python 3.11 CI and test coverage
- Regenerate affected clients
- Test aiohttp, AWS CRT, and streaming operations
- Update SDK documentation and classifiers
The third-party transport and JSON parser dependencies we reviewed already support Python 3.11.
Most implementation work will take place in [smithy-lang/smithy-python](https://github.com/smithy-lang/smithy-python). This issue will track the SDK release and provide a place to follow progress.
## Completion Criteria
- Generated clients install and import on Python 3.11
- Unit, protocol, transport, and streaming tests pass
- Published packages declare Python 3.11 support
- Documentation and CI include Python 3.11
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong smithy-lang/smithy-python và kiểm tra runtime của Smithy, siêu dữ liệu của trình tạo mã, cùng độ bao phủ CI và kiểm thử hiện có. Chạy các bài kiểm thử unit, protocol, transport và streaming bằng Python 3.11, bao gồm các đường dẫn aiohttp và AWS CRT; được xem là hoàn tất khi các client được tạo có thể được cài đặt và import, các package và tài liệu khai báo hỗ trợ, và độ bao phủ CI đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api, developer-experience
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100