{% set data = load_setup_py_data() %}

package:
  name: thermostate
  version: {{ data['version'] }}

source:
  path: ..

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

requirements:
  host:
    - python
    - pip
    - setuptools

  run:
    - python >=3.5
    - coolprop >=6.1.0,<6.3
    - pint >=0.7.2,<0.10

test:
  imports:
    - thermostate

  requires:
    - pytest >=3.0.0
    - pytest-cov >=2.3.1

  commands:
    - pytest -vv --pyargs thermostate

about:
  home: https://github.com/bryanwweber/thermostate
  license: BSD 3-clause
  license_file: LICENSE.md
  license_family: BSD
  summary: "{{ data['description'] }}"
  description: "{{ data['long_description'] }}"
  doc_url: https://bryanwweber.github.io/thermostate
  dev_url: https://github.com/bryanwweber/thermostate

{% set data = load_setup_py_data() %}

package:
  name: thermostate
  version: {{ data['version'] }}

source:
  path: ..

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

requirements:
  host:
    - python
    - pip
    - setuptools

  run:
    - python >=3.6
    - coolprop >=6.1.0,<6.4
    - pint >=0.7.2,<0.12

test:
  source_files:
    - tests

  imports:
    - thermostate

  requires:
    - pytest >=3.0.0
    - pytest-cov >=2.3.1

  commands:
    - pytest -vv tests

about:
  home: https://github.com/bryanwweber/thermostate
  license: BSD 3-clause
  license_file: LICENSE.md
  license_family: BSD
  summary: "{{ data['description'] }}"
  description: |
    This package provides a wrapper around [CoolProp](https://github.com/CoolProp/CoolProp)
    that integrates [Pint](https://pint.readthedocs.io) for easy thermodynamic state management
    in any unit system.
  doc_url: https://bryanwweber.github.io/thermostate
  dev_url: https://github.com/bryanwweber/thermostate

Update conda recipe and fix tests and description
Update conda recipe and fix tests and description

Bump dependency versions, verified to work correctly. Fix how tests
are called after a build, due to the change to the src directory
style layout, and no longer distributing the tests with the
package. Fix the long description, which caused parsing errors for
the not-quite-the-same-as-GitHub Markdown parser that Anaconda.org
uses.
