aws / aws/aws-sdk-python

Support Python 3.11

未关闭
#92 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
169
派生
19
平均合并
1 天 20 小时
30 天内合并 PR
11

描述

## 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

贡献指南

打开贡献指南

调研方向

从 smithy-lang/smithy-python 开始,检查 Smithy runtime、代码生成器元数据以及现有的 CI 和测试覆盖率。使用 Python 3.11 运行单元、协议、传输和流式测试,包括 aiohttp 和 AWS CRT 路径;当生成的客户端能够安装和导入、软件包和文档声明支持,并且 CI 覆盖率通过时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, developer-experience
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。