From 3dd043feb1a0cd63d4d66847ddcd39f608160b72 Mon Sep 17 00:00:00 2001 From: "Claude (Carey Janecka)" Date: Tue, 20 Oct 2026 17:17:53 -0700 Subject: [PATCH] build: require Python 3.10 and pin the turnkey-sdk-types floor The generated client uses a PEP 604 union that Python 3.9 evaluates at import time, so import turnkey_http raised TypeError there while the metadata claimed 3.8 support. The three packages now require 3.10. turnkey-http now requires turnkey-sdk-types>=0.2.0, so a resolver cannot pair it with the 0.1.0 types that lack the activity error classes. The stamper floor is >=0.1.0: 0.1.1 only raises the Python floor, and CI installs the local stamper before the release bumps it. Co-Authored-By: Claude Opus 5.5 --- .changeset/python-310-floor-http.yml | 4 ++++ .changeset/python-310-floor.yml | 4 ++++ packages/api-key-stamper/pyproject.toml | 4 +--- packages/http/pyproject.toml | 8 +++----- packages/sdk-types/pyproject.toml | 4 +--- 5 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .changeset/python-310-floor-http.yml create mode 100644 .changeset/python-310-floor.yml diff --git a/.changeset/python-310-floor-http.yml b/.changeset/python-310-floor-http.yml new file mode 100644 index 0000000..fe2715d --- /dev/null +++ b/.changeset/python-310-floor-http.yml @@ -0,0 +1,4 @@ +type: patch +packages: [ http, sdk-types ] +changelog: |- + Require Python 3.10 or newer, matching what the generated code already needed. `turnkey-http` now requires `turnkey-sdk-types>=0.2.0` and `turnkey-api-key-stamper>=0.1.0`, so a resolver cannot pair it with the 0.1.0 types that lack the activity error classes. diff --git a/.changeset/python-310-floor.yml b/.changeset/python-310-floor.yml new file mode 100644 index 0000000..451e404 --- /dev/null +++ b/.changeset/python-310-floor.yml @@ -0,0 +1,4 @@ +type: patch +packages: [ api-key-stamper ] +changelog: |- + Require Python 3.10 or newer. The generated client already needed it: `import turnkey_http` failed on Python 3.9 with a TypeError, while the package metadata still claimed 3.8. pip now refuses to install on older interpreters instead of installing a package that cannot be imported. diff --git a/packages/api-key-stamper/pyproject.toml b/packages/api-key-stamper/pyproject.toml index 9869d44..58156ac 100644 --- a/packages/api-key-stamper/pyproject.toml +++ b/packages/api-key-stamper/pyproject.toml @@ -7,7 +7,7 @@ name = "turnkey-api-key-stamper" version = "0.1.0" description = "API key authentication stamper for Turnkey API" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" license = "Apache-2.0" license-files = ["LICENSE"] authors = [ @@ -18,8 +18,6 @@ classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", diff --git a/packages/http/pyproject.toml b/packages/http/pyproject.toml index fd29305..8293302 100644 --- a/packages/http/pyproject.toml +++ b/packages/http/pyproject.toml @@ -7,7 +7,7 @@ name = "turnkey-http" version = "0.2.1" description = "HTTP client for Turnkey API" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" license = "Apache-2.0" license-files = ["LICENSE"] authors = [ @@ -17,8 +17,6 @@ keywords = ["turnkey", "api", "http", "client", "sdk"] classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -26,8 +24,8 @@ classifiers = [ dependencies = [ "requests>=2.31.0", "certifi>=2026.10.19", - "turnkey-api-key-stamper", - "turnkey-sdk-types", + "turnkey-api-key-stamper>=0.1.0", + "turnkey-sdk-types>=0.2.0", ] [project.optional-dependencies] diff --git a/packages/sdk-types/pyproject.toml b/packages/sdk-types/pyproject.toml index b388fcb..e54e1b8 100644 --- a/packages/sdk-types/pyproject.toml +++ b/packages/sdk-types/pyproject.toml @@ -7,7 +7,7 @@ name = "turnkey-sdk-types" version = "0.2.0" description = "Type definitions for Turnkey API" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" license = "Apache-2.0" license-files = ["LICENSE"] authors = [ @@ -18,8 +18,6 @@ classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",