Commit Graph

3105 Commits

Author SHA1 Message Date
Hood Chatham 1a9c0d3da0
Maintainers docs on releases, docker images, python updates (#4470) 2024-02-03 15:26:00 -08:00
Gyeongjae Choi 2824ffa523
Remove cramjam 2.8.1 monkeypatch and fix build issue (#4475)
There was a upstream fix: gyscos/zstd-rs#209, but was not applied to the latest zstd-rs release.
2024-02-03 13:52:26 -08:00
Hood Chatham 80fdd57b4c
Update cramjam to 2.8.1 (#4473)
Split off from #4468 / #4435 for visibility because it's a bit troublesome.

clang gives a weird error saying that qsort and memcmp were not declared.
This despite the fact that the file in question imported stdlib.h where they
are declared.
2024-02-02 18:59:30 -08:00
Hood Chatham af81b94c1e
Updates to packages from #4435 (#4468) 2024-02-03 10:51:51 +09:00
Hood Chatham 7a7696bc0f
MAINT sysconfigdata updates split from #4435 (#4467) 2024-02-03 10:24:09 +09:00
Gyeongjae Choi d1628de4ff
TST Move run_docker test outside of pyodide-build (#4463)
It is weird that test_run_docker is inside pyodide-build. This PR moves the
run_docker test file to tools directory. Maybe it is not the best place to put
this test file, but it is at least better than pyodide-build.
2024-02-02 10:46:04 -08:00
Matthias Köppe eb6e03e56c
src/py/pyproject.toml: Move metadata here from setup.cfg (#4472)
Modernizing metadata
2024-02-02 08:32:08 -08:00
Matthias Köppe ca97b517c7
packages/python-flint: Update to 0.6.0 (#4471) 2024-02-02 05:30:00 -08:00
Hood Chatham ecd8daa093
MAINT Some changes to pyodide-build split from #4435 (#4469) 2024-02-02 17:34:03 +09:00
Hood Chatham 481e99070d
chore: fix pre-commit errors (#4466) 2024-02-01 15:31:20 -08:00
Hood Chatham ace290e6e7
Update to fiona 1.9.5 (#4462) 2024-02-01 15:26:12 -08:00
Matthias Köppe 17c300924c
pyodide_build.buildpkg: Do not copy dist/*.whl files from source trees (#4461)
When a meta.yaml uses source/path to build from some source tree, pyodide
build-recipes copies the source tree to the build directory before building.
When the source directory has some dist/*.whl files, they are copied as well,
which later causes "Exception: Unexpected number of wheels". Here we filter them
out.
2024-02-01 12:32:36 -08:00
Hood Chatham 600a32b1ab
Update bcrypt to 4.1.2 (#4460) 2024-02-01 12:28:55 -08:00
pyodide-pr-bot 15b4a79833
Upgrade awkward-cpp to 29 (#4464) 2024-02-01 10:41:33 -08:00
Hood Chatham 3e6d17147b Fix typo 2024-01-31 11:20:47 -08:00
Hood Chatham 2eb834b32d
Update conftest.py for pluggy 1.1 (#4448)
pluggy >=1.1 makes really annoying warnings if the original wrapper hooks raise errors
telling us to use the new style wrapper. This follows their advice to get rid of the warnings.
2024-01-31 11:18:57 -08:00
Gyeongjae Choi ca1aac29d6
Bump opencv-python version to 4.9.0.80 (#4457) 2024-01-31 09:27:42 -08:00
Matthias Köppe 802e414207
Add package memory_allocator 0.1.3 (#4393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-31 21:31:05 +09:00
Hood Chatham bd74ba5abf
build-recipes: Call search_pyodide_root to determine root (#4450) 2024-01-31 16:14:43 +09:00
Hood Chatham 07b7c5cd17
Downgrade prettier to 3.1.0 (#4454)
v4.0.0-alpha.8 has a few problems, 3.1.0 is the last stable version and seems to
work better.
2024-01-30 16:19:14 -08:00
Hood Chatham 16db2158ff
Update docker image to bookworm (#4431)
Buster isn't available for anymore for Python 312 so we have to update.

This also updates to Python 3.11.7, which turns out to be relatively invasive. I broadly
xfailed failing tests in `python_tests.yaml` since we'll upgrade to Python 3.12 soon anyways.
2024-01-30 08:19:53 -08:00
Hood Chatham 7ec15b8d18
Split build-recipes and build-recipes-no-deps into separate commands (#4443)
There are a lot of options that are only implemented for one or the other of
these. We warn about some combinations of options that are ignored but skip a
lot of them. Seems best to turn them into separate commands so that the two
commands each only accept arguments that change their behavior.
2024-01-29 07:41:24 -08:00
Hood Chatham b8287e42d9
chore: Update pre-commit (#4440)
I also reordered prettier to come last since it's the slowest. I switched from
using black to ruff-format which says its defaults are nearly the same as black.
2024-01-28 13:20:08 -08:00
Hood Chatham 5da4725830
FIX on buildall fail, print info after exiting rich context (#4441)
Otherwise the rich Live context will sometimes overwrite part of the failure message.
2024-01-28 13:16:03 -08:00
Hood Chatham 5a3f10fa59
Add pyodide version to console banner (#4415)
I added the pyodide version number to the banner and did some simple tidying.
2024-01-28 12:03:43 -08:00
Hood Chatham c54b199e92
Update packaging to 23.2 and typing-extensions to 4.9 (#4428) 2024-01-28 09:56:52 -08:00
Gyeongjae Choi d4450d9ee3
Pin pytest < 8.0 and make s3 test compatible to moto 5.0 update (#4437)
pytest 8.0 and moto 5.0 were released a few hours ago, and
they seem to be breaking tests. This is a (temporary) fix.
2024-01-28 09:04:40 -08:00
Gyeongjae Choi 54b8df132c
Remove node-fetch fallback (#4417)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-28 13:04:54 +09:00
Matthias Köppe 1b21d725ef
New packages `flint`, `python-flint` (#4410) 2024-01-27 20:01:58 -08:00
David Contreras 99f6cf4a32
Update coolprop to 6.6.0 (#4397) 2024-01-28 09:42:06 +09:00
Hood Chatham d6ccedfa29
MAINT python build improvements for 3.12 (#4432)
* use PYMAJOR and PYMINOR variables in --with-build-python option
* reorder sysconfigdata creation
2024-01-27 15:14:54 -08:00
Matthias Köppe 2de7f73656
devcontainer Conda: Install gfortran (#4429)
Needed for building scipy
2024-01-27 09:52:49 -08:00
Matthias Köppe cf52fe9166
Do not set constraint Cython<3; update `libproj`, `pyproj`, `h5py` (#4426)
Since the release of Cython 3 in July 2023, many packages have been updated to
either set an upper bound "Cython < 3", to support both Cython 0.29.x and 3.0, or 
to require Cython 3.

Here we remove the global constraint Cython < 3 added in #4001 and update
individual packages if necessary.
2024-01-27 09:50:34 -08:00
Matthias Köppe 38c39fd847
New packages ppl, pplpy (Parma polyhedra library), cysignals (#4407) 2024-01-26 21:27:34 -08:00
Matthias Köppe e73abb8512
Fix package build failed message (#4404) 2024-01-26 18:07:23 -08:00
Matthias Köppe e582c3766c
dev containers: Create a convenience symlink to the package build directory (#4425) 2024-01-26 18:02:22 -08:00
Matthias Köppe cd9cb8d4a2
`tools/dependency-check.sh`: Avoid confusing error message (#4423) 2024-01-25 21:29:27 -08:00
Hood Chatham 1396c8c07a
Make pyimport able to return module attributes (#4395)
Before this PR, `pyimport` can be used like: `pyimport("package")` or `pyimport("package.module")` but `pyimport("package.attribute")` fails. This updates `pyimport` to also work to get package attributes.

I also updated the docs for pyimport.
2024-01-24 15:19:02 -08:00
Matthias Köppe 9ca93345cf
`pyodide_build.buildpkg`: Build in `$PYODIDE_RECIPE_BUILD_DIR ` if set (#4405)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-24 21:27:41 +09:00
Matthias Köppe 5093db325f
Fix `pytest test_run_docker.py` when invoked from a subdirectory (#4414)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2024-01-24 21:19:56 +09:00
Hood Chatham 595f6b53d6
Monkey-patch platform.machine for pip in pyodide venv (#4412)
Without this fix, `pip install sqlalchemy>=2` fails trying to install greenlet.
2024-01-23 17:50:58 -08:00
Matthias Köppe 231b0de5fd
pyodide_build.logger: Do not use escape sequences when running under pytest (#4413) 2024-01-23 17:50:25 -08:00
Gyeongjae Choi 53f9faa9f2
BLD Drop `pyodide_build` entrypoint (#4368) 2024-01-23 22:35:31 +09:00
Gyeongjae Choi a14d34fb1b
Emscripten 3.1.52 (#4399)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-23 21:18:42 +09:00
Loïc Estève b9a93a3571
Update scikit-learn to 1.4.0 (#4409) 2024-01-23 18:54:59 +09:00
Hood Chatham a870029e02
Update zlib to v1.3.1 (#4408) 2024-01-23 18:54:19 +09:00
Matthias Köppe a505bd5215
Add devcontainer configurations (#4402)
Adds two devcontainer configurations:

* configuration "Docker": the default, equivalent to using run_docker 
* configuration "Conda"

Codespaces and VS Code allow users to select the configuration.
2024-01-22 16:32:09 -08:00
Matthias Köppe fde32e9d8b
Update libgmp to 6.3.0, libmpfr to 4.2.1, libmpc to 1.3.1 (#4406) 2024-01-22 18:27:57 +09:00
Hood Chatham e586e7c0f2
Add apis to discard extra arguments when calling Python functions (#4392)
This is intended to be useful for implementing handlers. The handler
might not care about all the arguments. It's convenient to have some
easy way to discard unneeded ones.
2024-01-21 18:38:15 -08:00
Віктор Коропецький 0eb69be801
JSPI: Add tests for PyodideFuture.syncify() (#4388) 2024-01-21 18:12:55 -08:00