Skip to content

Commit fdfbbe7

Browse files
committed
Merge remote-tracking branch 'upstream/master' into delete-error
2 parents b359918 + 5f176e0 commit fdfbbe7

File tree

1,565 files changed

+110926
-29281
lines changed

Some content is hidden

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

1,565 files changed

+110926
-29281
lines changed

.github/workflows/alpine/Dockerfile.ci

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ RUN apk add \
5252
poppler-dev \
5353
proj-dev \
5454
proj-util \
55-
py3-pyarrow \
56-
py3-pyarrow-pyc \
57-
py3-numpy \
58-
py3-numpy-dev \
59-
py3-numpy-tests \
60-
py3-pip \
61-
py3-setuptools \
62-
python3-dev \
6355
qhull-dev \
6456
sfcgal-dev \
6557
snappy-dev \
@@ -69,9 +61,31 @@ RUN apk add \
6961
unixodbc-dev \
7062
xerces-c-dev \
7163
xz-dev \
64+
wget \
7265
zlib-dev \
7366
zstd-dev
7467

68+
# py3-pyarrow \
69+
# py3-pyarrow-pyc \
70+
# py3-numpy \
71+
# py3-numpy-dev \
72+
# py3-numpy-tests \
73+
# py3-pip \
74+
# py3-setuptools \
75+
# python3-dev \
76+
77+
# Build a free-standing/no-gil Python
78+
RUN wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tar.xz && \
79+
tar xJvf Python-3.14.0.tar.xz && \
80+
cd Python-3.14.0 && \
81+
./configure --enable-shared --disable-gil --prefix=/usr && \
82+
make -j$(nproc) && \
83+
make -j$(nproc) install && \
84+
cd .. \
85+
rm -rf Python-3.14.0 Python-3.14.0.tar.xz
86+
87+
RUN PYTHON_CMD=python3 && $PYTHON_CMD -m pip install --break-system-packages numpy setuptools pyarrow
88+
7589
COPY requirements.txt /tmp/
7690
RUN PYTHON_CMD=python3 && $PYTHON_CMD -m pip install --break-system-packages -U -r /tmp/requirements.txt
7791

.github/workflows/alpine/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ apps/gdal --json-usage > out.json
4646
export PYTHON_CMD=python3
4747
$PYTHON_CMD -m venv myvenv
4848
source myvenv/bin/activate
49+
# Works around install issue with 0.18.17 with free-threading python: https://sourceforge.net/p/ruamel-yaml/tickets/554/
50+
$PYTHON_CMD -m pip install -U ruamel.yaml==0.18.16
4951
$PYTHON_CMD -m pip install -U check-jsonschema
5052
check-jsonschema --schemafile data/gdal_algorithm.schema.json out.json
5153

.github/workflows/android_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3030

3131
- name: Cache
32-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
32+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3333
id: cache
3434
with:
3535
path: |

.github/workflows/android_cmake/start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ tar xzf cmake-3.22.3-linux-x86_64.tar.gz
2323
export PATH=$PWD/cmake-3.22.3-linux-x86_64/bin:$PATH
2424

2525
# Download Android NDK
26-
wget -q https://dl.google.com/android/repository/android-ndk-r23b-linux.zip
27-
unzip -q android-ndk-r23b-linux.zip
26+
wget -q https://dl.google.com/android/repository/android-ndk-r27d-linux.zip
27+
unzip -q android-ndk-r27d-linux.zip
2828

29-
export ANDROID_NDK=$PWD/android-ndk-r23b
29+
export ANDROID_NDK=$PWD/android-ndk-r27d
3030
export NDK_TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64
3131

3232
ccache -M 1G

.github/workflows/armhf/test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ source ${GDAL_SOURCE_DIR:=..}/scripts/setdevenv.sh
66

77
autotest/cpp/gdal_unit_test --gtest_filter=-test_cpl.CPLSpawn:test_cpl.CPLGetCurrentThreadCount
88

9+
# Random failures
10+
rm -f autotest/gcore/vsiaz.py
11+
rm -f autotest/gcore/vsigs.py
12+
rm -f autotest/gcore/vsis3.py
13+
rm -f autotest/gcore/vsizip.py
14+
rm -f autotest/gcore/vsioss.py
15+
916
pytest autotest/alg -k "not test_warp_52 and not test_warp_rpc_source_has_geotransform"
1017
# Excluded tests starting at test_tiff_read_multi_threaded are due to lack of virtual memory
1118
pytest autotest/gcore -k "not transformer and not virtualmem and not test_vrt_protocol_netcdf_component_name and not test_vsicrypt_3 and not test_pixfun_sqrt and not test_rasterio_rms_halfsize_downsampling_float and not test_tiff_read_multi_threaded and not test_tiff_write_35 and not test_tiff_write_137 and not test_tiff_write_compression_create_and_createcopy"

.github/workflows/auto_tag_stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Checkout code
3232
if: steps.check_branch.outputs.run == 'true'
33-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3434

3535
- name: Tag
3636
if: steps.check_branch.outputs.run == 'true'

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fuzz-seconds: 600
3333
dry-run: false
3434
- name: Upload Crash
35-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
35+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3636
if: failure() && steps.build.outcome == 'success'
3737
with:
3838
name: artifacts

.github/workflows/clang_static_analyzer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-24.04
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3030

3131
- name: Run
3232
run: docker run --rm -v $PWD:$PWD ubuntu:24.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./ci/travis/csa_common/before_install.sh && sh ./ci/travis/csa_common/install.sh && sh ./ci/travis/csa_common/script.sh"

.github/workflows/cmake_builds.yml

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
cache-name: cmake-ubuntu-jammy
3737
steps:
3838
- name: Checkout GDAL
39-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4040
- name: Setup cache
41-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
41+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4242
id: cache
4343
with:
4444
path: ${{ github.workspace }}/.ccache
@@ -317,9 +317,9 @@ jobs:
317317
run: |
318318
git config --global core.autocrlf false
319319
- name: Checkout GDAL
320-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
320+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
321321
- name: Install development packages
322-
uses: msys2/setup-msys2@fb197b72ce45fb24f17bf3f807a388985654d1f2 # v2.29.0
322+
uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0
323323
with:
324324
msystem: MINGW64
325325
update: true
@@ -332,7 +332,7 @@ jobs:
332332
mingw-w64-x86_64-libgeotiff mingw-w64-x86_64-libpng mingw-w64-x86_64-libtiff mingw-w64-x86_64-openjpeg2
333333
mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-pytest mingw-w64-x86_64-python-setuptools mingw-w64-x86_64-swig mingw-w64-x86_64-python-psutil mingw-w64-x86_64-blosc mingw-w64-x86_64-libavif
334334
- name: Setup cache
335-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
335+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
336336
id: cache
337337
with:
338338
path: ${{ github.workspace }}\.ccache
@@ -376,19 +376,19 @@ jobs:
376376
- name: Build
377377
run: cmake --build build -j 3
378378
working-directory: ${{ github.workspace }}
379-
- name: test
380-
run: cmake --build build --target quicktest
381-
working-directory: ${{ github.workspace }}
382-
- name: test (with ctest)
383-
run: |
384-
ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
385-
env:
386-
BUILD_NAME: mingw64
387-
SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
388-
SKIP_OGR_GMLAS_HTTP_RELATED: YES
389-
SKIP_TIFF_JPEG12: YES
390-
SKIP_VSIRAR: YES
391-
working-directory: ${{ github.workspace }}
379+
#- name: test
380+
# run: cmake --build build --target quicktest
381+
# working-directory: ${{ github.workspace }}
382+
#- name: test (with ctest)
383+
# run: |
384+
# ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3
385+
# env:
386+
# BUILD_NAME: mingw64
387+
# SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
388+
# SKIP_OGR_GMLAS_HTTP_RELATED: YES
389+
# SKIP_TIFF_JPEG12: YES
390+
# SKIP_VSIRAR: YES
391+
# working-directory: ${{ github.workspace }}
392392
- name: Install
393393
run: cmake --build build --target install -j 3
394394
working-directory: ${{ github.workspace }}
@@ -412,7 +412,7 @@ jobs:
412412
run: |
413413
git config --global core.autocrlf false
414414
- name: Checkout GDAL
415-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
415+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
416416
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
417417
- name: populate JAVA_HOME
418418
shell: pwsh
@@ -478,8 +478,8 @@ jobs:
478478
- name: test (with ctest)
479479
shell: bash -l {0}
480480
run: |
481-
# Exclude doc spellcheck as it crashes
482-
ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3 -E spelling
481+
# Exclude doc spellcheck and example tests as they crash
482+
ctest --test-dir $GITHUB_WORKSPACE/build -C Release -V -j 3 -E doc
483483
env:
484484
SKIP_OGR_GMLAS_HUGE_PROCESSING_TIME: YES
485485
SKIP_OGR_GMLAS_HTTP_RELATED: YES
@@ -528,7 +528,7 @@ jobs:
528528
run: |
529529
git config --global core.autocrlf false
530530
- name: Checkout GDAL
531-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
531+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
532532
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
533533
with:
534534
activate-environment: gdalenv
@@ -539,16 +539,23 @@ jobs:
539539
- name: Install dependency
540540
shell: bash -l {0}
541541
run: |
542-
conda install --yes --quiet proj pytest pytest-env pytest-benchmark filelock lxml cmake setuptools
542+
conda install --yes --quiet proj python=3.12 swig pytest pytest-env pytest-benchmark filelock lxml cmake setuptools
543543
- name: Check CMake version
544544
shell: bash -l {0}
545545
run: |
546546
cmake --version
547+
548+
- name: Remove conflicting libraries
549+
shell: bash -l {0}
550+
run: |
551+
rm -rf C:/Strawberry || /bin/true
552+
rm -rf "C:/Program Files/OpenSSL/lib" || /bin/true
553+
547554
- name: Configure
548555
shell: bash -l {0}
549556
run: |
550557
mkdir -p $GITHUB_WORKSPACE/build
551-
cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DWERROR_DEV_FLAG="-Werror=dev"
558+
cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DWERROR_DEV_FLAG="-Werror=dev" -DCMAKE_CXX_STANDARD=20
552559
- name: Build
553560
shell: bash -l {0}
554561
run: cmake --build $GITHUB_WORKSPACE/build --config RelWithDebInfo -j 2
@@ -612,9 +619,9 @@ jobs:
612619
with:
613620
xcode-version: '15.4.0'
614621
- name: Checkout GDAL
615-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
622+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
616623
- name: Setup cache
617-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
624+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
618625
id: cache
619626
with:
620627
path: ${{ github.workspace }}/.ccache
@@ -699,11 +706,11 @@ jobs:
699706
run: |
700707
git config --global core.autocrlf false
701708
- name: Checkout GDAL
702-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
709+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
703710
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
704711
with:
705712
activate-environment: gdalenv
706-
python-version: 3.9
713+
python-version: "3.10"
707714
channels: conda-forge
708715
- name: Install dependency
709716
shell: bash -l {0}

.github/workflows/code_checks.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
container: ubuntu:20.04
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2929

3030
- name: Install Requirements
3131
run: |
@@ -48,7 +48,7 @@ jobs:
4848
container: ubuntu:24.04
4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
51+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5252

5353
- name: Install Requirements
5454
run: |
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- name: Checkout
73-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
73+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
7474

7575
- name: Install Requirements
7676
run: |
@@ -111,7 +111,7 @@ jobs:
111111
runs-on: ubuntu-latest
112112
steps:
113113
- name: Checkout
114-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
114+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
115115

116116
- name: Detect tabulations
117117
run: ./scripts/detect_tabulations.sh
@@ -158,23 +158,23 @@ jobs:
158158
sudo apt-get install -y python3 coreutils
159159
160160
- name: Checkout
161-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
161+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
162162

163163
- name: Detect binary files
164164
run: python3 ./scripts/check_binaries.py
165165

166166
linting:
167167
runs-on: ubuntu-24.04
168168
steps:
169-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
170-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
169+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
170+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
171171
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
172172

173173
other_checks:
174174
runs-on: ubuntu-24.04
175175
steps:
176176
- name: Checkout
177-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
177+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
178178

179179
- name: Install Requirements
180180
run: |
@@ -194,11 +194,11 @@ jobs:
194194
runs-on: ubuntu-latest
195195
steps:
196196
- name: Checkout
197-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
197+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
198198
- name: Set up Python
199-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
199+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
200200
with:
201-
python-version: 3.8
201+
python-version: "3.10"
202202
- name: Install lint tool
203203
run: |
204204
PYTHON_CMD=python3 && $PYTHON_CMD -m pip --upgrade pip
@@ -210,7 +210,7 @@ jobs:
210210
runs-on: ubuntu-latest
211211
steps:
212212
- name: Checkout
213-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
213+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
214214

215215
- name: Install requirements
216216
run: |
@@ -227,11 +227,11 @@ jobs:
227227
runs-on: ubuntu-latest
228228
steps:
229229
- name: Checkout
230-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
230+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
231231
- name: Set up Python
232-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
232+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
233233
with:
234-
python-version: 3.8
234+
python-version: "3.10"
235235
- name: Check cmakelist
236236
run: |
237237
python scripts/collect_config_options.py
@@ -242,11 +242,11 @@ jobs:
242242
runs-on: ubuntu-latest
243243
steps:
244244
- name: Checkout
245-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
245+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
246246
- name: Set up Python
247-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
247+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
248248
with:
249-
python-version: 3.8
249+
python-version: "3.10"
250250
- name: Check cmakelist
251251
run: |
252252
python scripts/collect_driver_connection_prefix.py

0 commit comments

Comments
 (0)