Skip to content

Commit

Permalink
Add warning about deploying Python with requirements.txt (#6258)
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Jul 15, 2024
1 parent db11a0f commit 4f524f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/happy-mirrors-worry.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 4f524f2

Please sign in to comment.