From a65cad6e5f6aae0eee46bc0ffcfd82f355ed5752 Mon Sep 17 00:00:00 2001 From: Andre Mayoraz <andre.mayoraz@idiap.ch> Date: Thu, 6 Oct 2022 13:44:38 +0200 Subject: [PATCH] [ci] use pyproject information for conda --- conda/meta.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 709acdd..3cc44e0 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,9 +1,10 @@ -{% set name = 'bob.learn.em' %} +{% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %} +{% set name = data['project']['name'] %} {% set project_dir = environ.get('RECIPE_DIR') + '/..' %} package: name: {{ name }} - version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }} + version: {{ data['tool']['setuptools']['dynamic']['version'] }} build: number: {{ environ.get('BOB_BUILD_NUMBER', 0) }} @@ -11,10 +12,8 @@ build: - {{ pin_subpackage(name) }} script: - cd {{ project_dir }} - {% if environ.get('BUILD_EGG') %} - - "{{ PYTHON }} setup.py sdist --formats=zip" - {% endif %} - - "{{ PYTHON }} -m pip install . -vv" + - echo {{ SRC_DIR }} + - "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv" # installs the documentation source, readme to share/doc so it is available # during test time - install -d "${PREFIX}/share/doc/{{ name }}" @@ -64,7 +63,7 @@ test: - matplotlib {{ matplotlib }} about: - home: https://www.idiap.ch/software/bob/ - license: BSD 3-Clause - summary: Bindings for emelaneous machines and trainers of Bob + home: {{ data['project']['urls']['homepage'] }} + license: {{ data['project']['description'] }} + summary: {{ data['project']['license']['text'] }} license_family: BSD -- GitLab