-
Notifications
You must be signed in to change notification settings - Fork 429
/
setuptools.yaml
50 lines (45 loc) · 1.03 KB
/
setuptools.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
{% set data = load_setup_py_data()%}
{% block body -%}
{% block package -%}
package:
name: {{data.get('name').lower().replace(' ', '_')}}
version: {{data.get('version')}}
{%- endblock %}
{% block build -%}
build:
number: {% block build_number -%}1{%- endblock %}
script:
- cd $RECIPE_DIR
- pip install --no-deps .
{% block entry_points -%}
entry_points: {{data.get('entry_points', {}).get('console_scripts', [])}}
{%- endblock %}
{%- endblock %}
{% block requirements -%}
requirements:
build:
- python
- setuptools
run:
- python
{% for req in data.get('install_requires', []) -%}
- {{req}}
{% endfor %}
{%- endblock %}
{% block about -%}
about:
home: {{data.get('url')}}
license: {{data.get('license')}}
{%- endblock %}
{% block test -%}
test:
requires:
{% for req in data.get('tests_require', []) -%}
- {{req}}
{% endfor %}
imports: {{data.get('packages')}}
{%- endblock -%}
{%- endblock %}
# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml