Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions .github/workflows/conda-package-build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/openalea_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: OpenAlea CI

on:
push:
branches:
- main
- master
tags:
- 'v*'
pull_request:
types:
- opened
- synchronize
- reopened
release:
types:
- published
workflow_dispatch:
inputs:
check_before_tag:
description: "Run OpenAlea CI pre-tag build"
required: false
default: "true"
type: boolean

run-name: >
${{ github.event_name == 'workflow_dispatch' && 'OpenAlea CI pre-tag build' || 'OpenAlea CI' }}

jobs:
build:
uses: openalea/action-build-publish-anaconda/.github/workflows/openalea_ci.yml@main
secrets:
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
57 changes: 37 additions & 20 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
{% set data = load_setup_py_data() %}
{% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %}
{% set name = pyproject.get('project').get('name') %}
{% set description = pyproject.get('project').get('description') %}
{% set version = environ.get('SETUPTOOLS_SCM_PRETEND_VERSION', "1.0.0.dev") %}
{% set license = pyproject.get('project').get('license') %}
{% set home = pyproject.get('project', {}).get('urls', {}).get('Homepage', '') %}
{% set build_deps = pyproject.get("build-system", {}).get("requires", []) %}
{% set deps = pyproject.get('project', {}).get('dependencies', []) %}
{% set conda_deps = pyproject.get('tool', {}).get('conda', {}).get('environment', {}).get('dependencies',[]) %}
{% set test_deps = pyproject.get('project', {}).get('optional-dependencies', {}).get('test',[]) %}


package:
name: openalea.dss
version: {{ data.get('version') }}
name: {{ name }}
version: {{ version }}

source:
path: ..

build:
noarch: python
preserve_egg_dir: True
number: 0
script: {{PYTHON}} setup.py install
preserve_egg_dir: True
script:
- {{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-build-isolation -vv

requirements:
build:
- python {{PY_VER}}
- setuptools
host:
- python
{% for dep in build_deps %}
- {{ dep }}
{% endfor %}

run:
- python >=3.6
- agroservices
- weatherdata
- matplotlib
- python
{% for dep in deps + conda_deps %}
- {{ dep }}
{% endfor %}

test:
requires:
- pytest
{% for dep in test_deps %}
- {{ dep }}
{% endfor %}
imports:
- weatherdata
- openalea.dss
source_files:
- test/**
#commands:
# - cd test
# - pytest -v --ignore=test_weatherdata.py

about:
home: {{ data.get('url') }}
license: GPL-v3
summary: {{ data.get('description') }}
home: {{ home }}
summary: {{ description }}
license: {{ license }}

extra:
recipe-maintainers:
- pradal
1 change: 0 additions & 1 deletion doc/requierements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
python=3.8
openalea.deploy
agroservices
requests (agroservices)
appdirs (agroservices)
Expand Down
Loading
Loading