Skip to content

Add Python Language Support#1811

Open
posborne wants to merge 5 commits into
mainfrom
posborne/python-language-support
Open

Add Python Language Support#1811
posborne wants to merge 5 commits into
mainfrom
posborne/python-language-support

Conversation

@posborne
Copy link
Copy Markdown
Member

@posborne posborne commented Jun 3, 2026

This change introduces support for Python on Compute to the fastly CLI. For dependencies, after exploring a few different options it was determined that this responsibility was best left to the fastly-compute-py which executes at a better point in time to correctly determine what is part of a Python services dependency graph (in addition to separation of concerns).

The way this dependency information is passed along, dependent on fastly/compute-sdk-python#89, is that the information is written directly into the WASM component as part of the fastly-compute-py build process. Other information may be injected similarly. This approach may be used by other SDKs/tooling in the future should it make sense or be used directly for "Other" languages.

Discussion is ongoing for the approach we'll follow for Python SDK starter templates but that is not included here as they are not available.

posborne added 3 commits June 3, 2026 14:11
Modify the metadata annotation step to read and preserve any fastly_data
already embedded in the Wasm binary (e.g. by language-specific build tools
like python). This allows build tools to supply package info directly while
the CLI dynamically fills in remaining fields (like cloned repository info).
Add configuration, toolchain parsing, version validation, and build scaffolding
for Python projects inside the compute environment. Host Python >= 3.11 and uv
are utilized as standard toolchain constraints.
Ensure PromptForStarterKit does not index out-of-bounds when there are no
configured starter kits for a language. Instead, prompt the user for a
template git URL directly, or fail gracefully if non-interactive.
@posborne posborne requested a review from a team as a code owner June 3, 2026 19:25
posborne added 2 commits June 3, 2026 16:32
Use 0600 permissions for mock WASM files and add gosec ignore directives for
mock executable creation.
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.

1 participant