-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pep8ed , added test suite, and conda recipe
- Loading branch information
1 parent
3fd478e
commit b6c3382
Showing
11 changed files
with
563 additions
and
114 deletions.
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,22 @@ | ||
os: | ||
- linux | ||
- osx | ||
dist: trusty | ||
sudo: false | ||
before_install: | ||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; fi | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -y -q conda | ||
script: | ||
- conda install -c uvcdat/label/nightly -c conda-forge -c uvcdat genutil nose image-compare flake8 matplotlib | ||
- export UVCDAT_ANONYMOUS_LOG=False | ||
- echo $TRAVIS_BRANCH | ||
- export TRAVIS_PR_BRANCH=$TRAVIS_BRANCH | ||
- echo $TRAVIS_EVENT_TYPE | ||
- echo $TRAVIS_PULL_REQUEST | ||
- python setup.py install | ||
- python run_tests.py -v2 -n2 | ||
after_success: | ||
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then conda install conda-build && conda install anaconda-client && bash ci-support/conda_upload.sh ; fi |
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,13 @@ | ||
BSD 3-clause license | ||
Copyright (c) 2015-2017, conda-forge | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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,43 @@ | ||
{% set name = "ensometrics" %} | ||
{% set version = "0.1" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
git_url: https://github.com/eguil/Enso_metrics.git | ||
git_rev: master | ||
|
||
|
||
build: | ||
number: 0 | ||
skip: True # [win or py3k] | ||
script: python setup.py install | ||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
run: | ||
- python | ||
- cdms2 | ||
- numpy | ||
- udunits2 | ||
- genutil | ||
|
||
test: | ||
command: | ||
- export UVCDAT_ANONYMOUS_LOG=false && python run_tests.py -v2 | ||
|
||
about: | ||
home: http://github.com/eguil/Enso_metrics | ||
license: 'CCLRC' | ||
license_file: LICENSE | ||
summary: "Library to compute ENSO metrics" | ||
|
||
extra: | ||
recipe-maintainers: | ||
- doutriaux1 | ||
- eguil | ||
- lee1043 |
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
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
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,3 @@ | ||
from EnsoMetricsLib import Ensoampln3, EnsoAmpl, EnsoMu, computeAnom # noqa | ||
from metricsCollectionsLib import defCollection, metricReqs # noqa | ||
from EnsoMetricsGraph import EnsoMetricsTable # noqa |
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
Oops, something went wrong.