Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 10 additions & 4 deletions .github/workflows/build-sqlglotc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
if: needs.setup.outputs.versions != '[]'
name: Build sqlglotc ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64
runs-on: ubuntu-24.04-riscv
timeout-minutes: 180
# mypyc compiles sqlglot natively on the riscv64 runner: 30.24.0 jobs took 2.4-2.7h and
# 30.23.0 cp314 hit the old 180 min ceiling.
timeout-minutes: 300
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -87,14 +89,18 @@ jobs:
only: ${{ matrix.python }}-manylinux_riscv64
env:
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
CIBW_TEST_REQUIRES: duckdb pandas python-dateutil pytz
# tests/test_sqlglotc.py (added in 30.24.0) imports setuptools, which Python >=3.12
# venvs no longer ship.
CIBW_TEST_REQUIRES: duckdb pandas python-dateutil pytz setuptools
CIBW_ENVIRONMENT_PASS_LINUX: PIP_EXTRA_INDEX_URL PIP_ONLY_BINARY
PIP_EXTRA_INDEX_URL: https://pypi.riseproject.dev/simple/
# PyPI's newest pandas (3.0.5) ships no riscv64 wheel anywhere yet;
# without this, pip resolves it over our registry's 3.0.3 (which
# does have one) and falls back to a from-source build that never
# finishes in CI's time budget.
PIP_ONLY_BINARY: pandas
# finishes in CI's time budget. Same for duckdb: PyPI's 2.0.0 sdist
# needs a clang/lld ThinLTO build and a riscv64 wheel of it is not on
# our registry yet, so stay on the registry's newest binary release.
PIP_ONLY_BINARY: pandas,duckdb
CIBW_TEST_COMMAND: cd {project} && SKIP_INTEGRATION=1 python -m unittest

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
3 changes: 3 additions & 0 deletions docs/packages/sqlglotc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ versions:
- filename: sqlglotc-30.22.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl
sha256: c9d8b3e58d01119b890d2437a8b7e9245a0ad8ddb1532c086b1eb663e58392da
requires-python: '>=3.10'
- version: 30.23.0
- version: 30.24.0
- version: 30.25.0
Loading