{% set data = load_setup_py_data() %}

package:
  name: nb_conda_kernels
  version: {{ data.get('version') }}

source:
  path: ../

build:
  number: 0
  script:
    - python setup.py install --single-version-externally-managed --record=record.txt

requirements:
  host:
    - python {{ python }}
    - setuptools
  run:
    - python
    - pywin32 # [win]
    - jupyter_client >=4.2

test:
  source_files:
    - setup.cfg
  requires:
    - pytest
    - pytest-cov
    - ipykernel
    - notebook
    - requests
    - mock
  commands:
    - python -m nb_conda_kernels list # [py3k]
    - python -m pytest -v --cov=nb_conda_kernels --pyargs nb_conda_kernels

about:
  home: https://github.com/Anaconda-Platform/nb_conda_kernels
  license: BSD 3-Clause
  license_file: LICENSE
  summary: 'Launch Jupyter kernels for any installed conda environment.'

{% set data = load_setup_py_data() %}

package:
  name: nb_conda_kernels
  version: {{ data.get('version') }}

source:
  path: ../

build:
  number: 0
  script:
    - python setup.py install --single-version-externally-managed --record=record.txt

requirements:
  host:
    - python {{ python }}
    - setuptools
  run:
    - python
    - pywin32 # [win]
    - jupyter_client >=4.2

test:
  source_files:
    - setup.cfg
  requires:
    - backports # [py2k]
    - pytest
    - pytest-cov
    - ipykernel
    - notebook
    - requests
    - mock
  commands:
    - python -m nb_conda_kernels list # [py3k]
    - python -m pytest -v --cov=nb_conda_kernels --pyargs nb_conda_kernels

about:
  home: https://github.com/Anaconda-Platform/nb_conda_kernels
  license: BSD 3-Clause
  license_file: LICENSE
  summary: 'Launch Jupyter kernels for any installed conda environment.'

Add backports for test recipe on python 2.7
Add backports for test recipe on python 2.7
