{% set name = "gwvet" %}
{% set version = "0.1.0" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

source:
  url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
  sha256: "044523b0e9fb58d0746e8e4d469aa0abcdd025da15007f98440bdaa62759dab3"

build:
  number: 0
  skip: true  # [win or py<36]
  script: "{{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - pip
    - python
    - setuptools
  run:
    - astropy >=1.2.1
    - decorator
    - dqsegdb
    - gwdetchar >=1.0.0
    - gwpy >=1.0.0
    - gwsumm >=1.0.1
    - gwtrigfind
    - lscsoft-glue >=1.60.0
    - markuppy
    - matplotlib-base >=2.0.0
    - numpy >=1.10
    - python
    - scipy >=1.2.0

test:
  requires:
    - pytest >=2.8,<3.7
  imports:
    - gwvet
    - gwvet.cli
    - gwvet.etg
    - gwvet.metric
    - gwvet.segments
    - gwvet.tabs
    - gwvet.triggers
  commands:
    # check scripts run ok
    - gwvet --help
    - gwvet-hug --help
    - gwvet-vdf --help

about:
  home: "https://github.com/gwpy/vet"
  license: "GPL-3.0-or-later"
  license_family: "GPL"
  license_file: "LICENSE"
  summary: "Gravitational-wave Veto Evaluation and Testing suite"
  description: |
    GWVET is an extension to the python toolbox GWSumm, used by the LIGO
    Scientific Collaboration to review and evaluate data-quality veto products

extra:
  recipe-maintainers:
    - alurban

Add gwvet package to conda-forge
Add gwvet package to conda-forge
