Initial Default Python Starter Kit - #1
Conversation
This basic examples includes the key pieces (pyproject.toml, fastly.toml, etc.) setup to use the fastly SDK. It makes use of the flask microframework based on the SDKs support for WSGI.
|
Please, contact Developer Platform at #ci-support if you need help using Forge runners |
kpfleming
left a comment
There was a problem hiding this comment.
A bunch of small stuff, but this looks great!
| name = "fastly-compute-python-app" | ||
| version = "0.1.0" | ||
| description = "A basic starter kit for Python on Fastly Compute" | ||
| requires-python = ">=3.12" |
There was a problem hiding this comment.
Any reason not to start with 3.14?
There was a problem hiding this comment.
We'll always bundle a WASI CPython 3.14 currently, but this constraint will apply to the developer machine. To a degree, I think we could even relax this further as we only minimally depend on the host setup.
So, this tries to balance:
- Going to 3.14 will just cause pain for a lot of devs as their host OS doesn't ship with a new enough python.
- Going older could pick up versions of libs that might not work well on 3.14 (though I haven't concretely proven this).
Python 3.12 is what ships with Ubuntu 24.04 which I did not want to have be broken out of the box as it will still likely be a common developer and CI python version for awhile longer.
Co-authored-by: Kevin P. Fleming <kpfleming@users.noreply.github.com>
|
Test is failing purely due to lack of CLI support, which is blocked on this repo being ready, so I'm going to go ahead and merge. |
This basic examples includes the key pieces (pyproject.toml, fastly.toml, etc.) setup to use the fastly SDK. It makes use of the flask microframework based on the SDKs support for WSGI.