Commit Graph

3421 Commits

Author SHA1 Message Date
YISH cdc5e9ec6a Automatic detection using podman 2024-08-14 18:20:24 +08:00
Hood Chatham 28806a2501
BLD Split src/js/esbuild.config.mjs into multiple files (#5006)
This separates the build step for _pyodide.out.js and pyodide.js. They happen at different steps
so it makes more sense to keep them separate.
2024-08-14 11:00:27 +02:00
Marianne Corvellec a215073169
Upgrade scikit-image to 0.24.0 (#5003) 2024-08-12 17:08:09 +02:00
Gyeongjae Choi 66a64b6f28
Remove third-party libraries from cross-build env (#4995)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-10 22:58:07 +09:00
Agriya Khetarpal 28f35106d6
Merge pull request #5000 from agriyakhetarpal/fix/changelog-4719
Add CHANGELOG entry for #4719, skip PROPACK test for `scipy.sparse.linalg._eigen`
2024-08-10 18:10:16 +05:30
pre-commit-ci[bot] d41e619927 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-10 09:54:47 +00:00
Agriya Khetarpal f63baf573d
Skip PROPACK test, run ARPACK and LOBPCG tests 2024-08-10 15:24:15 +05:30
Agriya Khetarpal a58268e6c6
Add CHANGELOG entry for #4719 2024-08-10 13:43:13 +05:30
Muspi Merol 71a211860c
Fix `pyimport` for some corner cases (#4993) 2024-08-10 17:11:58 +09:00
Agriya Khetarpal 7a6ec3524a
SciPy v1.13.0 (#4719) 2024-08-10 17:08:01 +09:00
James J Balamuta 73a13d0812
Add quarto-live to related projects (#4997) 2024-08-09 19:21:43 +02:00
Gyeongjae Choi c369fd8f37
Remove usage of `shared_library` key in pyodide lock file (#4996) 2024-08-09 17:54:29 +09:00
Kellen Malek 3136148342
PKG Add rasterio and affine (#4983)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-09 17:53:22 +09:00
pyodide-pr-bot 38d7b62fcc
Upgrade awkward-cpp to 37 (#4984)
Co-authored-by: pyodide-pr-bot (workflow) <username@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-05 20:35:30 +09:00
Eli Lamb d20daf2e33
PyRepl functionality migrated to react-py docs (#4986)
Update the related project link for PyRepl. The functionality of this project has been migrated to
the react-py docs as a playground environment.
2024-08-05 12:45:00 +02:00
Agriya Khetarpal 0161c4af7f
Add CasADi (#4936)
This PR aims to add CasADi, a C++ library with SWIG-generated bindings to Python. CasADi is a
framework for Python and MATLAB (and Octave) which provides tools for nonlinear optimization and
algorithmic differentiation, and offers interfaces to several solver suites, which are not required
but can be turned on via CMake flags. Just the SUNDIALS solver suite is required to build, and the
rest of the interfaces are optional (they are not enabled because of the high build times).
2024-08-05 10:57:49 +02:00
Luiz Irber 391d17ced7
update sourmash to v4.8.11 (#4980) 2024-08-01 10:53:14 +02:00
M Bussonnier 135d83e50a
Update pre-commit and fix new issues (#4975) 2024-08-01 10:52:39 +02:00
M Bussonnier 1441f554d9
HttpStatusError: store status code (#4974)
So we can directly access this information on the error object.
Closes #4973.
2024-07-30 16:21:52 +02:00
Gyeongjae Choi a64e534d03
Load shared libraries locally (#4876)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-30 20:05:25 +09:00
Gyeongjae Choi 01ca727681
CI Skip ci when updating the cross build metadata file (#4972) 2024-07-29 20:41:15 +09:00
Gyeongjae Choi 504d897187
TST Fix pygame and pytest tests (#4968)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-29 20:35:10 +09:00
github-actions[bot] 0d690e410c
Update cross-build metadata file for version 0.26.2 (#4971)
Co-authored-by: ryanking13 <24893111+ryanking13@users.noreply.github.com>
2024-07-29 18:59:09 +09:00
Hood Chatham 73bcf49a3d
PERF Optimize away temporary when making method calls on JsProxy (#4963)
This switches it so that when we call `jsobj.f()` instead of introspecting what
operations are possible on `jsobj.f` and creating an appropriate
callable `JsProxy` corresponding to the bound method, then calling this bound
method, then destroying the `JsProxy`, `_PyObject_GetMethod(jsobj, f_unicode)`
will now return a funny temporary object. We always use the same object so that
we don't need to allocate or destroy anything, and we know it must be
immediately called so we only check if the object is indeed callable.

This makes a HUGE difference to the efficiency of calling a method on a JsProxy,
reducing the time it takes by about 80%.

We assume that the return value of `_PyObject_GetMethod` is only expected to be
callable. In practice, it is only ever used once and then destroyed so we use
this to allow us to repeatedly reuse the same helper object.
2024-07-28 12:59:17 +02:00
Gyeongjae Choi a29621dda8
Increase duckdb test timeout (#4967) 2024-07-28 16:35:31 +09:00
Gyeongjae Choi 21d5d19f73
DOC Add community examples section in the docs (#4390)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-28 13:05:14 +09:00
Hood Chatham 54ec4cf0f1
DOCS Set html_baseurl (#4965) 2024-07-27 23:29:09 +09:00
Gyeongjae Choi 8fbf59203c
Unvendor pyodide-build (#4882)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-26 23:51:57 +09:00
Hood Chatham bf0c1dc09c Fix 0.26.2 release date in changelog 2024-07-26 15:52:56 +02:00
Hood Chatham c5c93d8a2f
Update changelog for 0.26.2 (#4960) 2024-07-26 15:51:48 +02:00
Hood Chatham 2287b0a45d
PERF Don't format attribute error in JsProxy_GetAttr (#4961)
This initial `PyObject_GenericGetAttr` is expected to fail, but it formats an
expensive AttributeError whenever it does. The internal method
`_PyObject_GenericGetAttrWithDict` has a `suppress` argument that makes it not
do this.

This saves between 40% and 70% of the time spent in JsProxy_GetAttr depending
on the return value.
2024-07-25 15:12:27 +02:00
Gyeongjae Choi 96dde9d04c
Bump pytest-pyodide with global config manager (#4956)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-25 19:27:05 +09:00
Hood Chatham 5be3512900
MAINT Remove unused _numpyconfig.h file (#4944)
Unused since we brought in
3e4d87b1ba

Resolves #4943
2024-07-24 15:22:29 +02:00
Gyeongjae Choi 139b40f48a
Pin Node.js version in conda env and fix mypy tests (#4955)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-21 18:15:39 +09:00
Jiefu7 4d1b60c78f
Document set of files in Pyodide github release (#4946) 2024-07-18 10:22:05 +02:00
Hood Chatham e7db129a19
Some improvements to the set of files in github releases (#4945)
Include type defintion files in pyodide-core.tar.gz
Remove snapshot related files.
Remove test files.

TODO in the future: Remove source maps and webworker.js?

As suggested in #4942
2024-07-17 18:49:24 +02:00
Phillip Cloud 0bd8b1daea
Add duckdb to packages (#4684)
Adds duckdb to the list of packages shipping with pyodide.

The included patches can be removed after the next duckdb release.
2024-07-17 17:24:36 +02:00
Hood Chatham 55fa12d089
Simpler thread state swapping (#4940)
Rather than hand writing a thread state swap, this uses APIs for it. This should
reduce the amount of maintenance required to update Python.

Thanks markshannon for the suggestion.
2024-07-17 15:14:18 +02:00
Gyeongjae Choi e9be92feab
MAINT Move common JS methods into a subdirectory (#4923) 2024-07-17 21:45:41 +09:00
Loïc Estève d471855b5f
Run scipy tests as part of the Github Action CI (#4935)
Triggered only on push and on PR commits if [scipy] is in the commit message.
2024-07-17 09:39:11 +02:00
Gyeongjae Choi 7c771fa633
Fix OOT incompatible recipes (#4937) 2024-07-16 22:09:20 +09:00
dependabot[bot] 50ffb0e847
Bump oven-sh/setup-bun from 1 to 2 in the github-actions group (#4934)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 22:07:23 +09:00
Loïc Estève 4cfc0ff4b6
Update codespell version in pre-commit (#4938) 2024-07-16 13:44:45 +02:00
Hood Chatham 5ff2f8e424
Switch to using a fork of f2c and remove most of _f2c_fixes.py (#4920)
I made https://github.com/hoodmane/f2c/ which has some improvements that make it
work much better for us including:
1. support for the `recursive` keyword
2. support for variable length arrays that are not arguments in recursive functions
3. `/COMMON/` blocks are labeled with `__attribute__((weak))`
4. automatically omits `ftn_len` arguments from calls to clapack

This allows us to delete most of `_f2c_fixes.py`.

Thanks to @ilayn for writing https://github.com/scipy/scipy/pull/20558,
`id_dist` was going to be a huge pain to deal with.
2024-07-16 13:41:02 +02:00
Maarten Breddels 8a39b84ebb
docs: Add PyCafe to related projects (#4939) 2024-07-16 13:34:00 +02:00
Gyeongjae Choi 34ff664f8c
DOC replace Gitter links with discord (#4930) 2024-07-15 16:27:12 +09:00
Joe Marshall 2a240827f6
added unix timezone package (#4889)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-15 16:21:34 +09:00
Muspi Merol c03b2dcd02
Support `bun` (#4916)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-07-14 17:46:33 +09:00
Loïc Estève 262f1c4a85
Fix test_scipy_pytest where scipy tests were not really run (#4929)
The scipy tests need hypothesis and without it the tests were exiting with exit
code 4 (Pytest usage error) but we were not checking the exit code so basically
not much was actually tested.
2024-07-13 13:23:04 +02:00
Gyeongjae Choi 8fd99c8a7f
MAINT cleanup `unpack_buffer()` (#4922) 2024-07-09 21:35:39 +09:00