Skip to content

Commit 4b2aff9

Browse files
EliEli
authored andcommitted
Differentiate between syntax requirements for conda and for pip.
1 parent b0337f9 commit 4b2aff9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
exit 1
4747
fi
4848
49+
cat > conda.recipe/variant.yaml <<EOF
50+
PKG_VERSION: $PKG_VERSION
51+
SCM_VERSION: $RAW_VERSION
52+
EOF
53+
4954
echo "PKG_VERSION: $PKG_VERSION" > conda.recipe/variant.yaml
5055
cat conda.recipe/variant.yaml
5156

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build:
2424
noarch: python
2525
number: 0
2626
script_env:
27-
- SETUPTOOLS_SCM_PRETEND_VERSION={{ PKG_VERSION }}
27+
- SETUPTOOLS_SCM_PRETEND_VERSION={{ SCM_VERSION }}
2828
entry_points:
2929
{% for name, reference in pyproject['project']['scripts'].items() %}
3030
- {{ name }} = {{ reference }}

0 commit comments

Comments
 (0)