Skip to content

Commit

Permalink
Define public API for url_operations
Browse files Browse the repository at this point in the history
This implements the plan declared at
#613 (comment)

A dedicated list of components is exposed at the package's top-level,
and only that. All other functionality and imports have been move to
package-internal files.

All other, now undesired, top-level imports have been annotated and
scheduled for removal with the v2.0 release.
  • Loading branch information
mih committed Feb 5, 2024
1 parent bc530e3 commit 36dec52
Show file tree
Hide file tree
Showing 12 changed files with 487 additions and 432 deletions.
2 changes: 1 addition & 1 deletion datalad_next/annexremotes/tests/test_uncurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
UrlOperationsRemoteError,
IncompleteResultsError,
)
from datalad_next.url_operations.any import AnyUrlOperations
from datalad_next.url_operations import AnyUrlOperations

from ..uncurl import (
RemoteError,
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/annexremotes/uncurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
UrlOperationsRemoteError,
UrlOperationsResourceUnknown,
)
from datalad_next.url_operations.any import AnyUrlOperations
from datalad_next.url_operations import AnyUrlOperations
from datalad_next.utils import ensure_list

from . import (
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/commands/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
WithDescription,
)
from datalad_next.constraints.dataset import EnsureDataset
from datalad_next.url_operations.any import AnyUrlOperations
from datalad_next.url_operations import AnyUrlOperations

lgr = getLogger('datalad.local.download')

Expand Down
Loading

0 comments on commit 36dec52

Please sign in to comment.