Skip to content

WF Testing: setuptools' load_setup_py_data() returns None when no git tag #624

@ilaflott

Description

@ilaflott

concerning the following code in meta.yaml:

fre-cli/meta.yaml

Lines 1 to 5 in 9bce71f

{% set data = load_setup_py_data() %}
package:
name: fre-cli
version: '{{ environ.get("GIT_DESCRIBE_TAG", data.get("version")) }}'

in .github/workflows/conda_build.yaml (and publish_conda.yaml), during conda build ., data.get('version') will return None when there's no GIT_DESCRIBE_TAG. I.e., when the workflow runs as a result of e.g., a merge into the main branch. This is likely related to migrating from setup.py to pyproject.toml recently.

to help test #588, copilot should use the following as a .github/copilot-instructions.md before properly trying to understand the issue
THIS DIDNT WORK AT ALL, adding the file to the branch at the attached PR instead...

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions