This adds the yarl package which is a requirement (with some Cython code) for the openai client library (#3588).
idna is a Pure python dependency of yarl.
This PR removes *rollup* in favor of *esbuild*, ensuring `DEBUG` flag, when used,
is available to the produced JS and the *umd* dance has been simplified, ditching
the *amd* part from it as I think *amd* is kinda dead as module system.
Closes https://github.com/pyodide/pyodide/issues/3687
I forgot to make the changes for the dev deployment in
https://github.com/pyodide/pyodide/pull/3667
Overall those are mostly identical lines repeated several times, however
because the cost of error is pretty high I prefer not to factorize it
for now. Instead, we should rethink this system, maybe moving dev
deployment to a separate bucket and making release deployment immutable.
<!-- Thank you for contributing to Pyodide! All improvements are
welcome,
so don't be afraid to make a PR. -->
### Description
<!-- Please explain what your PR is about:
- reasoning for the change
- some details of updated code
- any noteworthy choices to be aware of
Please refer to any related issues by #<issue_id> -->
### Checklists
<!-- Note:
If you think some of these steps are not necessary for your PR,
remove those checkboxes, or mark them as checked. If you keep unchecked
checkboxes,
we will assume that your PR is not ready to be merged -->
This automatically apply `as_object_map` to the values of the map
when the values are "plain old objects". The behavior is slightly naive.
Hopefully it will satisfy most people who have requested this feature.
Set the MIME type for wheels and zip files to application/wasm to enable CDN compression. Also optionally disable compression in zip files and wheels to make the brotli compression by the CDN more efficient.
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
Resolves#3615. Things like `from` and `finally` are reserved keywords in Python and so `a.finally`
is a `SyntaxError`. This automatically reroutes `a.from_` on a `JsProxy` to refer to `a.from` so it
can be used reasonably conveniently from Python.
This fixes eval_code / eval_code_async / CodeRunner.run / CodeRunner.runAsync so that the defaults for globals and locals work as documented. Resolves#3578.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>