-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BLD: push a tag builds a wheel #25981
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
Conversation
If if one triggers manually, or with a pull request containing |
How about we put this in, backport it, and run a tag to see how it does? |
It would make sense to upload to staging when manually building maintenance branches. The nightlies are for wheels of the ongoing development in the main branch. |
Going to give this a shot. Thanks Andrew. |
There are some things you only find out about in the heat of battle. |
I might see if I can debig this by pushing tags to my fork. |
This failed in combination with tag-based triggers: - issue: numpygh-25979 - cause: numpy#25981 (comment) More importantly, we don't need to fetch either the tags or the whole commit history, because: (a) we don't derive the version number from the last tag, but from parsing pyproject.toml (b) we don't use a commit count, but only yyyymmdd.git-hash See `numpy/_build_utils/gitversion.py` Done only in the wheel build job right now, because that's where the problem is and we're in a hurry to solve it on the 2.0.x branch. However, this change should be fine everywhere. [skip cirrus] [skip circle] [skip azp]
This failed in combination with tag-based triggers: - issue: numpygh-25979 - cause: numpy#25981 (comment) More importantly, we don't need to fetch either the tags or the whole commit history, because: (a) we don't derive the version number from the last tag, but from parsing pyproject.toml (b) we don't use a commit count, but only yyyymmdd.git-hash See `numpy/_build_utils/gitversion.py` Done only in the wheel build job right now, because that's where the problem is and we're in a hurry to solve it on the 2.0.x branch. However, this change should be fine everywhere. [skip cirrus] [skip circle] [skip azp]
See #25979.
The logic here is that:
Push
ing to a maintenance branch starts a CI run.github.ref
starts withrefs/tags/v
and doesn't end withdev0
then the wheel builder runsIS_PUSH
variable.