Commit Graph

2569 Commits

Author SHA1 Message Date
Hood Chatham 3f845c87a1
Pass same environment variables to out of tree builds as in tree ones (#3495)
Resolves https://github.com/pyodide/pyodide/issues/3493
2023-01-23 17:09:31 -08:00
Hood Chatham d3c2a6dfa8
Fix setStdin to insert a null after each buffer if autoEOF parameter is true. (#3488)
Resolves https://github.com/pyodide/pyodide/issues/3413
2023-01-23 17:07:59 -08:00
Hood Chatham dc514421ad
DOCS Build emsdk before python (#3489) 2023-01-24 09:11:22 +09:00
TheOnlyWayUp 47fad2e91f
DOCS Update micropip docs link on Website (#3494)
[skip ci]
2023-01-23 17:58:38 +01:00
Alexey Ignatiev 3c92574c57
Another update of python-sat. (#3468) 2023-01-22 22:22:53 -08:00
Hood Chatham 485e806383
Make sure pyodide config doesn't output anything extra (#3483)
Resolves https://github.com/pyodide/pyodide/issues/3430
2023-01-22 08:24:58 -08:00
Hood Chatham af4158da77
Don't check emscripten version when creating pyodide venv (#3485)
Resolves https://github.com/pyodide/pyodide/issues/3472
2023-01-22 08:21:03 -08:00
Hood Chatham 1b2375f76c
Fix `from pyodide.ffi import *` (#3484)
Also remove almost everything from `_core.py` and moves it to `ffi/__init__.py`.
Micropip imports `IN_BROWSER` from `pyodide._core` so we leave that in there.

Resolves https://github.com/pyodide/pyodide/issues/3432
2023-01-22 08:19:48 -08:00
Hood Chatham 8a26af4f76
DOCS Improve JavaScript type rendering (#3481) 2023-01-22 09:26:42 +01:00
Gyeongjae Choi 8d7137f112
Fix incorrect error messages in ModuleNotFoundError (#3435)
Close https://github.com/pyodide/pyodide/issues/3423
2023-01-22 09:20:19 +01:00
Hood Chatham 94b933b717
Remove optional requirements from lxml meta.yaml (#3482) 2023-01-22 09:13:01 +01:00
Hood Chatham 69d7b4e099
Remove napoleon_fixes (#3479)
I upstreamed all of this into sphinx-autodoc-typehints.
2023-01-21 17:44:20 -08:00
Hood Chatham 6972ff101d
DOCS Add sphinx cross referencing to MDN docs using intersphinx (#3477) 2023-01-20 11:21:44 +09:00
Deepak Cherian 9323d19dc2
Update xarray to 2023.01.0 (#3476) 2023-01-18 17:05:52 -08:00
Hood Chatham 2801ffb0db
More updates to docstrings (#3466)
I added a new decorator called `@docs_argspec` to override the argument specification
of a function used in the docs by setting `func.__wraps__` to a fake function. This only
happens when building the docs, normally it is a no-op.

`@docs_argspec` is needed when using `@overload` because mypy requires the argspec
of the main function to be at least as general as the argspecs of all the overloads, which
causes suboptimal rendering in the api docs.
2023-01-18 14:13:37 -08:00
Hood Chatham 9b58bf4294
DOCS Remove ensure_argument_types and use autodoc-typehints feature for this (#3475)
Turns out there was a setting for this. Should have read the docs!
2023-01-18 14:13:17 -08:00
Gyeongjae Choi 9afb50a03e
Update jquery terminal version in console.html to 2.35.2 (#3474) 2023-01-18 10:14:15 +01:00
Gyeongjae Choi 5523b1397f
Implement pycompile option in pyodide create-zipfile CLI (#3463) 2023-01-18 10:00:18 +01:00
Hood Chatham eca4b1615e
Add sphinx-design, fix tabs (#3473)
In #3461 I dropped `sphinx-panels` but of course we *were* using it. It has a successor called
`sphinx-design` which works with sphinx 5.x (still not 6.x but we have several packages that cap 
sphinx <6). I also updated the use of the tabbed directive to the new sphinx-design api.
2023-01-17 22:35:30 -08:00
Hood Chatham 920f2e1679
DOCS: Help Spinx find ffi types (#3465)
The `pyodide.ffi` stuff is defined in `_pyodide._core_docs`. We don't want `_pyodide._core_docs` to appear in the documentation because this isn't where you should import things from so we override the `__name__` of `_pyodide._core_docs` to be `pyodide.ffi`. But then Sphinx fails to locate the source for the stuff defined in `_pyodide._core_docs`. This patches `ModuleAnalyzer` to tell it to look for the source of things from `pyodide.ffi` in `_pyodide._core_docs`.
2023-01-17 22:34:15 -08:00
Hood Chatham 3cc6ac7873
Minor docs fixes (#3467)
Remove the property prefix from properties, add a link for ast.Module.

Previously this included more significant changes but they have been upstreamed into sphinx-autodoc-typehints.
2023-01-18 14:00:39 +09:00
Hood Chatham d9d7078d5c
Emscripten 3.1.30 (#3471) 2023-01-17 15:31:36 -08:00
Gyeongjae Choi fa8289eb11
MAINT Relocate functions in pywasmcross (#3464) 2023-01-17 13:31:45 +09:00
Hood Chatham 4ff8687965
DOCS Fixes for shortcomings of napoleon (#3451)
I opened a PR for one of the Napoleon changes:
https://github.com/sphinx-doc/sphinx/pull/11131
But we use Sphinx v5.3 so even if we upstream Napoleon fixes into Sphinx v6.x, 
we won't get to use them for a while.
2023-01-16 19:59:07 -08:00
Hood Chatham b32075c9c0
MAINT Define `InternalError` and `ConversionError` in _pyodide_core (#3459)
Some minor cleanup: define `InternalError` and `ConversionError` in `_pyodide_core`
and import them into C. This should make it possible to pickle/unpickle them.
2023-01-16 19:13:09 -08:00
Hood Chatham e4421b94aa
Update docs requirements (#3461)
With this we can get up to Sphinx 5.3.0 (from Sphinx 4.5.0). I dropped sphinx-panels
since it has a version pin on Spinx < 5 (we don't seem to use it anyways). I moved to
sphinx-book-theme 0.4.0rc1 since version 0.3.0 pins Sphinx < 5. 

This is relevant because new versions of sphinx-autodoc-typehints require Sphinx>=5.3
so we can't pull in my fixes to sphinx-autodoc-typehints.

In the future, I would like for version caps (==, <, <=, and =~) to have comments
explaining them. I removed all the version caps since none of them seem to actively break.
In particular, we can now use jinja2 version 3 so we don't have to pin docutils 0.16.
2023-01-16 18:47:20 -08:00
Hood Chatham a7f44c8adf
Add accessor macros for JsProxy fields (#3460) 2023-01-17 09:04:50 +09:00
Hood Chatham 6e1b6b826e
When importing _pyodide_core fails, throw a readable error message (#3458) 2023-01-17 08:53:55 +09:00
Hood Chatham 6b2c6d9d68
Add test_raise_js_error (#3457)
This adds a simple error test since it seems that all the other
tests are more complicated.
2023-01-17 08:48:56 +09:00
Gyeongjae Choi eb7b80bb3e
Replace print statements with rich in pyodide-build (#3442) 2023-01-16 13:46:38 +09:00
Hood Chatham 9e01fadafc
Updates to docstrings (#3453)
Increased the number of cross references, removed some types
for better compatibility with sphinx-autodoc-typehints and made
various other minor improvements.

Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-16 13:19:56 +09:00
Gyeongjae Choi 0483a6bbf0
Remove a duplicated test in test_cli (#3454) 2023-01-16 13:19:06 +09:00
Alexey Ignatiev 87ea5862c4
Version update for python-sat. (#3452)
This updates the version of python-sat. No changes are made in the compilation process
for the package itself, i.e. I am hopeful it will successfully pyodide-compile "as is".
2023-01-15 14:17:16 -08:00
Hood Chatham f55bb2e423
Cleanup of documentation configuration (#3448) 2023-01-14 15:01:20 +01:00
Gyeongjae Choi ae4492a1fd
Add a CLI command to create a zipfile of Python libraries (#3411)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-01-14 14:59:42 +01:00
Eli Lamb 3ea89996a6
Added react-py to Related Projects (#3450)
Resolves issue #3447
2023-01-13 19:03:06 -08:00
Gyeongjae Choi 094a6dafcf
FIX Append --fresh flag to let cmake ignore existing cache (#3445)
Resolve https://github.com/pyodide/pyodide/issues/3425
2023-01-13 18:41:29 +01:00
Gyeongjae Choi ef112108c9
Add rust toolchain to the pyodide-env docker image (#3441)
This adds rust toolchain into our docker image so we don't have to install it every time.

make rust command still exists, but I removed it from the docs. So now a user (who wants to build a package that requires rust) is responsible for installing rust toolchain in their build setup, which is reasonable I think.

Co-authored-by: josephrocca <1167575+josephrocca@users.noreply.github.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2023-01-10 13:28:04 +09:00
Gyeongjae Choi fbc4762fcb
Add rust toolchain to the dockerfile (#3443) 2023-01-10 10:57:07 +09:00
josephrocca fd49100981
Ignore --exclude-libs link flag (#3434) 2023-01-09 08:21:37 +09:00
Hood Chatham b0b07efe94
Update to sphinx-js 3.2.1 (#3429) 2023-01-07 13:23:56 +02:00
Hood Chatham aeb066bbce
DOCS Improve rendering of JavaScript property types (#3426) 2023-01-06 00:06:04 -05:00
Joe Marshall 76581a7d28
Get deps from pypi during build (#3310) 2023-01-05 08:45:20 +09:00
dependabot[bot] 0fa8f9dcf6
Bump json5 from 1.0.1 to 1.0.2 in /src/js (#3414)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 08:27:56 +09:00
Roman Yurchak e8f8324eb2
Add CLI command to py-compile wheels (#3253)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2023-01-04 17:07:07 +02:00
Hood Chatham e90154f3e2
DOCS Use autodoc typehints and make various improvements to autodoc rendering (#3405)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-01-04 11:51:09 +02:00
Gyeongjae Choi 036c1ac85e
Fix pyodide-py package name (#3412) 2023-01-04 11:08:23 +02:00
Hood Chatham 4d09958ba0
Emscripten 3.1.29 (#3408) 2023-01-04 09:30:46 +09:00
Jeff Glass 57d4412b74
DOCS Fix link to out-of-tree-builds documentation (#3409)
[skip ci]
2023-01-03 22:50:56 +02:00
Roman Yurchak 9888f13bc1
DOC Fix duplicate version section name in the changelog (#3406)
[skip ci]
2023-01-03 18:13:46 +02:00