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.3.tar.gz (30.7 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.3-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

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

Hashes for oso_semantic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4c88deb8c195edf29f39a9a4caf206f50b5b758c87426d24780922ae7829be1f
MD5 40149ae6fb248b4add9962ef78a6a4a9
BLAKE2b-256 56e6d8043a4f61dfe365a9accfefd2f18aa988d0d5057c69dde768bc1c96b6da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oso_semantic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97b5305bb405644ccd3fadbb3378ca0a7e758b181d122ff65e0958322d00d18e
MD5 995052cd7cabd046fb73e43229cb16f0
BLAKE2b-256 15464adcfa15b1fc67bee1ccc76e7cb2468dd1f2562375c6dcc15e80875b57ea

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