Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: move to newest pyodide toolchain #2062

Merged
merged 22 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,35 @@ jobs:
uses: actions/cache@v3
with:
path: ./awkward-cpp/dist
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-awkward-cpp-wasm-${{ hashFiles('awkward-cpp/**') }}
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-awkward-cpp-wasm-${{ hashFiles('awkward-cpp/**') }}-CACHEBUST

- name: Install dependencies
if: steps.cache-awkward-cpp-wasm-wheel.outputs.cache-hit != 'true'
run: python3 -m pip install -r docs/requirements-wasm.txt

- name: Install dependencies
if: steps.cache-awkward-cpp-wasm-wheel.outputs.cache-hit != 'true'
id: compute-emsdk-version
run: |
# Prepare xbuild environment (side-effect)
pyodide config list
# Save EMSDK version
EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
echo "emsdk-version=$EMSCRIPTEN_VERSION" >> $GITHUB_OUTPUT
working-directory: awkward-cpp

- name: Install EMSDK
uses: mymindstorm/setup-emsdk@v12
if: steps.cache-awkward-cpp-wasm-wheel.outputs.cache-hit != 'true'
with:
version: 3.1.14
version: ${{ steps.compute-emsdk-version.outputs.emsdk-version }}

- name: Build wheel
if: steps.cache-awkward-cpp-wasm-wheel.outputs.cache-hit != 'true'
id: build-awkward-cpp-wasm-wheel
run: |
# pyodide-build doesn't work out of the box with pipx
python3 -m pip install pyyaml pyodide-build==0.21.0
export CMAKE_ARGS="-DEMSCRIPTEN=1"
pyodide build --exports whole_archive
CMAKE_ARGS="-DEMSCRIPTEN=1" pyodide build --exports whole_archive
henryiii marked this conversation as resolved.
Show resolved Hide resolved
working-directory: awkward-cpp

- name: Upload wheel
Expand Down
6 changes: 6 additions & 0 deletions awkward-cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ sdist.include = [
"tests-spec-explicit",
"tests-cpu-kernels"
]

# This activates verbose builds
cmake.verbose = true

# Display logs at or above this level.
logging.level = "DEBUG"
1 change: 1 addition & 0 deletions docs/requirements-wasm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyodide-build==0.22.1
henryiii marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 4 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# JupyterLite (requires specific pyodide version)
henryiii marked this conversation as resolved.
Show resolved Hide resolved
jupyterlite==0.1.0b18
henryiii marked this conversation as resolved.
Show resolved Hide resolved
jupyterlite-sphinx==0.7.2
agoose77 marked this conversation as resolved.
Show resolved Hide resolved

sphinx>=4.5.0,<5.0.0
PyYAML
black
Expand All @@ -9,9 +13,7 @@ sphinx-sitemap
pydata-sphinx-theme
myst-nb
sphinx-external-toc
jupyterlite-sphinx
ipyleaflet
jupyterlite>=0.1.0b12,==0.1.0b16

numpy>=1.13.1
numba>=0.50.0
Expand Down