-
Notifications
You must be signed in to change notification settings - Fork 10
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
Provide replacement for SSHRemoteIO
based on shell
#655
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #655 +/- ##
==========================================
+ Coverage 92.47% 93.26% +0.78%
==========================================
Files 183 178 -5
Lines 12346 12510 +164
Branches 1890 1890
==========================================
+ Hits 11417 11667 +250
+ Misses 727 651 -76
+ Partials 202 192 -10 ☔ View full report in Codecov by Sentry. |
f65050c
to
ecb516e
Compare
SSHRemoteIO
based on shell
Imports `SSHRemoteIO` implementation from datalad v1.0.1
Now it cd's into a root directory it has been given, rather than assuming all paths are always absolute.
This takes out all of the old remote shell implementation, and uses the new one. It does not touch the get/put implementations (yet). They can also be done with the new shell feature, but that is a different problem.
This revealed a missing quoting of paths in the remote command, and is fixed.
…load` This is not complete, because it does not do progress reporting yet. See datalad#659
In particular the archive handling.
A standard handler for releasing resources, compatible with `contextlib.closing()`.
This is using the `close()` handler introduced with the previous commit.
This commit ensures that the `dst`-parameter to `datalad_next.shell.posix.download` and the `src`-parameter in `datalad_next.shell.posix.upload` are of type `Path`.
This commit fixes a mypy-error.
I have rebased this branch on I am taking this PR out of draft mode. It is a worthwhile update in the current form. Further (windows-related) update should come in separate PRs. |
TODO
ora_remote
datalad_next.shell.operations.posix.download
#660)SSHRemoteIO
based onshell
#655 (comment)-> Same throughput as
scp
Ping #666