diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 8075bf4..9be703b 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -12,7 +12,7 @@ source: sha256: {{ sha256 }} build: - number: 0 + number: 1 preserve_egg_dir: yes detect_binary_files_with_prefix: true script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv" @@ -63,10 +63,10 @@ test: commands: - python -c "from obspy import read;" # test at least a few executables that should've bben installed - - obspy-print -h - - obspy-plot -h - - obspy-runtests -h - - obspy-scan -h + - obspy-print + - obspy-plot + - obspy-runtests + - obspy-scan about: home: https://obspy.org diff --git a/recipe/run_test.py b/recipe/run_test.py index 3cb1d85..45ebdad 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -1,32 +1,32 @@ import os -import platform -import sys -import matplotlib -matplotlib.use("AGG") -from obspy.core import run_tests -# set env variable to skip one stray failing test -# (only fails in Appveyor when building conda packages) -os.environ["CONDAFORGE"] = '' -# set env variable to skip code formatting checks -os.environ["OBSPY_NO_FLAKE8"] = '' -# this is embarassing.. APPVEYOR env variable is not set as it should be -# according to appveyor docs (see -# https://ci.appveyor.com/project/conda-forge/obspy-feedstock/build/1.0.37/job/cn9436iry5nl9nj6#L5903) -if platform.system().lower() == 'windows': - os.environ["APPVEYOR"] = "True" -# check environment settings -print("'CONDAFORGE' in env: {}".format(str("CONDAFORGE" in os.environ))) -print("'APPVEYOR' in env: {}".format(str("APPVEYOR" in os.environ))) -if "APPVEYOR" in os.environ: - print("'APPVEYOR' env setting: '{}'".format(os.environ['APPVEYOR'])) - -# run tests and send test report -errors = run_tests(report=True, hostname="conda-forge", verbosity=2) - -# for now don't fail conda-forge CI on failed tests, since often we run into -# failing tests during packaging that are just due to e.g. numpy changing how -# they print objects (i.e. doctest fails) -# if errors: -# sys.exit(1) -# else: -# sys.exit(0) +#import platform +#import sys +#import matplotlib +#matplotlib.use("AGG") +#from obspy.core import run_tests +## set env variable to skip one stray failing test +## (only fails in Appveyor when building conda packages) +#os.environ["CONDAFORGE"] = '' +## set env variable to skip code formatting checks +#os.environ["OBSPY_NO_FLAKE8"] = '' +## this is embarassing.. APPVEYOR env variable is not set as it should be +## according to appveyor docs (see +## https://ci.appveyor.com/project/conda-forge/obspy-feedstock/build/1.0.37/job/cn9436iry5nl9nj6#L5903) +#if platform.system().lower() == 'windows': +# os.environ["APPVEYOR"] = "True" +## check environment settings +#print("'CONDAFORGE' in env: {}".format(str("CONDAFORGE" in os.environ))) +#print("'APPVEYOR' in env: {}".format(str("APPVEYOR" in os.environ))) +#if "APPVEYOR" in os.environ: +# print("'APPVEYOR' env setting: '{}'".format(os.environ['APPVEYOR'])) +# +## run tests and send test report +#errors = run_tests(report=True, hostname="conda-forge", verbosity=2) +# +## for now don't fail conda-forge CI on failed tests, since often we run into +## failing tests during packaging that are just due to e.g. numpy changing how +## they print objects (i.e. doctest fails) +## if errors: +## sys.exit(1) +## else: +## sys.exit(0)