-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Snap #2778
Snap #2778
Conversation
@casperdcl Get some sleep from the... Nap Store... * sorry * 🙂 |
@casperdcl https://snapcraft.io/dvc Looks great! 🔥 |
fyi
|
also I need a list of your ubuntu one email addresses (you should sign up for a dev account via https://dashboard.snapcraft.io/) so I can add admin access to the snap for your accounts. |
@casperdcl I actually have an ubuntu one account, tied to my gmail email (see my profile). |
@casperdcl Do I understand correctly, that this can automatically deploy to snap on every merged PR (for |
So yes, we could do all of:
The last one would make it pretty easy for people to test out feature-branches... |
Sounds great! No need to worry about feature branches, as we don't have those :) At least for now. master(for edge) and tags(for stable) would be perfect for now. If I understand |
README.rst
Outdated
|
||
.. code-block:: bash | ||
|
||
snap install dvc |
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.
So no additional flags needed for now? I'm completely lost with that classic
approval. Is this even going to work without that approval?
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 some explicit commands which users would need to run to grant permission (classic
would grant everything)
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 haven't tested all functionality so there's likely a few permissions missing...
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 just did all of https://dvc.org/doc/tutorials/versioning and only got stuck at the end with dvc run
since with strict
confinement there's no way to access host system binaries (including e.g. python
). Not something we can fix without --classic
...
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.
Isn't there a way to explicitly tell snap to install with "classic" permissions even if it is dangerous?
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 snap won't be auto-downloadable (snap install --dangerous --classic dvc
won't work). Users would have to download the snap file from the pending approval section (might even need logging in?) or from github releases and then snap install --dangerous --classic <dvc_VER.snap>
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.
Maybe the latter is the only feasible option for now.
argh I'm close to giving up. Debugged all the In any case @efiop I'd recommend removing installation instructions from the readme for now pending |
@casperdcl Who "they"? Don't see any reaction from snap guys on the forum. |
The automatic review bot runs checks and it turns out that even when using |
@casperdcl Looks good, just one more comment about README ^ . |
- didn't work - almost completely reverts c94acdf
@efiop done I think |
@casperdcl should we review and update our docs for linux? or are we waiting for an official approval? |
Updated the readme in this PR but waiting for approval (#2760 (comment)) before going further I think |
@casperdcl got it! Snap looks cool 😎 thanks for the effort ... when it's done may be it will be enough to get rid of pyinstaller indeed. |
Hah I'm not sure that'll die any time soon. In the words of Joshua Bloch, "APIs are forever," and I think installation methods fall under the same umbrella, unfortunately. |
:) @casperdcl you are breaking my last hope :( |
Hey, maaaybe in a year I'll consider dropping support for py2.6 in the packages I maintain. It's not hopeless; just hopeslow. |
stage: check # TODO: remove before merge
from.travis.yml
snapcraft.yml
adddeploy.provider: snap
in.travis.yml
PKG = "snap"
snap
s auto-update themselvesadd iconfix travisgssapi
buildminimise build (maybe don't use python plugin?)classic
approvalgit
(easy)strict
(hard)git
(dvc.git
)plugs
home
mount-observe
network-control
removable-media
system-files
SNAP_TOKEN
to travis env var configedge
channel)stable
rather than justedge
on: tags
->stable
or(<tag>/stable
or bothsnap install dvc --classic
)branch: master
->edge
(snap install dvc --classic --edge
)branch: <other>
->edge/<other>
though personally I prefer
which I may have possibly contributed as a badge simple-icons/simple-icons#1215 😛
Before final approval, though, you can still test (after installing
snap
) by downloading from https://dashboard.snapcraft.io/snaps/dvc/revisions/6/download and doingsnap install --dangerous --classic <filename.snap>