-
Notifications
You must be signed in to change notification settings - Fork 20
ci(pypi): split the PyPI release process #463
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
.github/workflows/pypi-publish.yml
Outdated
| on: | ||
| release: | ||
| types: [published] | ||
| types: [released] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference here? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's for prereleases: babf6b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k, i'll update the rest
|
Build failed. ❌ pre-commit FAILURE in 1m 56s |
cf2496c to
b223683
Compare
Related to packit/private#32 Signed-off-by: Matej Focko <[email protected]>
b223683 to
475c49e
Compare
.github/workflows/pypi-publish.yml
Outdated
| git fetch --prune --unshallow | ||
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come it worked until now without this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have no clue, maybe it was a change in the way github action checkouts the source? I could have a look how we got to this point, but I also think that we started without this and it got added at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weren't the scm tools dropped since then? 👀 if it's related to setuptools_scm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Build succeeded. ✔️ pre-commit SUCCESS in 1m 57s |
.github/workflows/pypi-publish.yml
Outdated
| - name: Get history and tags for SCM versioning to work | ||
| run: | | ||
| git fetch --prune --unshallow | ||
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not pass fetch-depth to the checkout action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually checking the options they have, but I was not able to combine it with the first fetch --prune --unshallow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of that command? If you simply want to do a full clone so that setuptools_scm works properly, you can set fetch-depth to 0. Or is there something else here?
Signed-off-by: Matej Focko <[email protected]>
|
Build succeeded. ✔️ pre-commit SUCCESS in 1m 57s |
Related to packit/private#32