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
[Python] Wrong SCM version detection both in setup.py and crossbow #28789
Comments
Krisztian Szucs / @kszucs: An alternative could be to manually calculate the distance from the merge-base of the current commit and the latest tag where the latest should be defined by |
Krisztian Szucs / @kszucs: Another approach could be to merge (not rebase) the release branches to the master branch so git describe can reach the tags. cc @pitrou |
Joris Van den Bossche / @jorisvandenbossche: |
Krisztian Szucs / @kszucs: |
Joris Van den Bossche / @jorisvandenbossche: |
Krisztian Szucs / @kszucs: cc @kou |
Joris Van den Bossche / @jorisvandenbossche: (so I would personally not be too pedantic and tie the tag to the version bump commit, which seems most logical to me, and just try to do it not too far after the branching point) |
Ideally yes, though we usually create multiple release candidates. We would need to first create a commit on master, then create the release branch from the preceding commit for the first RC. For every subsequent RCs we would need to cherry-pick commits (potentially required patches) from master and regenerate the changelog again to the release branch, then merge that changelog back to the master :) It's more logical to me as well to tag the version bump commit, though the in-between commits will have wrong versions generated (which we could live with IMO). |
Joris Van den Bossche / @jorisvandenbossche: |
Krisztian Szucs / @kszucs: |
Kouhei Sutou / @kou: |
Krisztian Szucs / @kszucs: |
Wanted to install nightly wheels for a rust integration test when I noticed that the nightly wheels get produced with base version 3.0.0.
This is due to the recently changed release workflow. Now we're creating tags from release branches without a post rebase step, so setuptools_scm fails to find the correct version number on diverged branches.
Reporter: Krisztian Szucs / @kszucs
Assignee: Krisztian Szucs / @kszucs
Note: This issue was originally created as ARROW-13083. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: