-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
meta.yaml
57 lines (50 loc) · 1.37 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% set data = load_setup_py_data(from_recipe_dir=True) %}
{% set name = data['name'] %}
{% set version = data['version'] %}
{% set summary = data['description'] %}
{% set description = data['long_description'][:data['long_description'].index('<table>')].strip() %}
package:
name: {{ name.lower() }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 62429ecad5d324d25bd650f945ea8f1af1224adec6b0967021072f8b11275434
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- python {{ data['python_requires'] }}
- pip
- setuptools
run:
- python {{ data['python_requires'] }}
{% for dep in data['install_requires'] %}
{% if dep.lower().startswith('matplotlib') %}
- matplotlib-base
{% else %}
- {{ dep.lower() }}
{% endif %}
{% endfor %}
test:
imports:
- {{ name.lower() }}
source_files:
- tests/
requires:
- pytest
commands:
- pytest tests/
about:
home: {{ data['url'] }}
license: {{ data['license'] }}
license_file: {{ data['license_files'][0] }}
summary: {{ summary }}
description: {{ description }}
doc_url: https://{{ name.lower() }}.readthedocs.io/
doc_source_url: {{ data['url'] }}/blob/master/docs/source/index.rst
dev_url: {{ data['url'] }}
extra:
maintainers:
- TommasoBelluzzo