-
Notifications
You must be signed in to change notification settings - Fork 448
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
many: support for stage-snaps #2468
Conversation
83f0d47
to
19de996
Compare
Add support for stage-snaps, with support for advanced grammar. Support for a snap source was added to be able to extract the downloaded snaps. LP: #1805214 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
19de996
to
81f0440
Compare
Codecov Report
@@ Coverage Diff @@
## master #2468 +/- ##
========================================
Coverage ? 89.9%
========================================
Files ? 198
Lines ? 13361
Branches ? 2021
========================================
Hits ? 12012
Misses ? 925
Partials ? 424
Continue to review full report at Codecov.
|
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 clean and well structured, I just found a few points to nitpick.
snapcraft/internal/sources/_snap.py
Outdated
@@ -0,0 +1,116 @@ | |||
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- | |||
# | |||
# Copyright (C) 2019 Canonical |
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.
Shouldn't that be "Canonical Ltd"?
@@ -1,6 +1,6 @@ | |||
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- | |||
# | |||
# Copyright (C) 2015-2017 Canonical Ltd | |||
# Copyright (C) 2015-2017, 2019 Canonical Ltd |
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'm unsure if copyright notices must have this year-by-year granularity, or just start to most recent modification is enough. I use the latter in my works.
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.
Oh, we had a long discussion with legal on how to do it, maybe I can pull out the thread
snapcraft/internal/sources/errors.py
Outdated
|
||
fmt = ( | ||
"The snap file used does not contain valid data. " | ||
"Ensure a proper snap file is passed for .snap files " |
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.
The wording here sounds a bit strange. Perhaps something like "The snap file does not contain valid data. Ensure the source lists a proper snap file" could be better?
Add support for stage-snaps, with support for advanced grammar. Support for a snap
source was added to be able to extract the downloaded snaps.
LP: #1805214
Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com
./runtests.sh static
?./runtests.sh tests/unit
?