Skip to content

Commit b636124

Browse files
committed
rf: import PRE_INIT_COMMIT_SHA from datalad_core
In an effort to trim dependencies on legacy datalad.
1 parent 5961e47 commit b636124

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

datalad_next/consts/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
``True`` if executed on the Windows platform.
1717
"""
1818

19+
__all__ = [
20+
'COPY_BUFSIZE',
21+
'PRE_INIT_COMMIT_SHA',
22+
'on_linux',
23+
'on_windows',
24+
]
25+
1926
# import from "utils", but these really are constants
2027
from datalad.utils import (
2128
on_linux,
@@ -29,4 +36,4 @@
2936
# from PY3.10
3037
COPY_BUFSIZE = 1024 * 1024 if on_windows else 64 * 1024
3138

32-
from datalad.consts import PRE_INIT_COMMIT_SHA
39+
from datalad_core.consts import PRE_INIT_COMMIT_SHA

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ classifiers = [
3636
dependencies = [
3737
"annexremote",
3838
"datalad >= 0.18.4",
39+
"datalad-core",
3940
"datasalad >= 0.5.0",
4041
"humanize",
4142
"more-itertools",

0 commit comments

Comments
 (0)