-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2901 from tomjakubowski/bugfix/pyodide-0.27
Support for pyodide 0.27.1, including pyarrow + pandas
- Loading branch information
Showing
10 changed files
with
155 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
# pyodide-tests | ||
|
||
Smoke and integration tests for the perspective-python Pyodide wheel. | ||
Smoke and integration tests for the perspective-python Pyodide wheel. The tests | ||
are specced in `pytest` and executed with `playwright`, using the | ||
`pytest-pyodide` package. | ||
|
||
These tests require that a Pyodide wheel has been built to rust/target/wheels | ||
|
||
## test setup | ||
|
||
Create a virtual environment. Install perspective-python requirements and | ||
special pyodide-only requirements: | ||
|
||
``` | ||
pip install -r rust/perspective-python/requirements.txt | ||
pip install -r rust/perspective-python/requirements-pyodide.txt | ||
``` | ||
|
||
## running tests | ||
|
||
Run setup, select `perspective-pyodide` target: | ||
|
||
``` | ||
pnpm -w run setup | ||
``` | ||
|
||
Then run tests: | ||
|
||
``` | ||
pnpm -w test | ||
``` | ||
|
||
If you are prompted to install playwright browsers, run this in your venv: | ||
|
||
``` | ||
python -m playwright install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
pytest==8.2.2 | ||
pytest-playwright==0.5.2 | ||
pytest-pyodide==0.58.3 | ||
|
||
pytest-timeout==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters