Repository navigation
feat!: require Python 3.10 or later #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.9.18 | ||
| 3.10 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,11 +17,10 @@ dependencies = [ | |
| "sniffio", | ||
| ] | ||
|
|
||
| requires-python = ">= 3.9" | ||
| requires-python = ">= 3.10" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Customers would see an unscoped changelog entry, and the commit subject forces a major version bump instead of leaving that to a maintainer. The subject is Why this was flaggedThe only commit, 6aaec21, uses the subject Verification: nit. Trigger: the PR merges with its only commit's subject as written. Commit 6aaec21 has the subject |
||
| classifiers = [ | ||
| "Typing :: Typed", | ||
| "Intended Audience :: Developers", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
|
|
@@ -129,7 +128,7 @@ filterwarnings = [ | |
| # there are a couple of flags that are still disabled by | ||
| # default in strict mode as they are experimental and niche. | ||
| typeCheckingMode = "strict" | ||
| pythonVersion = "3.9" | ||
| pythonVersion = "3.10" | ||
|
|
||
| exclude = [ | ||
| "_dev", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ export DEFER_PYDANTIC_BUILD=false | |
|
|
||
| # Note that we need to specify the patch version here so that uv | ||
| # won't use unstable (alpha, beta, rc) releases for the tests | ||
| PY_VERSION_MIN=">=3.9.0" | ||
| PY_VERSION_MIN=">=3.10.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Maintainers get a minimum-Python bump that the next generated commit will revert or conflict on, which can block every SDK's release. This hand-written commit edits generator-owned Why this was flaggedCommit 6aaec21 has no Verification: Trigger: the next generated commit from the SDK pipeline, as long as the SDK configuration still targets 3.9. HEAD commit 6aaec21 has no |
||
| PY_VERSION_MAX=">=3.14.0" | ||
|
|
||
| function run_tests() { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 After this merge, CI no longer runs the
client.copy()memory-leak regression test on any Python version. Before, the 3.9 lane ran it. Bothtest_copy_build_requesttests are skipped whensys.version_info >= (3, 10)(tests/test_client.py:248, :1151). The 3.10 and 3.14 lanes both match that condition. Fix: keep the test running on at least one supported lane. For example, narrow both skipif conditions to>= (3, 12), which is where the skip reason says the leak starts. Or, if 3.10 also leaks, say in the PR that this coverage is being dropped. [also at: scripts/test:13 - After merging, no test lane runs the memory-leak regression tests forclient.copy(), on either the sync or async client.]Why this was flagged
On the base branch, CI runs ./scripts/bootstrap, and
uv python installinstalls.python-version(3.9.18). The min lane in scripts/test (UV_PYTHON=">=3.9.0") then runs on 3.9, wheretest_copy_build_request(sync at tests/test_client.py:248, async at :1151) runs. That test traces allocations fromclient.copy()and_build_requestwith tracemalloc. Its decorator is@ pytest.mark.skipif(sys.version_info >= (3, 10), reason="fails because of a memory leak that started from 3.12"). This PR sets.python-versionto 3.10,PY_VERSION_MINto>=3.10.0andrequires-pythonto>= 3.10. Both remaining lanes, 3.10 and 3.14, therefore satisfy the skip condition. No CI run will catch a per-copy memory leak in the Sent or AsyncSent clients after this merge. The PR's reported 472 passed is consistent with both tests being skipped. Nothing else in tests/ covers a leak incopy().Verification: tests/test_client.py:248 (sync) and :1151 (async) both skip when
sys.version_info >= (3, 10). On the base,.python-versionwas3.9.18andPY_VERSION_MIN=">=3.9.0", so the min lane ran these tests on 3.9. This diff changes.python-versionto3.10andPY_VERSION_MINto">=3.10.0", so both tests are always skipped.