pyodide/pyodide-build
Gyeongjae Choi c3d1eff411
TST Improve xbuildenv and emscripten mocks (#4741)
The goal of this PR is to reduce the dependency on pyodide for testing pyodide-build. The main changes are:

1. Add a new fixture: `mock_emscripten` for mocking emscripten compiler toolchain. This fixture will create a dummy emcc (+ other toolchains) to the PATH. When running tests, all emcc calls will be intercepted by this command.

2. Improve `xbuildenv` fixture. Previously, this fixture actually created an xbuildenv from the Pyodide artifacts. So, we had to have Pyodide already built before running the tests. In this PR, this fixture now uses a pre-built minimum xbuildenv.

As a result, now all tests in `pyodide-build` run without building Pyodide. The only exception is `test_xbuildenv_create` which test `pyodide xbuildenv create` command. In a follow-up, I am planning to migrate the `provide venv` tests, which are in `test_cmdline_runner.py.`
2024-05-21 22:35:34 -04:00
..
pyodide_build TST Improve xbuildenv and emscripten mocks (#4741) 2024-05-21 22:35:34 -04:00
LICENSE add license file and metadata to pyodide-build (#3574) 2023-02-11 13:29:01 -08:00
README.md Split off load-pyodide.js from pyodide.js (#1578) 2021-05-05 11:30:48 -07:00
pyproject.toml Change wheel tag from emscripten to pyodide (#4777) 2024-05-21 12:30:01 -04:00

README.md

pyodide-build

Tools for building Pyodide.

See http://github.com/pyodide/pyodide for more information.

License

Pyodide uses the Mozilla Public License Version 2.0.