meta.yaml 1.76 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
  patches:
André Anjos's avatar
André Anjos committed
14
    # removes the pinning for scipy<1
15
    # removes the pinning for matplotlib<2
16
    # relaxes the pathlib pinning for python 2.x
17
    - relax-pins.patch
André Anjos's avatar
André Anjos committed
18
19

build:
André Anjos's avatar
André Anjos committed
20
  number: 6
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
33
    - pathlib 1.0
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
34
    - numpy {{ numpy }}
35
    - cython {{ cython }}
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
36
    - ffmpeg {{ ffmpeg }}
André Anjos's avatar
André Anjos committed
37
38
39

  run:
    - python
40
    - {{ pin_compatible('pathlib',  max_pin='x.x', min_pin='x.x') }}  # [py2k]
41
    - {{ pin_compatible('numpy') }}
André Anjos's avatar
André Anjos committed
42
43
44

    # Scientific Python Stack
    - scipy
45
    - pillow >=3.0
André Anjos's avatar
André Anjos committed
46
47
48
49
50

    # Features
    - cyvlfeat >=0.4.3,<0.5

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

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

  files:
    - .coveragerc

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

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

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