-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
added RIOS #444
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6204167
added RIOS
gillins 9be9f37
removed bld.bat and build.sh and replaced with build/script section i…
gillins 6649751
added test/imports section
gillins 167dc36
ensure GDAL_DATA env var is set for tests
gillins e79a2b9
reinstate __main__ guard in test script as removing it broke on Windows
gillins 04a70fe
pin to gdal 2.0.2 otherwise default channel gdal gets picked up durin…
gillins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.