-
-
Notifications
You must be signed in to change notification settings - Fork 44
Further automation for releasing cherry-picker.py #5
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
Comments
GitMate.io thinks possibly related issues are python/core-workflow#113 (Questions about cherry-picker from Windows never-venv user), https://github.com/python/core-workflow/issues/268 ([cherry-picker] [idea 💡] Extend backport sources), python/core-workflow#249 ([cherry-picker] Document config options), python/core-workflow#88 (Make |
workflow commentsSo, in my projects based on pure setuptools with setuptools-scm plugin I don't have "created the release branch" step at all.
This is redundant in my flow because setuptools_scm identifies the current version as vLAST_TAG.dev0+commit_hash (configurable) at any commit. it's just TAG for tagged commits. flitI've checked its source code promtly and found out that it doesn't support plugins for redefining the way of identifying version. But it looks like I can easily extend it injecting additional code (from setuptools-scm) here: https://github.com/takluyver/flit/blob/master/flit/common.py#L117 workaroundI could also call setuptools-scm manually from CI and then generate While this is okayish solution, there's a drawback: it'll confuse |
workaround 2I've noticed that flit has a fallback code for actually evaluating module/package to get the version, so theoretically we could put some code there, which would then dynamically calculate current version. |
I've sent a PR to flit: pypa/flit#199 |
It seems like the maintainer doesn't want this feature. Let's see if I can talk him into adding a hook point at least. The code there is messy however :( |
Thanks. I suspected that it would be rejected by flit. Thanks for the effort though. Generating My thinking is:
|
I've prototyped a change to Regarding confusion, it's more about missing manual step of regeneration of this module. |
I just noticed #285 and maybe it's a bit late but I realized why I didn't feel like the approach of having tags outside of master branch is the right thing to do. |
@Mariatta see #287 for a preview of SCM-based versioning. Feel free to test that locally. You can try following:
|
So it looks like |
Thanks for investigating. I want to stick with flit for now. |
So what about other workarounds? We could generate Also, I saw flows, where CI/CD, upon releasing new version, created a new commit on top of master with just a version bump (to new |
You might be interested in how it's done in |
Releasing is now automated via Trusted Publishing: |
Thanks to #262 (@webknjaz) I can publish to PyPI from Travis CI, all within GitHub web interface, and without going to the command line.
But I found myself still doing several manual steps:
__init__.py
)Can this be made even simpler? Perhaps I was doing unnecessary steps?
I think that creating the release branch, dropping ".devX", and creating tag can be fully automated somehow.
The text was updated successfully, but these errors were encountered: