Skip to content

Commit 379e8cd

Browse files
committed
BF+RF: centralize min datalad version specification within info.py
1 parent fe19e94 commit 379e8cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

heudiconv/external/dlad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
lgr = logging.getLogger(__name__)
1212

13-
MIN_VERSION = '0.12.4'
13+
from ..info import MIN_DATALAD_VERSION as MIN_VERSION
1414

1515

1616
def prepare_datalad(studydir, outdir, sid, session, seqinfo, dicoms, bids):

heudiconv/info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
'inotify',
3838
]
3939

40+
MIN_DATALAD_VERSION = '0.12.4'
4041
EXTRA_REQUIRES = {
4142
'tests': TESTS_REQUIRES,
4243
'extras': [], # Requires patched version ATM ['dcmstack'],
43-
'datalad': ['datalad >=0.12.3']
44+
'datalad': ['datalad >=%s' % MIN_DATALAD_VERSION]
4445
}
4546

4647
# Flatten the lists

0 commit comments

Comments
 (0)