Skip to content

Commit

Permalink
Merge pull request #129 from datalad/fix-metadata
Browse files Browse the repository at this point in the history
Fix metadata import and dependency on datalad-deprecated
  • Loading branch information
bpoldrack committed Oct 28, 2022
2 parents 8a49940 + d654447 commit d7c65ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datalad_crawler/pipelines/tests/test_openfmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,13 @@ def hexsha(l):

try:
# this is the new way
from datalad.metadata.metadata import get_ds_aggregate_db_locations
from datalad_deprecated.metadata.metadata import get_ds_aggregate_db_locations
ds = Dataset('.')
dbloc, objbase = get_ds_aggregate_db_locations(ds)
dbloc = op.relpath(dbloc, start=ds.path)
except ImportError:
# this stopped working in early 2019 versions of datalad
from datalad.metadata.metadata import agginfo_relpath
from datalad_deprecated.metadata.metadata import agginfo_relpath
dbloc = agginfo_relpath

target_files = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def findsome(subdir, extensions):
],
'tests': [
'datalad>=0.17.0',
'datalad-deprecated',
'datalad-deprecated>=0.2.6',
'pytest>=7.0',
'pytest-cov',
'mock',
Expand Down

0 comments on commit d7c65ad

Please sign in to comment.