@@ -402,76 +402,8 @@ jobs:
402402 name : wheel-${{ matrix.package }}-${{ matrix.os }}-${{ matrix.architecture }}
403403 path : dist/*.whl
404404
405- build-wheel-pyodide :
406- name : build-wheels (polars, pyodide, wasm32)
407- runs-on : ubuntu-latest
408-
409- steps :
410- - uses : actions/checkout@v4
411- with :
412- ref : ${{ inputs.sha }}
413-
414- # Avoid potential out-of-memory errors
415- - name : Set swap space for Linux
416- uses : pierotofy/set-swap-space@master
417- with :
418- swap-size-gb : 10
419-
420- - name : Set up Python
421- uses : actions/setup-python@v5
422- with :
423- python-version : ${{ env.PYTHON_VERSION }}
424-
425- - name : Install yq
426- run : pip install yq
427-
428- - name : Update runtime package and module names
429- run : |
430- mv py-polars/_polars_runtime_64 py-polars/_polars_runtime_32
431- tomlq -i -t ".project.name = \"polars-runtime-32\"" py-polars/pyproject.toml
432- tomlq -i -t ".lib.name = \"_polars_runtime_32\"" py-polars/Cargo.toml
433- sed -i "s/pub fn _polars_runtime_64/pub fn _polars_runtime_32/" crates/polars-python/src/c_api/mod.rs
434-
435- - name : Disable incompatible features
436- env :
437- FEATURES : csv|ipc|ipc_streaming|parquet|async|json|extract_jsonpath|catalog|cloud|polars_cloud|tokio|clipboard|decompress|new_streaming
438- run : |
439- sed -i 's/serde_json = { workspace = true, optional = true }/serde_json = { workspace = true }/' crates/polars-python/Cargo.toml
440- sed -i 's/"serde_json", //' crates/polars-python/Cargo.toml
441- sed -E -i "/^ \"(${FEATURES})\",$/d" crates/polars-python/Cargo.toml py-polars/Cargo.toml
442-
443- - name : Setup emsdk
444- uses : mymindstorm/setup-emsdk@v14
445- with :
446- # This should match the exact version of Emscripten used by Pyodide
447- # UPDATE; set to latest due to breaking build
448- version : latest
449-
450- - name : Set CFLAGS and RUSTFLAGS for wasm32
451- run : |
452- echo "CFLAGS=-fPIC" >> $GITHUB_ENV
453- echo "RUSTFLAGS=-C link-self-contained=no" >> $GITHUB_ENV
454-
455- - name : Build wheel
456- uses : PyO3/maturin-action@v1
457- with :
458- command : build
459- target : wasm32-unknown-emscripten
460- args : >
461- --profile dist-release
462- --manifest-path py-polars/Cargo.toml
463- --interpreter python3.10
464- --out wasm-dist
465- maturin-version : 1.8.3
466-
467- - name : Upload wheel
468- uses : actions/upload-artifact@v4
469- with :
470- name : wheel-polars-emscripten-wasm32
471- path : wasm-dist/*.whl
472-
473405 publish-to-pypi :
474- needs : [base-package, create-sdist, build-wheels, build-wheel-pyodide ]
406+ needs : [base-package, create-sdist, build-wheels]
475407 environment :
476408 name : release-python
477409 url : https://pypi.org/project/polars
@@ -496,7 +428,7 @@ jobs:
496428 verbose : true
497429
498430 publish-to-github :
499- needs : [publish-to-pypi, build-wheel-pyodide ]
431+ needs : [publish-to-pypi]
500432 runs-on : ubuntu-latest
501433 steps :
502434 - uses : actions/checkout@v4
@@ -509,12 +441,6 @@ jobs:
509441 name : sdist-polars
510442 path : dist
511443
512- - name : Download Pyodide wheel
513- uses : actions/download-artifact@v4
514- with :
515- name : wheel-polars-emscripten-wasm32
516- path : wasm-dist
517-
518444 - name : Get version from Cargo.toml
519445 id : version
520446 working-directory : py-polars
0 commit comments