No project description provided
Project description
OSO-Semantic Query Layer
Manually testing with pyodide
We need to add pyodide to CI, but for now to manually run tests do the following:
Get current pyodide version
You will need to do this from the oso_semantic directory.
PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
Install emscripten
Choose a place to store the code and git clone emsdk:
cd some/base/directory
git clone https://github.com/emscripten-core/emsdk
cd emsdk
./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION}
./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
source emsdk_env.sh
Build pyodide wheel
Now go back to the oso_semantic directory
cd oso/warehouse/oso_semantic
uv run pyodide build
This will generate a .whl file in dist
Download pyodide version
Download the recent pyodide version (at the time of writing is 0.27.2):
cd dist/
wget https://github.com/pyodide/pyodide/releases/download/0.27.2/pyodide-0.27.2.tar.bz2
tar xjf pyodide-0.27.2.tar.bz2
This will now have generated a dist/pyodide directory.
Run pytest
uv run pytest --run-in-pyodide . --runtime node --dist-dir=./dist
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oso_semantic-0.1.3.tar.gz.
File metadata
- Download URL: oso_semantic-0.1.3.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c88deb8c195edf29f39a9a4caf206f50b5b758c87426d24780922ae7829be1f
|
|
| MD5 |
40149ae6fb248b4add9962ef78a6a4a9
|
|
| BLAKE2b-256 |
56e6d8043a4f61dfe365a9accfefd2f18aa988d0d5057c69dde768bc1c96b6da
|
File details
Details for the file oso_semantic-0.1.3-py3-none-any.whl.
File metadata
- Download URL: oso_semantic-0.1.3-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b5305bb405644ccd3fadbb3378ca0a7e758b181d122ff65e0958322d00d18e
|
|
| MD5 |
995052cd7cabd046fb73e43229cb16f0
|
|
| BLAKE2b-256 |
15464adcfa15b1fc67bee1ccc76e7cb2468dd1f2562375c6dcc15e80875b57ea
|