package:
  name: conda-env
  version: 2.1alpha.0

build:
  number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
  string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}
  preserve_egg_dir: yes

source:
  git_url: ../

requirements:
  build:
    - python
  run:
    - python

test:
  commands:
    - conda env -h
    - conda env list -h
    - conda env create -h
    - conda env export -h
    - conda env remove -h

about:
  home: https://github.com/conda/conda-env/

package:
  name: conda-env
  version: 2.1alpha.0

build:
  number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
  {% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
  {% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}
  preserve_egg_dir: yes

source:
  git_url: ../

requirements:
  build:
    - python
  run:
    - python

test:
  commands:
    - conda env -h
    - conda env list -h
    - conda env create -h
    - conda env export -h
    - conda env remove -h

about:
  home: https://github.com/conda/conda-env/

Adjust build to use simple 0 build number for tagged commits
Adjust build to use simple 0 build number for tagged commits
