-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Extend] version-automation to rockcraft.yaml
#636
[Extend] version-automation to rockcraft.yaml
#636
Conversation
@sergio-costas, pls review this PR also |
@sergio-costas, any update on this PR? |
Sorry, didn't receive the notification. I'll check it now. |
@@ -62,6 +62,32 @@ def process_snap_version_data(upstreamversion, snap_name, version_schema, has_up | |||
return f"{upstreamversion}-{packagerelease}" | |||
|
|||
|
|||
def process_rock_version_data(upstreamversion, prevversion, version_schema, has_update): |
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.
upstream_version
and previous_version
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.
Updated
return None | ||
upstreamversion = match.group(1).replace('_', '.') | ||
|
||
def version_tuple(v): |
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.
Do we really need to create a function just for 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.
Removed function and now using inline tuple to resolve version
… tuple map function
def version_tuple(v): | ||
return tuple(map(int, v.split('.'))) | ||
|
||
upstream_tuple = version_tuple(upstream_version) |
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.
Ehm... Is this a problem in github, or the function is really still there?
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.
Sorry I forgot to remove that functions... Now fixed it
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.
Looks fine.
Thanks for the changes. |
Extended
desktop-snap
to supportversion automation
inrockraft.yaml
also.rock-version-schema
, and all other rules will follow as insnap
, such as:metadata
, and theleading upstream component
should be defined in theadopt-info
section.<upstream-version>-<package-release>
.