Skip to content

Commit 7e0430c

Browse files
authored
feat: release package on Conda (#94)
1 parent 8df0b3c commit 7e0430c

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/publish-conda.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish to Conda
2+
3+
on:
4+
# Triggers the workflow on a new release
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v1
14+
- name: publish-to-conda
15+
uses: MichaelsJP/[email protected]
16+
with:
17+
subDir: 'conda'
18+
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
19+
platforms: 'all'
20+
override: true

conda/meta.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{% set data = load_setup_py_data() %}
2+
3+
package:
4+
name: openfoodfacts
5+
version: {{ data['version'] }}
6+
7+
source:
8+
path: ..
9+
10+
build:
11+
number: 0
12+
script: python setup.py install
13+
14+
requirements:
15+
host:
16+
- pip
17+
- python
18+
run:
19+
- python
20+
- requests >=2.20.0
21+
22+
test:
23+
imports:
24+
- openfoodfacts
25+
26+
about:
27+
home: {{ data['url'] }}
28+
license: {{ data['license'] }}
29+
summary: {{ data['description'] }}

0 commit comments

Comments
 (0)