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

added RIOS #444

Merged
merged 6 commits into from
Apr 27, 2016
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
37 changes: 37 additions & 0 deletions recipes/rios/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A quick import test would speed up any identification of issues here.

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
24 changes: 24 additions & 0 deletions recipes/rios/run_test.py
Original file line number Diff line number Diff line change
@@ -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()