Skip to content

Initial Python package resolution#1945

Draft
abstractedfox wants to merge 46 commits into
cloudflare:mainfrom
abstractedfox:python-package-resolution
Draft

Initial Python package resolution#1945
abstractedfox wants to merge 46 commits into
cloudflare:mainfrom
abstractedfox:python-package-resolution

Conversation

@abstractedfox

@abstractedfox abstractedfox commented Jul 14, 2026

Copy link
Copy Markdown
Member

Early support for automatically installing nested dependencies. At present, this branch only tests for pure Python packages, and only from PyPI (pyodide index to be added in a future PR).

Builds on #1881 (so commits will look excessive until that's merged)

This is the beginning of work on this feature, it's a little comment-heavy
to that end and has some patterns that may not be permanent (these have
generally been noted as such). As of this commit, there are tests that
start to poke at this, namely the one that brings in fastapi, which currently
fails due to an extension it doesn't like.
Proof of concept for package support in dynamic Python workers.
As of this commit, it can retrieve an sdist with a flat layout from pypi and
install it into the virtual filesystem. It doesn't do dependency resolution,
so the current tests fail when attempting to import FastAPI's deps.
Used sdists before, now it uses wheels. Pre cleanup commit
This test only needs to confirm that retrieval of a hard list of pure python packages, without
dependency resolution, works.
This seems to be specific to JS packages
This dependendency caused issues when working in a container, but its removal
was purely for my sake

This reverts commit 4f8990d.
Also makes PyprojectToml interface less stringent
These got caught by the checks done by `pnpm run check`
These are already set implicitly by createWorker
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 60fa2f0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@1945

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@1945

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@1945

create-think

npm i https://pkg.pr.new/create-think@1945

hono-agents

npm i https://pkg.pr.new/hono-agents@1945

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@1945

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@1945

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@1945

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@1945

commit: 60fa2f0

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