Skip to content
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

always define version in projects #732

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Conversation

saste
Copy link

@saste saste commented Nov 16, 2022

Always define version in projects, use the version to compute the file archive name. Increase reliability of the version computation, since it cannot be always be computed from the archive name (is much simpler to do the opposite).

@@ -27,7 +27,8 @@ def __init__(self):
Project.__init__(
self,
"adwaita-icon-theme",
archive_url="https://download.gnome.org/sources/adwaita-icon-theme/43/adwaita-icon-theme-43.tar.xz",
version="43",
archive_url="https://download.gnome.org/sources/adwaita-icon-theme/{version}/adwaita-icon-theme-43.tar.xz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess {version} also in the name

@saste saste force-pushed the wip/review-versioning branch 3 times, most recently from e25791c to 2a4c44f Compare November 16, 2022 11:05
@danyeaw
Copy link
Member

danyeaw commented Nov 17, 2022

Really nice contribution @saste! This will make updating versions sooo much easier. Once you update it for @pbor, let's get this merged in.

Always define version in projects, use the version to compute the file
archive name.

Increase accuracy of the computed version, since it cannot be always
be computed from the archive name, while it's always possible to use the
version information to define the archive name/url.
@pbor pbor merged commit 4e29908 into wingtk:main Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants