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.2.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.2-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file oso_semantic-0.1.2.tar.gz.

File metadata

  • Download URL: oso_semantic-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 701c3b1ff33d91d2ccb359fdc9991ae23f34953c2c5d194778e1729342ce6293
MD5 ce40cc7ebbb2b40398d994aa48475a1e
BLAKE2b-256 28961cefe5fffd542e20cc6840d55fc5623fe57c0a3788028f2e0d1afc1dce53

See more details on using hashes here.

File details

Details for the file oso_semantic-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for oso_semantic-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 facbcd82873fe62d41adba0ccb40395d20697f4d6caaeee8f6f55c2377a105cc
MD5 a33c472293d935b4ae07375aeed449cc
BLAKE2b-256 22a1592b9c209b5a9e7b6c82c4674b522d0935ab11726e8b2700aab68622ad78

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