Skip to content

Commit

Permalink
Merge pull request #390 from neutrons/next
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
Kvieta1990 authored Dec 15, 2022
2 parents d25f6a9 + 9785c52 commit ffe15c1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ jobs:
- name: Build conda libraray
shell: bash -l {0}
run: |
# set up environment
export VERSION=$(versioningit)
conda install -y anaconda-client conda-build conda-verify boa
cd conda.recipe
# build the package
conda mambabuild --output-folder . . -c neutrons -c mantid/label/nightly
conda verify noarch/addie*.tar.bz2
Expand Down
15 changes: 10 additions & 5 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# load information from setup.cfg/setup.py
{% set data = load_setup_py_data() %}
{% set license = data.get('license') %}
{% set description = data.get('description') %}
{% set url = data.get('url') %}
# this will reproduce the version from tags to match versioningit
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0') %}
{% set version = environ.get('VERSION') %}
{% set version_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %}

package:
Expand Down Expand Up @@ -47,11 +52,11 @@ test:
- addie

about:
home: https://github.com/neutrons/addie
license: GPL (version 3)
license_family: GPL3
home: {{ url }}
license: {{ license }}
license_family: MIT
license_file: ../LICENSE
summary: ADvanced DIffraction Environment
summary: {{ description }}

extra:
recipe-maintainers:
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# this file is necessary so conda can read the contents of setup.cfg using
# its load_setup_py_data function
from setuptools import setup
from versioningit import get_cmdclasses

setup(cmdclass=get_cmdclasses())

0 comments on commit ffe15c1

Please sign in to comment.