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

Test entry points, call all Python apps with --help #934

Merged
merged 1 commit into from
May 28, 2024
Merged
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
60 changes: 36 additions & 24 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: 577f80e9d14ff7c90b6bfbc34201652b4546700c01543efb4f4c3050e0b3fda2

build:
number: 4
number: 5
skip_compile_pyc:
- share/bash-completion/completions/*.py
skip: true # [ppc64le]
Expand Down Expand Up @@ -294,35 +294,47 @@ outputs:
- osgeo._osr
commands:
- python run_test.py
# Check Python-implemented GDAL utilities.
# A number of these utilities unexpectedly return an error value when
# called with --help, and are thus called with --version below.
# gdalattachpct.py is checked only for existence as it unexpectedly
# returns an error code on --version, too. For easier debugging, this
# existence check is performed in a separate .bat file on Windows.
# This existence check should be replaced by a regular call once
# behavior is fixed in GDAL itself.
- rgb2pct.py --help
- pct2rgb.py --help
# Both --help and --version seem to cause an error return value
- test -f $PREFIX/bin/gdalattachpct.py # [unix]
- gdal_merge.py --help
# Check that Python-implemented GDAL utilities are available with .py extension, as documented
- gdal2tiles.py --help
- gdal2xyz.py --help
- gdal_retile.py --help
- gdal_proximity.py --help
- gdal_polygonize.py --help
- gdal_sieve.py --version
- gdal_fillnodata.py --help
- gdalmove.py --version
- gdal_edit.py --help
- gdal_calc.py --help
- gdal_edit.py --help
- gdal_fillnodata.py --help
- gdal_merge.py --help
- gdal_pansharpen.py --help
- gdalcompare.py --version
- gdal_polygonize.py --help
- gdal_proximity.py --help
- gdal_retile.py --help
- gdal_sieve.py --help
- gdalattachpct.py --help
- gdalcompare.py --help
- gdalmove.py --help
- pct2rgb.py --help
- rgb2pct.py --help
- ogrmerge.py --help
- ogr_layer_algebra.py --help
# Use separate .bat file for file existence check on Windows
- test_script_exist.bat # [win]
# Check that the utilities are available as entry points without extension, see:
# https://github.com/conda-forge/gdal-feedstock/issues/834
# https://github.com/OSGeo/gdal/pull/8718
# https://github.com/OSGeo/gdal/issues/8811
- gdal2tiles --help
- gdal2xyz --help
- gdal_calc --help
- gdal_edit --help
- gdal_fillnodata --help
- gdal_merge --help
- gdal_pansharpen --help
- gdal_polygonize --help
- gdal_proximity --help
- gdal_retile --help
- gdal_sieve --help
- gdalattachpct --help
- gdalcompare --help
- gdalmove --help
- pct2rgb --help
- rgb2pct --help
- ogrmerge --help
- ogr_layer_algebra --help
about:
summary: Python wrapper for the Geospatial Data Abstraction Library (GDAL)
license: MIT
Expand Down
9 changes: 0 additions & 9 deletions recipe/test_script_exist.bat

This file was deleted.