-
Notifications
You must be signed in to change notification settings - Fork 2
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
Import candidate: special remote tooling #7
Comments
I agree with everything. Especially a proper test environment for special remote implementation would be a big leap forward. Below are a few out-of-order thoughts and observations regarding special remotes and general code structure:
|
Ah, that is an excellent idea!! |
FWIW we had a flavor of "git-annex independent driver" for testing purposes in the core in the past, last seen around https://github.com/datalad/datalad/blob/0.15.2/datalad/customremotes/tests/test_base.py#L129 . So may be some ideas there could be reincarnated. |
The datalad-next entry point to this code is https://github.com/datalad/datalad-next/tree/main/datalad_next/annexremotes and strong dependencies exist on the
annexremote
package, and pieces in https://github.com/datalad/datalad/tree/maint/datalad/customremotes: the base classSpecialRemote
and themain()
entrypoint for all special remotes.This is a challenging piece (in a good way), because it will bring up a number of questions re encapsulation (how much datalad-logic should be in the resulting implementation?), and it should sharpen the concept of this library going through them.
Moreover, the special remote code in datalad-core is heavily patched already, and consolidating these changes into a reusable implementation would be of high value.
Discussion items:
main()
ui.set_backend('annex')
) -- is this even necessary still? can it be implemented within the datalad package via some kind of generic setup-hook mechanism?git annex testremote
).The text was updated successfully, but these errors were encountered: