Skip to content

Commit 9b33b71

Browse files
EliEli
authored andcommitted
Build 5
1 parent 199588c commit 9b33b71

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/python-package-conda.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
python -V
6060
conda info
6161
62+
- name: Compute version from setuptools-scm
63+
shell: bash -l {0}
64+
run: |
65+
micromamba activate tools
66+
# Ensure setuptools-scm is available to run the CLI
67+
python -m pip install -q setuptools-scm
68+
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
69+
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$SETUPTOOLS_SCM_PRETEND_VERSION" >> $GITHUB_ENV
70+
6271
- name: Build conda recipe (no tests first)
6372
shell: bash -l {0}
6473
run: |

conda.recipe/meta.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{# raw is for ignoring templating with cookiecutter, leaving it for use with conda-build -#}
22
{% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %}
33
{% set project = pyproject['project'] %}
4-
{% set version = load_setup_py_data().get('version', '0.0.0') %}
4+
{% set version = environ.get("SETUPTOOLS_SCM_PRETEND_VERSION", "0.0.0") %}
5+
56

67
package:
78
name: schimpy

0 commit comments

Comments
 (0)