Skip to content

Upgrade componentize-py to 0.18 (Python 3.14)#11

Merged
posborne merged 3 commits into
mainfrom
posborne/upgrade-componentize-py-python-3.14
Oct 20, 2025
Merged

Upgrade componentize-py to 0.18 (Python 3.14)#11
posborne merged 3 commits into
mainfrom
posborne/upgrade-componentize-py-python-3.14

Conversation

@posborne
Copy link
Copy Markdown
Member

@posborne posborne commented Oct 20, 2025

This release was published this morning by Joel and uses a more standard wasi SDK, includes zlib support, and python 3.14 support. Upgrade the version requirements for componentize-py (and include uv.lock from now on with latest matching for deps).


$ curl -s http://localhost:7676/info | jq
{
  "message": "Hello from Fastly Compute with Flask!",
  "path_info": "/info",
  "python_version": "3.14.0 (342deab:342deab, Oct 20 2025, 14:41:16) [Clang 20.1.8-wasi-sdk (https://
github.com/llvm/llvm-project 87f0227cb60147a26a1",
  "request_method": "GET",
  "service": "fastly-compute-python-flask",
  "status": "ok",
  "vcpu_time_ms": 6
}

@posborne posborne requested a review from erikrose October 20, 2025 18:32
@posborne posborne force-pushed the posborne/upgrade-componentize-py-python-3.14 branch from 50001e8 to a7558a3 Compare October 20, 2025 18:42
I was able to get past IDNA errors by including an unused top-level
import of encodings.idna in the wsgi framework code.  This makes sure
it gets included in our final artifact and avoids the lookup errors
when IDNA encoding is done by werkzeug (used by flask).  This let's
us get rid of the shim installation monkeypatching entirely.
Copy link
Copy Markdown
Member

@erikrose erikrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to get past IDNA errors by including an unused top-level
import of encodings.idna in the wsgi framework code.

Nice!

@posborne posborne merged commit 28c7e9c into main Oct 20, 2025
3 checks passed
@posborne posborne deleted the posborne/upgrade-componentize-py-python-3.14 branch October 20, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants