meta.yaml 1.7 KB
Newer Older
1
{% set name = "menpo" %}
André Anjos's avatar
André Anjos committed
2
{% set version = "0.8.1" %}
3
{% set sha256 = "3b74f1e598bb8ee561f3f48714be007ba7d4dc4a326a35125e436fa570e7e73f" %}
André Anjos's avatar
André Anjos committed
4 5

package:
6
  name: {{ name }}
André Anjos's avatar
André Anjos committed
7 8 9
  version: {{ version }}

source:
10 11 12
  fn: {{ name }}-v{{ version }}.tar.gz
  url: https://github.com/menpo/menpo/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}
13 14 15
  patches:
    # removes the pinning for matplotlib<2
    - no-matplotlib-pin.patch
16 17
    # relaxes the pathlib pinning for python 2.x
    - relax-pathlib-pin.patch
André Anjos's avatar
André Anjos committed
18 19

build:
20
  number: 2
André Anjos's avatar
André Anjos committed
21
  script: python setup.py install --single-version-externally-managed --record=record.txt
22 23
  run_exports:
    - {{ pin_subpackage(name, max_pin='x.x') }}
André Anjos's avatar
André Anjos committed
24 25 26

requirements:
  build:
27 28 29 30
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}

  host:
André Anjos's avatar
André Anjos committed
31 32
    - python
    - setuptools
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
33
    - numpy {{ numpy }}
34
    - cython {{ cython }}
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
35
    - ffmpeg {{ ffmpeg }}
André Anjos's avatar
André Anjos committed
36 37 38 39

  run:
    - python
    - pathlib 1.0  # [py2k]
40
    - {{ pin_compatible('numpy') }}
André Anjos's avatar
André Anjos committed
41 42 43 44 45 46 47 48 49

    # Scientific Python Stack
    - scipy
    - pillow >=3.0,<5.0

    # Features
    - cyvlfeat >=0.4.3,<0.5

    # Visualization
50
    - matplotlib
André Anjos's avatar
André Anjos committed
51 52 53

test:
  requires:
54 55
    - mock
    - nose
André Anjos's avatar
André Anjos committed
56 57 58 59 60 61
    - coverage

  files:
    - .coveragerc

  imports:
62
    - {{ name }}
André Anjos's avatar
André Anjos committed
63 64

  commands:
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
65
    - nosetests {{ name }} -v --with-coverage --cover-package={{ name }} --exclude=".*test_rasterize_matplotlib_basic_line.*" --exclude=".*homogeneous_test.*"
66 67
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]
André Anjos's avatar
André Anjos committed
68 69 70 71 72 73 74 75 76

about:
  home: https://github.com/menpo/menpo/
  summary: A statistical modelling toolkit, providing all the tools required to build, fit, visualize, and test deformable models.
  license: BSD

extra:
  recipe-maintainers:
    - anjos