Change Python package resolution to use the PyPA simple api on PyPI#1950
Draft
abstractedfox wants to merge 49 commits into
Draft
Change Python package resolution to use the PyPA simple api on PyPI#1950abstractedfox wants to merge 49 commits into
abstractedfox wants to merge 49 commits into
Conversation
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
Remove check for when there are no dependencies, since there will always be at least one
A fair amount of this is AI code, a beautification pass would be beneficial
This is implicit on Python dynamic workers now
…the result object
…oml and package.json in one worker
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
create-think
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1945 (so diffs will look excessive until it's merged) and implements feedback from @ryanking13 on #1881. Because this is part of ongoing work on this feature, new components have been added in the interest of keeping changes more incremental, thus not all aspects of the implementation are fully complete (this should be mentioned in the comments where it's relevant, but do say so if there are any gaps). Much of this is generated code.