-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More strict handling of requirement specifiers in requirements.txt. #5118
More strict handling of requirement specifiers in requirements.txt. #5118
Conversation
After some discussion, the runtime team has decided that we should prevent users from specifying version identifiers altogether within requirements.txt, rather than silently dropping them. This would prevent users from being deluded into thinking that they could specify versions of Python packages in Python workers.
🦋 Changeset detectedLatest commit: 5a96e4f The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-wrangler-5118 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5118/npm-package-wrangler-5118 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-wrangler-5118 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-create-cloudflare-5118 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-cloudflare-kv-asset-handler-5118 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-miniflare-5118 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-cloudflare-pages-shared-5118 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8116126052/npm-package-cloudflare-vitest-pool-workers-5118 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5118 +/- ##
=======================================
Coverage 70.33% 70.34%
=======================================
Files 298 298
Lines 15515 15546 +31
Branches 3987 3999 +12
=======================================
+ Hits 10913 10936 +23
- Misses 4602 4610 +8
|
1ff3aa0
to
e6f49a4
Compare
After some discussion, the runtime team has decided that we should prevent users from specifying version identifiers altogether within requirements.txt, rather than silently dropping them. This would prevent users from being deluded into thinking that they could specify versions of Python packages in Python workers, then being confused because their code mysteriously breaks.
Fixes EW-8189.
Author has addressed the following:
Note for PR author:
We want to celebrate and highlight awesome PR review! If you think this PR received a particularly high-caliber review, please assign it the label
highlight pr review
so future reviewers can take inspiration and learn from it.