package:
  name: rank_filter
  version: {{ environ.get('GIT_DESCRIBE_TAG', '')[1:] }}{{ '+' + environ.get('GIT_DESCRIBE_NUMBER', '0') + '.' + environ.get('GIT_DESCRIBE_HASH', '0') if environ.get('GIT_DESCRIBE_NUMBER', '0') != '0' else "" }}

source:
  git_url: ..

build:
  script_env:
    - EXT_CC
    - EXT_CXX
    - TST_VIGRA

  detect_binary_files_with_prefix: true

requirements:
  build:
    - toolchain
    - setuptools
    - cmake
    - patchelf >=0.8    # [linux]
    - boost-cpp
    - python
    - numpy x.x
    - cython
    {{ "- vigra" if environ.get("TST_VIGRA", "false") == "true" else "" }}
    
  run:
    - boost-cpp
    - python
    - numpy x.x

test:
  source_files:
    - tests

  imports:
    - rank_filter

  commands:
    - python -m unittest discover -s .

about:
  home: http://github.com/nanshe-org/rank_filter
  license: BSD 3-Clause
  license_file: LICENSE.txt
  summary: C++ boosted rank filter with Python bindings.

package:
  name: rank_filter
  version: {{ environ.get('GIT_DESCRIBE_TAG', '')[1:] }}{{ '+' + environ.get('GIT_DESCRIBE_NUMBER', '0') + '.' + environ.get('GIT_DESCRIBE_HASH', '0') if environ.get('GIT_DESCRIBE_NUMBER', '0') != '0' else "" }}

source:
  git_url: ..

build:
  script_env:
    - EXT_CC
    - EXT_CXX
    - TST_VIGRA

  detect_binary_files_with_prefix: true

requirements:
  build:
    - toolchain
    - setuptools
    - cmake
    - patchelf >=0.8    # [linux]
    - boost-cpp
    - python
    - numpy 1.11.*
    - cython
    {{ "- vigra" if environ.get("TST_VIGRA", "false") == "true" else "" }}
    
  run:
    - boost-cpp
    - python
    - numpy >=1.11

test:
  source_files:
    - tests

  imports:
    - rank_filter

  commands:
    - python -m unittest discover -s .

about:
  home: http://github.com/nanshe-org/rank_filter
  license: BSD 3-Clause
  license_file: LICENSE.txt
  summary: C++ boosted rank filter with Python bindings.

Use new NumPy building practice
Use new NumPy building practice

Switches the recipe over to building against `numpy 1.11` and allowing
the run time version to be `numpy 1.11` or greater. Should help
consolidate CI builds a bit.
