-
Notifications
You must be signed in to change notification settings - Fork 84
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
chore(python): configure release-please on previous major versions #1369
Conversation
@busunkim96 , I applied the update on a repo that doesn't have a previous major version. There are no branches listed under
|
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.
Added one observation, otherwise LGTM
tests/test_python_library.py
Outdated
# NOTE: this section is generated by synthtool.languages.python | ||
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py | ||
branches: | ||
- branch: v1 | ||
handleGHRelease: true | ||
releaseType: python | ||
- branch: v0 | ||
handleGHRelease: true | ||
releaseType: python""" |
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 think this indentation is wrong. branches
should not have leading spaces
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.
Fixed!
…ool into py-release-from-branch
synthtool/languages/python.py
Outdated
Path(".github/release-please.yml").write_text( | ||
release_please_yml + branch_release_config | ||
) |
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.
Is this idempotent? It looks like it will just keep appending to the file.
Also, it might be cleaner to build it as a dict and export to yaml.
Read the current Python library release version from the
setup.py
orversion.py
and add release-please branch configs for all previous major versions.Repos where I tested this:
owlbot.py
, version inversion.py
)owlbot.py
)owlbot.py
)