diff --git a/recipes/rios/meta.yaml b/recipes/rios/meta.yaml new file mode 100644 index 0000000000000..49ac52d975936 --- /dev/null +++ b/recipes/rios/meta.yaml @@ -0,0 +1,37 @@ +{% set version = "1.4.2" %} + +package: + name: rios + version: {{ version }} + +source: + fn: rios-{{ version }}.tar.gz + url: https://bitbucket.org/chchrsc/rios/downloads/rios-{{ version }}.tar.gz + md5: 6fa3db26d5c9e6c504ff46f66267e39c + +build: + number: 0 + script: python setup.py install + +requirements: + build: + - python + - numpy + - gdal 2.0.2 + run: + - python + - numpy + - gdal 2.0.2 + +test: + imports: + - rios + +about: + home: http://rioshome.org/ + license: GPLv3 + summary: Raster I/O simplification, a set of Python modules built on top of GDAL to simplify processing raster data, including data with Raster Attribute Tables. + +extra: + recipe-maintainers: + - gillins diff --git a/recipes/rios/run_test.py b/recipes/rios/run_test.py new file mode 100644 index 0000000000000..a77b17908abf0 --- /dev/null +++ b/recipes/rios/run_test.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +""" +Main test harness for RIOS. + +Should be run as a main program. It then runs a selection +of tests of some capabilities of RIOS. + +""" +# Set GDAL_DATA. This is done normally done by the activate script, +# but this doesn't happen in the testing environment +import os +if 'LIBRARY_PREFIX' in os.environ: + # Windows + gdalData = os.path.join(os.environ['LIBRARY_PREFIX'], 'share', 'gdal') +else: + # Linux/OSX + gdalData = os.path.join(os.environ['PREFIX'], 'share', 'gdal') + +os.environ['GDAL_DATA'] = gdalData + +if __name__ == '__main__': + # this if is important since some of the tests use the multiprocessing module + from rios.riostests import riostestutils + riostestutils.testAll()