Skip to content

Commit 01c145b

Browse files
Merge branch 'apache:main' into st_exteriorRing
2 parents 0dc6c4a + 9bf02f4 commit 01c145b

364 files changed

Lines changed: 36421 additions & 3372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
rustc -V
5353
cargo -V
5454
- name: pre-commit (cache)
55-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5656
with:
5757
path: ~/.cache/pre-commit
5858
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/examples.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: Swatinem/rust-cache@v2
6767
with:
6868
# Update this key to force a new cache
69-
prefix-key: "rust-${{ matrix.name }}-v4"
69+
prefix-key: "rust-${{ matrix.name }}-v5"
7070

7171
- name: Install dependencies
7272
shell: bash
@@ -76,6 +76,15 @@ jobs:
7676
- name: Build and run examples/sedonadb-rust
7777
shell: bash
7878
run: |
79-
rm -rf Cargo.toml
8079
cd examples/sedonadb-rust
80+
# Use current PR/branch commit instead of main branch
81+
if [ -n "${{ github.event.pull_request.head.sha }}" ]; then
82+
REV="${{ github.event.pull_request.head.sha }}"
83+
REPO="${{ github.event.pull_request.head.repo.full_name }}"
84+
else
85+
REV="${{ github.sha }}"
86+
REPO="apache/sedona-db"
87+
fi
88+
sed -i "s|git = \"https://github.com/apache/sedona-db.git\"|git = \"https://github.com/${REPO}.git\", rev = \"${REV}\"|" Cargo.toml
89+
cat Cargo.toml
8190
cargo run

.github/workflows/packaging.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
dev/release/run-rat.sh apache-sedona-db-${{ env.VERSION }}.tar.gz
7777
78-
- uses: actions/upload-artifact@v5
78+
- uses: actions/upload-artifact@v6
7979
with:
8080
name: source
8181
retention-days: 7
@@ -98,6 +98,8 @@ jobs:
9898
with:
9999
python-version: "3.x"
100100

101+
- uses: quarto-dev/quarto-actions/setup@v2
102+
101103
- name: Use stable Rust
102104
id: rust
103105
run: |
@@ -111,15 +113,15 @@ jobs:
111113
- uses: Swatinem/rust-cache@v2
112114
with:
113115
# Update this key to force a new cache (but share with the python.yml workflow)
114-
prefix-key: "python-v2"
116+
prefix-key: "python-v3"
115117

116118
- name: Install docs requirements
117119
run: |
118120
pip install -r docs/requirements.txt
119121
120122
- name: Install dev SedonaDB Python
121123
run: |
122-
pip install python/sedonadb/ -vv
124+
pip install "python/sedonadb/[geopandas]" -v
123125
124126
- name: Build documentation
125127
run: |
@@ -131,7 +133,7 @@ jobs:
131133
tar -czf docs.tgz sedona-db-docs
132134
133135
- name: Upload docs
134-
uses: actions/upload-artifact@v5
136+
uses: actions/upload-artifact@v6
135137
with:
136138
name: docs
137139
retention-days: 2
@@ -163,7 +165,7 @@ jobs:
163165

164166
steps:
165167
- name: Get all artifacts
166-
uses: actions/download-artifact@v6
168+
uses: actions/download-artifact@v7
167169
with:
168170
path: release-artifacts
169171

.github/workflows/python-wheels.yml

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- uses: Swatinem/rust-cache@v2
6161
with:
6262
# Update this key to force a new cache
63-
prefix-key: "python-wheel-windows-latest-v2"
63+
prefix-key: "python-wheel-windows-latest-v3"
6464

6565
- name: Clone vcpkg
6666
uses: actions/checkout@v6
@@ -89,11 +89,10 @@ jobs:
8989
VCPKG_DEFAULT_TRIPLET: x64-windows-dynamic-release
9090
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
9191
CIBW_BUILD: "*-win_amd64"
92-
CIBW_TEST_SKIP: "cp314* cp38*"
9392
CIBW_TEST_REQUIRES: pytest adbc_driver_manager geoarrow-pyarrow geopandas
9493
CIBW_TEST_COMMAND: pytest {package}/tests -vv
9594

96-
- uses: actions/upload-artifact@v5
95+
- uses: actions/upload-artifact@v6
9796
with:
9897
name: release-wheels-windows-x86_64
9998
path: python/sedonadb/dist/*.whl
@@ -143,15 +142,68 @@ jobs:
143142
./wheels-build-macos.sh sedonadb
144143
env:
145144
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
146-
CIBW_TEST_SKIP: "cp314*"
147145
CIBW_TEST_REQUIRES: pytest adbc_driver_manager geoarrow-pyarrow geopandas duckdb
148146
CIBW_TEST_COMMAND: pytest {package}/tests -vv
149147

150-
- uses: actions/upload-artifact@v5
148+
- uses: actions/upload-artifact@v6
151149
with:
152150
name: release-wheels-macOS-arm64
153151
path: python/sedonadb/dist/*.whl
154152

153+
macOS-amd64:
154+
runs-on: macos-15-intel
155+
156+
steps:
157+
- uses: actions/checkout@v6
158+
with:
159+
submodules: 'true'
160+
fetch-depth: 0
161+
162+
- uses: actions/setup-python@v6
163+
with:
164+
python-version: "3.13"
165+
166+
- name: Install cibuildwheel
167+
run: python -m pip install cibuildwheel==3.1.4
168+
169+
- uses: Swatinem/rust-cache@v2
170+
with:
171+
# Update this key to force a new cache
172+
prefix-key: "python-wheel-macOS-latest-v2"
173+
174+
- name: Clone vcpkg
175+
uses: actions/checkout@v6
176+
with:
177+
repository: microsoft/vcpkg
178+
ref: ${{ env.VCPKG_REF }}
179+
path: vcpkg
180+
181+
- name: Set SedonaDB dev version
182+
shell: bash
183+
run: |
184+
# Set the unique development version anywhere except a release branch
185+
if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
186+
version="${GITHUB_REF##*/branch-}"
187+
echo "${version}"
188+
else
189+
python ci/scripts/set_dev_version.py
190+
fi
191+
192+
- name: Build and test wheels (sedonadb)
193+
run: |
194+
cd ci/scripts
195+
./wheels-build-macos.sh sedonadb
196+
env:
197+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
198+
CIBW_TEST_REQUIRES: pytest adbc_driver_manager geoarrow-pyarrow geopandas duckdb
199+
CIBW_TEST_COMMAND: pytest {package}/tests -vv
200+
SEDONADB_MACOS_ARCH: x86_64
201+
202+
- uses: actions/upload-artifact@v6
203+
with:
204+
name: release-wheels-macOS-amd64
205+
path: python/sedonadb/dist/*.whl
206+
155207
wheels-linux:
156208
name: ${{ matrix.config.label }}
157209
runs-on: ${{ matrix.config.os }}
@@ -191,21 +243,20 @@ jobs:
191243
./wheels-build-linux.sh ${{ matrix.config.arch }} sedonadb
192244
env:
193245
CIBW_SKIP: "*musllinux*"
194-
CIBW_TEST_SKIP: "cp314*"
195246
CIBW_TEST_REQUIRES: pytest adbc_driver_manager geoarrow-pyarrow geopandas duckdb
196247
CIBW_TEST_COMMAND: pytest {package}/tests -vv
197248

198-
- uses: actions/upload-artifact@v5
249+
- uses: actions/upload-artifact@v6
199250
with:
200251
name: release-wheels-${{ matrix.config.label }}
201252
path: python/sedonadb/dist/*.whl
202253

203254
upload_nightly:
204-
needs: ["wheels-linux", "macOS-arm64", "windows-x86_64"]
255+
needs: ["wheels-linux", "macOS-arm64", "macOS-amd64", "windows-x86_64"]
205256
name: Upload nightly packages
206257
runs-on: "macos-latest"
207258
steps:
208-
- uses: actions/download-artifact@v6
259+
- uses: actions/download-artifact@v7
209260
with:
210261
pattern: release-*
211262
merge-multiple: true

.github/workflows/python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ jobs:
8888
8989
- name: Cache vcpkg binaries
9090
id: cache-vcpkg
91-
uses: actions/cache@v4
91+
uses: actions/cache@v5
9292
with:
9393
path: vcpkg/packages
9494
# Bump the number at the end of this line to force a new dependency build
95-
key: vcpkg-installed-${{ runner.os }}-${{ runner.arch }}-${{ env.VCPKG_REF }}-2
95+
key: vcpkg-installed-${{ runner.os }}-${{ runner.arch }}-${{ env.VCPKG_REF }}-3
9696

9797
- name: Install vcpkg dependencies
9898
if: steps.cache-vcpkg.outputs.cache-hit != 'true'
@@ -112,7 +112,7 @@ jobs:
112112
- uses: Swatinem/rust-cache@v2
113113
with:
114114
# Update this key to force a new cache (sync with packaging.yml)
115-
prefix-key: "python-v2"
115+
prefix-key: "python-v3"
116116

117117
- name: Install
118118
run: |

.github/workflows/r.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ on:
3232
- 'c/**'
3333
- 'r/**'
3434
jobs:
35+
format:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v6
39+
40+
# Run air format
41+
- run: curl -LsSf https://github.com/posit-dev/air/releases/latest/download/air-installer.sh | sh
42+
- run: cd r/sedonadb && air format . --check
3543

3644
test:
3745
runs-on: ${{ matrix.config.os }}
@@ -86,7 +94,7 @@ jobs:
8694
- uses: Swatinem/rust-cache@v2
8795
with:
8896
# Update this key to force a new cache
89-
prefix-key: "r-v3"
97+
prefix-key: "r-v4"
9098
# The R package uses its own target directory
9199
workspaces: ". -> r/sedonadb/src/rust/target"
92100

0 commit comments

Comments
 (0)