{% set name = "mplcursors" %}
{% set version = "0.2" %}

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

source:
  url: https://pypi.io/packages/source/m/mplcursors/mplcursors-{{ version }}.tar.gz
  sha256: 67fbbc5c7ea979c223baf01df55e3cab425f71d3fb96ed100686873ddf3ae786

build:
  number: 0
  noarch: python
  script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"

requirements:
  host:
    - python >3.4
    - pip
    - setuptools_scm
  run:
    - python >3.4
    - matplotlib >2.1

test:
  imports:
    - mplcursors
  # Cannot run the pytest suite since it isn't installed with the package.

about:
  home: https://github.com/anntzer/mplcursors
  license: MIT
  license_family: MIT
  license_file: LICENSE.txt
  summary: 'mplcursors provides interactive data selection cursors for Matplotlib. It is inspired from mpldatacursor, with a much simplified API.'
  doc_url: https://mplcursors.readthedocs.io/
  dev_url: https://github.com/anntzer/mplcursors

extra:
  recipe-maintainers:
    - hmaarrfk

{% set name = "mplcursors" %}
{% set version = "0.2" %}

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

source:
  url: https://pypi.io/packages/source/m/mplcursors/mplcursors-{{ version }}.tar.gz
  sha256: 67fbbc5c7ea979c223baf01df55e3cab425f71d3fb96ed100686873ddf3ae786

build:
  number: 0
  noarch: python
  script:
    # include the tests in the conda distribution
    - mv tests mplcursors/.
    - "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"

requirements:
  host:
    - python >3.4
    - pip
    - setuptools_scm
  run:
    - python >3.4
    - matplotlib >2.1

test:
  requires:
    - pytest
  imports:
    - mplcursors
  commands:
    - pytest --pyargs mplcursors

about:
  home: https://github.com/anntzer/mplcursors
  license: MIT
  license_family: MIT
  license_file: LICENSE.txt
  summary: 'mplcursors provides interactive data selection cursors for Matplotlib. It is inspired from mpldatacursor, with a much simplified API.'
  doc_url: https://mplcursors.readthedocs.io/
  dev_url: https://github.com/anntzer/mplcursors

extra:
  recipe-maintainers:
    - hmaarrfk

Include the tests and run them
Include the tests and run them
