Commit 3a46b6f8 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Set the version number differently

This is a workaround until conda accepts a version of https://github.com/conda/conda/pull/11576
parent 71703715
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ jobs:
          # boa uses mamba to resolve dependencies
          echo "versioningit reports version=$(versioningit ../)"
          conda install -y anaconda-client boa
          conda mambabuild --output-folder . -c conda-forge .
          VERSION=$(versioningit ../) conda mambabuild --output-folder . -c conda-forge .
      - name: Verify Conda Package
        run: |
          conda verify noarch/imars3d*.tar.bz2
+10 −4
Original line number Diff line number Diff line
# this will reproduce the version from tags to match versioningit
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0') %}
# 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 get the version set by environment variable
{% set version = environ.get('VERSION') %}
{% set version_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %}

package:
@@ -45,7 +50,8 @@ test:
    - imars3d

about:
  home: https://github.com/ornlneutronimaging/iMars3D
  license: BSD (version 3)
  home: {{ url }}
  license: {{ license }}
  license_family: BSD
  license_file: ../LICENSE
  summary: {{ description }}