diff --git a/.changeset/happy-mirrors-worry.md b/.changeset/happy-mirrors-worry.md new file mode 100644 index 000000000000..20771a04a9c3 --- /dev/null +++ b/.changeset/happy-mirrors-worry.md @@ -0,0 +1,7 @@ +--- +"wrangler": patch +--- + +feature:Add warning about deploying Python with requirements.txt + +This expands on the warning shown for all Python Workers to include a message about deploying Python Workers with a requirements.txt not being supported. diff --git a/packages/wrangler/src/deployment-bundle/guess-worker-format.ts b/packages/wrangler/src/deployment-bundle/guess-worker-format.ts index a2f81419d319..d8d8df0a295c 100644 --- a/packages/wrangler/src/deployment-bundle/guess-worker-format.ts +++ b/packages/wrangler/src/deployment-bundle/guess-worker-format.ts @@ -26,7 +26,7 @@ export default async function guessWorkerFormat( `The entrypoint ${path.relative( process.cwd(), entryFile - )} defines a Python worker, support for Python workers is currently experimental.` + )} defines a Python worker, support for Python workers is currently experimental. Python workers with a requirements.txt file can only be run locally and cannot be deployed.` ); return "modules"; }