fs.sshfs icon indicating copy to clipboard operation
fs.sshfs copied to clipboard

Setup AppVeyor CI to test on Windows

Open althonos opened this issue 8 years ago • 8 comments

Since it was confirmed there is a more than zero person that are using this library on a Windows machine, it would be interesting to have some tests running in a Windows environment.

The trouble is, our tests run on Docker, and I've no idea how difficult it will be to setup Docker inside AppVeyor.

Feel free to add below any resource that may help

althonos avatar Oct 26 '17 07:10 althonos

I am not experienced with that, but we have it now on https://anaconda.org/conda-forge/fs.sshfs for windows too :)

and may be someone could extract the pieces on https://github.com/conda-forge/fs.sshfs-feedstock

ReimarBauer avatar Dec 29 '17 22:12 ReimarBauer

Sorry for necromancing this issue, I'm very interested in using this, but I haven't bothered putting in the time into it yet since I can't find any info about if it works on windows or not. If it does, could this be stated in some fashion in the readme.md so it's visible ?

ghost avatar Oct 17 '18 17:10 ghost

@source83 : The library in itself is platform agnostic, so there's a 99% chance it works on Windows. I'd just like to setup AppVeyor to make that 100% :wink:

althonos avatar Oct 17 '18 21:10 althonos

Thanks @althonos, another question: Does it actually "mount" the drive or is the remote FS only accessible by the python object ? As in here on windows, would it mount it up as a drive (g:,h:....)

ghost avatar Oct 18 '18 16:10 ghost

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem.

from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

ReimarBauer avatar Oct 21 '18 14:10 ReimarBauer

Sorry for necromancing this issue, I'm very interested in using this, but I haven't bothered putting in the time into it yet since I can't find any info about if it works on windows or not. If it does, could this be stated in some fashion in the readme.md so it's visible ?

We have builded it for windows too on conda-forge. https://anaconda.org/conda-forge/fs.sshfs

This setup may help https://github.com/conda-forge/fs.sshfs-feedstock/blob/master/appveyor.yml

ReimarBauer avatar Oct 21 '18 14:10 ReimarBauer

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem.

from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

I think you answered my question here. I was hoping to use this as a way to "mount" say d: to "/home/myuser/myfolder" like is possible with sshfs in windows cmd. In linux, this can be done in fstab or on the command line (no problem there). The problem I'm seeing with the current method I'm using of sshfs on the windows cmd is that the "mount" only last as long as the cmd window is open/running since it doesn't exit after running the command. I was hoping to make a simple tray ui where I could "mount" or "unmount" as needed and access the "mounted" filesystem tree from the drive specified.

ghost avatar Nov 03 '18 19:11 ghost

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem. from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

I think you answered my question here. I was hoping to use this as a way to "mount" say d: to "/home/myuser/myfolder" like is possible with sshfs in windows cmd.

mount is a concept of accessing filesystems. pyfilesystem is a different approach for accessing files anywhere. This does not need a mount beforehand. Of course pyfilesystem can also use files on mounted directories, but a mount is not mandatory.

In linux, this can be done in fstab or on the command line (no problem there). The problem I'm seeing with the current method I'm using of sshfs on the windows cmd is that the "mount" only last as long as the cmd window is open/running since it doesn't exit after running the command. I was hoping to make a simple tray ui where I could "mount" or "unmount" as needed and access the "mounted" filesystem tree from the drive specified.

I started with a qt helper application, this can dynamicly use fs pathes. Maybe you are looking for something like that?

https://github.com/ReimarBauer/fs_filepicker

conda create -n fs_filepicker_env fs_filepicker
source activate fs_filepicker_env
fs_filepicker -u ftp://ftp.de.debian.org/debian

Besides sshfs I also use webdav to my nextcloud instance

regards Reimar

ReimarBauer avatar Nov 04 '18 07:11 ReimarBauer