Skip to content

Commit b2d9732

Browse files
authored
Add a conda recipe (#115)
* ci: Add a conda recipe
1 parent b183362 commit b2d9732

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

conda.recipe/meta.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %}
2+
{% set project = pyproject['project'] %}
3+
4+
{% set name = project['name'] %}
5+
{% set version = project['version'] %}
6+
7+
package:
8+
name: {{ name|lower }}
9+
version: {{ version }}
10+
11+
source:
12+
path: ..
13+
14+
build:
15+
number: 0
16+
skip: True # [py<39]
17+
script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv
18+
19+
requirements:
20+
host:
21+
- python
22+
- pip
23+
{% for dep in pyproject['build-system']['requires'] %}
24+
- {{ dep.lower() }}
25+
{% endfor %}
26+
run:
27+
- python
28+
- requests >=2.32.3
29+
30+
test:
31+
imports:
32+
- mailjet_rest
33+
source_files:
34+
- tests/test_client.py
35+
requires:
36+
- pip
37+
- pytest
38+
commands:
39+
- pip check
40+
# TODO: Add environment variables for tests
41+
#- pytest tests/test_client.py -vv
42+
43+
about:
44+
home: {{ project['urls']['Homepage'] }}
45+
dev_url: {{ project['urls']['Repository'] }}
46+
doc_url: {{ project['urls']['Documentation'] }}
47+
summary: {{ project['description'] }}
48+
# TODO: Add the description
49+
# description: |
50+
#
51+
license: {{ project['license']['text'] }}
52+
license_family: {{ project['license']['text'] }}
53+
license_file: LICENSE

0 commit comments

Comments
 (0)