{% set data = load_setup_py_data() %}
{% set version = data.get('version') %}

package:
  name: qiime2
  version: {{ version }}

source:
  path: ../..

build:
  script: make install

requirements:
  host:
    - python {{ python }}
    - setuptools

  run:
    - python {{ python }}
    - pyyaml
    - decorator >=4,<5
    - pandas {{ pandas }}
    # tzlocal 3 is currently broken - once this is fixed drop pin
    - tzlocal <3
    - python-dateutil
    - bibtexparser
    # This is pinned because networkx 3.2 was trying to use
    # importlib.resources.files which apparently doesn't exist on
    # importlib_resources 6.1.0 which is what we were using when this was
    # pinned. Pinning this to the version that was working for us was simpler
    # than digging around in importlib_resources to find a compatible version
    - networkx =3.1
    - dill
    - psutil
    - flufl.lock
    - parsl {{ parsl }}
    - appdirs
    - tomlkit
    - lxml

test:
  requires:
    - pytest
    - tornado
    - notebook <7

  imports:
    - qiime2

  commands:
    # TODO don't require devs to remember setting this env var before running
    # tests. The value can be anything.
    - QIIMETEST= python -c "import qiime2.plugins.dummy_plugin"
    - QIIMETEST= py.test --pyargs --doctest-modules qiime2

about:
  home: https://qiime2.org
  license: BSD-3-Clause
  license_family: BSD
