Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oso_semantic-0.1.3a1.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oso_semantic-0.1.3a1-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file oso_semantic-0.1.3a1.tar.gz.

File metadata

  • Download URL: oso_semantic-0.1.3a1.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for oso_semantic-0.1.3a1.tar.gz
Algorithm Hash digest
SHA256 1d0f0c6540442a918f2c172d095282c31bb4000653f5b724079bc8f46e285003
MD5 073a318f560dff7b2459f9243c5cf978
BLAKE2b-256 e98f0ac3a4c68edeadfdbb48ea5f55c093157d6343e54c88b7487f14bf586bf4

See more details on using hashes here.

File details

Details for the file oso_semantic-0.1.3a1-py3-none-any.whl.

File metadata

File hashes

Hashes for oso_semantic-0.1.3a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7baf08016ed29a2d553cd9c4276250cb311f7f125227a98ba7dfa5f049b5694
MD5 9fe3e84d3c217d284bbd9b80bea27348
BLAKE2b-256 e61747add0c40f846edb02f616fd5ddc015acc6d3ae41f2d70a95bd2147c4662

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page