New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI Failure - Releasing and Duplicate Runs #76
Comments
I think the setup.py is overwriting the version in the sdist when building the wheel since it fails to run |
Yeah, I thought it was because https://github.com/actions/checkout does a shallow checkout by default, so we need to fetch all tags: https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches But I added that in PR #79 but it still fails. We can see it gets the tag for the sdist but not the wheel:
Printing the exception: try:
ret = subprocess.run(
"git describe --tags --abbrev=0",
capture_output=True,
check=True,
shell=True,
)
version = ret.stdout.decode("utf-8").strip()
except Exception as e:
print(e)
version = "main" Gives:
|
For the first one, I think we want something like: on:
push:
tags:
- '*' Rather than: on:
create:
tags:
- '*' |
Closed in #79 and #80. |
The built wheel is incorrectly versioned. The correct version is picked up but is replaced at some point with the branch name of "main".
The text was updated successfully, but these errors were encountered: