Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'], chrootPath='/var/lib/mock/f39-build-1999747-43957/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1702252800 Wrote: /builddir/build/SRPMS/python-exdir-0.4.2-1.fc39.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'], chrootPath='/var/lib/mock/f39-build-1999747-43957/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1702252800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74jZzk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf exdir-0.4.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/exdir-0.4.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd exdir-0.4.2 + rm -rf /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python-exdir-0.4.2 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/bin/git apply --index --reject -p1 - + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/156.patch Checking patch exdir/__init__.py... Checking patch exdir/_version.py... Checking patch versioneer.py... Applied patch exdir/__init__.py cleanly. Applied patch exdir/_version.py cleanly. Applied patch versioneer.py cleanly. + /usr/bin/git commit -q -m 156.patch --author 'rpm-build ' + git rm -r 3rdparty rm '3rdparty/h5py-LICENSE' + python3 versioneer.py setup creating exdir/_version.py exdir/__init__.py unmodified + git commit -m 'Did someone say versioneer? Into the void disappear!' [rpm-build 592ca68] Did someone say versioneer? Into the void disappear! 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 3rdparty/h5py-LICENSE + git tag -a -m python-exdir-0.4.2-1.fc39 0.4.2 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.PdowUo + umask 022 + cd /builddir/build/BUILD + cd exdir-0.4.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir --output /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires -r requirements.in Handling h5py from requirements file requirements.in Requirement not satisfied: h5py Handling numpy from requirements file requirements.in Requirement not satisfied: numpy Handling pytest from requirements file requirements.in Requirement not satisfied: pytest Handling quantities from requirements file requirements.in Requirement not satisfied: quantities Exiting dependency generation pass: all requirements files + cat /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-exdir-0.4.2-1.fc39.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'], chrootPath='/var/lib/mock/f39-build-1999747-43957/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1702252800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tT2bI8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf exdir-0.4.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/exdir-0.4.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd exdir-0.4.2 + rm -rf /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python-exdir-0.4.2 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/bin/git apply --index --reject -p1 - + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/156.patch Checking patch exdir/__init__.py... Checking patch exdir/_version.py... Checking patch versioneer.py... Applied patch exdir/__init__.py cleanly. Applied patch exdir/_version.py cleanly. Applied patch versioneer.py cleanly. + /usr/bin/git commit -q -m 156.patch --author 'rpm-build ' + git rm -r 3rdparty rm '3rdparty/h5py-LICENSE' + python3 versioneer.py setup creating exdir/_version.py exdir/__init__.py unmodified + git commit -m 'Did someone say versioneer? Into the void disappear!' [rpm-build c324ca4] Did someone say versioneer? Into the void disappear! 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 3rdparty/h5py-LICENSE + git tag -a -m python-exdir-0.4.2-1.fc39 0.4.2 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.M5nYvG + umask 022 + cd /builddir/build/BUILD + cd exdir-0.4.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir --output /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires -r requirements.in Handling h5py from requirements file requirements.in Requirement satisfied: h5py (installed: h5py 3.10.0) Handling numpy from requirements file requirements.in Requirement satisfied: numpy (installed: numpy 1.26.0) Handling pytest from requirements file requirements.in Requirement satisfied: pytest (installed: pytest 7.3.2) Handling quantities from requirements file requirements.in Requirement satisfied: quantities (installed: quantities 0.14.1) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 67.7.2) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.40.0) running egg_info creating exdir.egg-info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt writing manifest file 'exdir.egg-info/SOURCES.txt' reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.40.0) running dist_info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/exdir-0.4.2/exdir-0.4.2.dist-info' Handling numpy (>=1.20) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: numpy (>=1.20) (installed: numpy 1.26.0) Handling ruamel.yaml (>=0.16) from hook generated metadata: Requires-Dist (exdir) Requirement not satisfied: ruamel.yaml (>=0.16) Handling six (>=1.15) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: six (>=1.15) (installed: six 1.16.0) + cat /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires + rm -rfv exdir-0.4.2.dist-info/ removed 'exdir-0.4.2.dist-info/LICENSE' removed 'exdir-0.4.2.dist-info/top_level.txt' removed 'exdir-0.4.2.dist-info/METADATA' removed directory 'exdir-0.4.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-exdir-0.4.2-1.fc39.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'], chrootPath='/var/lib/mock/f39-build-1999747-43957/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1702252800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9ljnpG + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf exdir-0.4.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/exdir-0.4.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd exdir-0.4.2 + rm -rf /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/exdir-0.4.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python-exdir-0.4.2 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/156.patch + /usr/bin/git apply --index --reject -p1 - Checking patch exdir/__init__.py... Checking patch exdir/_version.py... Checking patch versioneer.py... Applied patch exdir/__init__.py cleanly. Applied patch exdir/_version.py cleanly. Applied patch versioneer.py cleanly. + /usr/bin/git commit -q -m 156.patch --author 'rpm-build ' + git rm -r 3rdparty rm '3rdparty/h5py-LICENSE' + python3 versioneer.py setup creating exdir/_version.py exdir/__init__.py unmodified + git commit -m 'Did someone say versioneer? Into the void disappear!' [rpm-build 84f6c58] Did someone say versioneer? Into the void disappear! 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 3rdparty/h5py-LICENSE + git tag -a -m python-exdir-0.4.2-1.fc39 0.4.2 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.z3FBKs + umask 022 + cd /builddir/build/BUILD + cd exdir-0.4.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir --output /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires -r requirements.in Handling h5py from requirements file requirements.in Requirement satisfied: h5py (installed: h5py 3.10.0) Handling numpy from requirements file requirements.in Requirement satisfied: numpy (installed: numpy 1.26.0) Handling pytest from requirements file requirements.in Requirement satisfied: pytest (installed: pytest 7.3.2) Handling quantities from requirements file requirements.in Requirement satisfied: quantities (installed: quantities 0.14.1) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 67.7.2) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.40.0) running egg_info creating exdir.egg-info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt writing manifest file 'exdir.egg-info/SOURCES.txt' reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.40.0) running dist_info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/exdir-0.4.2/exdir-0.4.2.dist-info' Handling numpy (>=1.20) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: numpy (>=1.20) (installed: numpy 1.26.0) Handling ruamel.yaml (>=0.16) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: ruamel.yaml (>=0.16) (installed: ruamel.yaml 0.18.2) Handling six (>=1.15) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: six (>=1.15) (installed: six 1.16.0) + cat /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires + rm -rfv exdir-0.4.2.dist-info/ removed 'exdir-0.4.2.dist-info/LICENSE' removed 'exdir-0.4.2.dist-info/top_level.txt' removed 'exdir-0.4.2.dist-info/METADATA' removed directory 'exdir-0.4.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-exdir-0.4.2-1.fc39.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'], chrootPath='/var/lib/mock/f39-build-1999747-43957/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1702252800 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.qawv7J + umask 022 + cd /builddir/build/BUILD + cd exdir-0.4.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir --output /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires -r requirements.in Handling h5py from requirements file requirements.in Requirement satisfied: h5py (installed: h5py 3.10.0) Handling numpy from requirements file requirements.in Requirement satisfied: numpy (installed: numpy 1.26.0) Handling pytest from requirements file requirements.in Requirement satisfied: pytest (installed: pytest 7.3.2) Handling quantities from requirements file requirements.in Requirement satisfied: quantities (installed: quantities 0.14.1) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 67.7.2) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.40.0) running egg_info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.40.0) running dist_info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/exdir-0.4.2/exdir-0.4.2.dist-info' Handling numpy (>=1.20) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: numpy (>=1.20) (installed: numpy 1.26.0) Handling ruamel.yaml (>=0.16) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: ruamel.yaml (>=0.16) (installed: ruamel.yaml 0.18.2) Handling six (>=1.15) from hook generated metadata: Requires-Dist (exdir) Requirement satisfied: six (>=1.15) (installed: six 1.16.0) + cat /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-buildrequires + rm -rfv exdir-0.4.2.dist-info/ removed 'exdir-0.4.2.dist-info/LICENSE' removed 'exdir-0.4.2.dist-info/top_level.txt' removed 'exdir-0.4.2.dist-info/METADATA' removed directory 'exdir-0.4.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.t4yNEf + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd exdir-0.4.2 + mkdir -p /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir Processing /builddir/build/BUILD/exdir-0.4.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info writing /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-modern-metadata-pufncjsr/exdir-0.4.2.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: exdir Building wheel for exdir (pyproject.toml): started Running command Building wheel for exdir (pyproject.toml) running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/exdir copying exdir/_version.py -> build/lib/exdir copying exdir/__init__.py -> build/lib/exdir creating build/lib/exdir/utils copying exdir/utils/path.py -> build/lib/exdir/utils copying exdir/utils/__init__.py -> build/lib/exdir/utils copying exdir/utils/display.py -> build/lib/exdir/utils creating build/lib/exdir/plugin_interface copying exdir/plugin_interface/plugin_interface.py -> build/lib/exdir/plugin_interface copying exdir/plugin_interface/__init__.py -> build/lib/exdir/plugin_interface creating build/lib/exdir/plugins copying exdir/plugins/numpy_attributes.py -> build/lib/exdir/plugins copying exdir/plugins/quantities.py -> build/lib/exdir/plugins copying exdir/plugins/__init__.py -> build/lib/exdir/plugins copying exdir/plugins/git_lfs.py -> build/lib/exdir/plugins creating build/lib/exdir/core copying exdir/core/attribute.py -> build/lib/exdir/core copying exdir/core/dataset.py -> build/lib/exdir/core copying exdir/core/exdir_file.py -> build/lib/exdir/core copying exdir/core/mode.py -> build/lib/exdir/core copying exdir/core/validation.py -> build/lib/exdir/core copying exdir/core/raw.py -> build/lib/exdir/core copying exdir/core/constants.py -> build/lib/exdir/core copying exdir/core/exdir_object.py -> build/lib/exdir/core copying exdir/core/__init__.py -> build/lib/exdir/core copying exdir/core/group.py -> build/lib/exdir/core running egg_info writing exdir.egg-info/PKG-INFO writing dependency_links to exdir.egg-info/dependency_links.txt writing requirements to exdir.egg-info/requires.txt writing top-level names to exdir.egg-info/top_level.txt reading manifest file 'exdir.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'exdir.egg-info/SOURCES.txt' /usr/lib/python3.12/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'exdir.static' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'exdir.static' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'exdir.static' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'exdir.static' to be distributed and are already explicitly excluding 'exdir.static' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) creating build/lib/exdir/static copying exdir/static/index.js -> build/lib/exdir/static UPDATING build/lib/exdir/_version.py set build/lib/exdir/_version.py to '0.4.2' installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/exdir creating build/bdist.linux-riscv64/wheel/exdir/utils copying build/lib/exdir/utils/path.py -> build/bdist.linux-riscv64/wheel/exdir/utils copying build/lib/exdir/utils/__init__.py -> build/bdist.linux-riscv64/wheel/exdir/utils copying build/lib/exdir/utils/display.py -> build/bdist.linux-riscv64/wheel/exdir/utils copying build/lib/exdir/_version.py -> build/bdist.linux-riscv64/wheel/exdir creating build/bdist.linux-riscv64/wheel/exdir/static copying build/lib/exdir/static/index.js -> build/bdist.linux-riscv64/wheel/exdir/static creating build/bdist.linux-riscv64/wheel/exdir/plugin_interface copying build/lib/exdir/plugin_interface/plugin_interface.py -> build/bdist.linux-riscv64/wheel/exdir/plugin_interface copying build/lib/exdir/plugin_interface/__init__.py -> build/bdist.linux-riscv64/wheel/exdir/plugin_interface creating build/bdist.linux-riscv64/wheel/exdir/plugins copying build/lib/exdir/plugins/numpy_attributes.py -> build/bdist.linux-riscv64/wheel/exdir/plugins copying build/lib/exdir/plugins/quantities.py -> build/bdist.linux-riscv64/wheel/exdir/plugins copying build/lib/exdir/plugins/__init__.py -> build/bdist.linux-riscv64/wheel/exdir/plugins copying build/lib/exdir/plugins/git_lfs.py -> build/bdist.linux-riscv64/wheel/exdir/plugins copying build/lib/exdir/__init__.py -> build/bdist.linux-riscv64/wheel/exdir creating build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/attribute.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/dataset.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/exdir_file.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/mode.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/validation.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/raw.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/constants.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/exdir_object.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/__init__.py -> build/bdist.linux-riscv64/wheel/exdir/core copying build/lib/exdir/core/group.py -> build/bdist.linux-riscv64/wheel/exdir/core running install_data creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/share creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/share/jupyter creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/share/jupyter/nbextensions creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/share/jupyter/nbextensions/exdir copying exdir/static/index.js -> build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/share/jupyter/nbextensions/exdir creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter/nbconfig creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter/nbconfig/notebook.d copying jupyter-config/nbconfig/notebook.d/exdir.json -> build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter/nbconfig/notebook.d creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter/jupyter_notebook_config.d copying jupyter-config/jupyter_notebook_config.d/exdir.json -> build/bdist.linux-riscv64/wheel/exdir-0.4.2.data/data/etc/jupyter/jupyter_notebook_config.d running install_egg_info Copying exdir.egg-info to build/bdist.linux-riscv64/wheel/exdir-0.4.2-py3.12.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/exdir-0.4.2.dist-info/WHEEL creating '/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir/pip-wheel-8mni9l9h/.tmp-7zoaef19/exdir-0.4.2-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'exdir/__init__.py' adding 'exdir/_version.py' adding 'exdir/core/__init__.py' adding 'exdir/core/attribute.py' adding 'exdir/core/constants.py' adding 'exdir/core/dataset.py' adding 'exdir/core/exdir_file.py' adding 'exdir/core/exdir_object.py' adding 'exdir/core/group.py' adding 'exdir/core/mode.py' adding 'exdir/core/raw.py' adding 'exdir/core/validation.py' adding 'exdir/plugin_interface/__init__.py' adding 'exdir/plugin_interface/plugin_interface.py' adding 'exdir/plugins/__init__.py' adding 'exdir/plugins/git_lfs.py' adding 'exdir/plugins/numpy_attributes.py' adding 'exdir/plugins/quantities.py' adding 'exdir/static/index.js' adding 'exdir/utils/__init__.py' adding 'exdir/utils/display.py' adding 'exdir/utils/path.py' adding 'exdir-0.4.2.data/data/etc/jupyter/jupyter_notebook_config.d/exdir.json' adding 'exdir-0.4.2.data/data/etc/jupyter/nbconfig/notebook.d/exdir.json' adding 'exdir-0.4.2.data/data/share/jupyter/nbextensions/exdir/index.js' adding 'exdir-0.4.2.dist-info/LICENSE' adding 'exdir-0.4.2.dist-info/METADATA' adding 'exdir-0.4.2.dist-info/WHEEL' adding 'exdir-0.4.2.dist-info/top_level.txt' adding 'exdir-0.4.2.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Building wheel for exdir (pyproject.toml): finished with status 'done' Created wheel for exdir: filename=exdir-0.4.2-py3-none-any.whl size=28901 sha256=dcc1917a342e3607470a0399158ebec365abba54a5d12145cd340d1c2852e467 Stored in directory: /builddir/.cache/pip/wheels/c6/22/f6/850afbd4a6d93707f5c5d635341490a54db253ed130c4c020a Successfully built exdir + PYTHONPATH=.:.. + make -C docs SPHINXOPTS=-j8 html make: Entering directory '/builddir/build/BUILD/exdir-0.4.2/docs' Running Sphinx v6.2.1 WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English). RTD theme not installed, using default making output directory... done [autosummary] generating autosummary for: attributes.rst, dataset.rst, file.rst, group.rst, index.rst, installation.rst, plugins.rst, raw.rst building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 8 source files that are out of date updating environment: [new config] 8 added, 0 changed, 0 removed reading sources... [ 12%] attributes reading sources... [ 25%] dataset reading sources... [ 37%] file reading sources... [ 50%] group reading sources... [ 62%] index reading sources... [ 75%] installation reading sources... [ 87%] plugins reading sources... [100%] raw looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 14%] dataset writing output... [ 28%] file writing output... [ 42%] group writing output... [ 57%] index writing output... [ 71%] installation writing output... [ 85%] plugins writing output... [100%] raw generating indices... genindex done highlighting module code... [ 20%] exdir.core.attribute highlighting module code... [ 40%] exdir.core.dataset highlighting module code... [ 60%] exdir.core.exdir_file highlighting module code... [ 80%] exdir.core.group highlighting module code... [100%] exdir.core.raw writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 1 warning. The HTML pages are in _build/html. make: Leaving directory '/builddir/build/BUILD/exdir-0.4.2/docs' + rm -rf docs/_build/html/.doctrees docs/_build/html/.buildinfo -vf removed 'docs/_build/html/.buildinfo' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9kd6RQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch ++ dirname /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd exdir-0.4.2 ++ ls /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir/exdir-0.4.2-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple + specifier=exdir==0.4.2 + TMPDIR=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir exdir==0.4.2 Using pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /builddir/build/BUILD/exdir-0.4.2/pyproject-wheeldir Processing ./pyproject-wheeldir/exdir-0.4.2-py3-none-any.whl Installing collected packages: exdir Successfully installed exdir-0.4.2 + '[' -d /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib64/python3.12/site-packages '!=' /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch --record /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/RECORD --output /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir-0.4.2.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_PERCENTAGES_COUNT=2 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-modules --buildroot /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch --sitelib /usr/lib/python3.12/site-packages --sitearch /usr/lib64/python3.12/site-packages --python-version 3.12 --pyproject-record /builddir/build/BUILD/python-exdir-0.4.2-1.fc39.noarch-pyproject-record --prefix /usr exdir + mkdir -p -m 0755 /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/etc + mv -v /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/etc/jupyter /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/etc/jupyter renamed '/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/etc/jupyter' -> '/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/etc/jupyter' + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.4.2-1.fc39 --unique-debug-suffix -0.4.2-1.fc39.noarch --unique-debug-src-base python-exdir-0.4.2-1.fc39.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/exdir-0.4.2 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.elTs4T + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd exdir-0.4.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib64/python3.12/site-packages:/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/exdir-0.4.2/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.2.0 rootdir: /builddir/build/BUILD/exdir-0.4.2 collected 169 items tests/test_attr.py .FFFFFFFFFFFFFFFF.FFF [ 12%] tests/test_dataset.py FFFF.FFFFFFFFFFF..FFFFFF.FFF..FFFFFFFFFFFFFFFFF [ 40%] tests/test_file.py FFFFFF.......F...FFF..F.F. [ 55%] tests/test_group.py ...F..F.F.FFFFF.FFFF........FF...... [ 76%] tests/test_help_functions.py ...FFFFFF [ 82%] tests/test_numpy_attributes.py FFF [ 84%] tests/test_object.py .FF... [ 87%] tests/test_plugins.py .FFFFFF [ 91%] tests/test_quantities.py FFFFFFF.. [ 97%] tests/test_raw.py ..... [100%] =================================== FAILURES =================================== _________________________________ test_create __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create...d/pytest-0/test_create0/exdir_dir'), ) def test_create(setup_teardown_file): """Attribute creation by direct assignment.""" f = setup_teardown_file[3] > f.attrs["a"] = 4.0 tests/test_attr.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_create_dict _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_dict0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_c.../test_create_dict0/exdir_dir'), ) def test_create_dict(setup_teardown_file): f = setup_teardown_file[3] dictionary = {"a": 1.0, "b": 2.0, "c": 3.0} > f.attrs["d"] = dictionary tests/test_attr.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_to_dict _________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_to_dict0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_to_di...pytest-0/test_to_dict0/exdir_dir'), ) def test_to_dict(setup_teardown_file): f = setup_teardown_file[3] dictionary = {"a": 1.0, "b": 2.0, "c": 3.0} > f.attrs["d"] = dictionary tests/test_attr.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_number __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_number0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_number...d/pytest-0/test_number0/exdir_dir'), ) def test_number(setup_teardown_file): f = setup_teardown_file[3] > f.attrs[2] = 2 tests/test_attr.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_overwrite ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_overwrite0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_ove...st-0/test_overwrite0/exdir_dir'), ) def test_overwrite(setup_teardown_file): """Attributes are silently overwritten.""" f = setup_teardown_file[3] > f.attrs["a"] = 4.0 tests/test_attr.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_rank ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_rank0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_rank0/te...build/pytest-0/test_rank0/exdir_dir'), ) def test_rank(setup_teardown_file): """Attribute rank is preserved.""" f = setup_teardown_file[3] > f.attrs["a"] = (4.0, 5.0) tests/test_attr.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_single __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_single0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_single...d/pytest-0/test_single0/exdir_dir'), ) def test_single(setup_teardown_file): """Numpy arrays as attribute gives errors.""" f = setup_teardown_file[3] with pytest.raises(yaml.representer.RepresenterError): > f.attrs["a"] = np.ones((1,)) tests/test_attr.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_array __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_array0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_array0/...ild/pytest-0/test_array0/exdir_dir'), ) def test_array(setup_teardown_file): """Numpy arrays as attribute gives errors.""" f = setup_teardown_file[3] with pytest.raises(yaml.representer.RepresenterError): > f.attrs["a"] = np.ones((2, 2)) tests/test_attr.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_access_exc ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_access_exc0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_ac...-0/test_access_exc0/exdir_dir'), ) def test_access_exc(setup_teardown_file): """Attempt to access missing item raises KeyError.""" f = setup_teardown_file[3] with pytest.raises(KeyError): > f.attrs["a"] tests/test_attr.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:52: in __getitem__ meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________________ test_in ____________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_in0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_in0/test.e...mockbuild/pytest-0/test_in0/exdir_dir'), ) def test_in(setup_teardown_file): """Test that in (__contains__) works.""" f = setup_teardown_file[3] > f.attrs["a"] = 4.0 tests/test_attr.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_keys ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_keys0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_keys0/te...build/pytest-0/test_keys0/exdir_dir'), ) def test_keys(setup_teardown_file): """Test that in (__contains__) works.""" f = setup_teardown_file[3] > f.attrs["a"] = 1.0 tests/test_attr.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_values __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_values0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_values...d/pytest-0/test_values0/exdir_dir'), ) def test_values(setup_teardown_file): """Test that in (__contains__) works.""" f = setup_teardown_file[3] > f.attrs["a"] = 1.0 tests/test_attr.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_items __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_items0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_items0/...ild/pytest-0/test_items0/exdir_dir'), ) def test_items(setup_teardown_file): """Test that in (__contains__) works.""" f = setup_teardown_file[3] > f.attrs["a"] = 1.0 tests/test_attr.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_iter ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_iter0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_iter0/te...build/pytest-0/test_iter0/exdir_dir'), ) def test_iter(setup_teardown_file): """Test that in (__contains__) works.""" f = setup_teardown_file[3] > f.attrs["a"] = 1.0 tests/test_attr.py:162: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_ascii __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_ascii0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_ascii0/...ild/pytest-0/test_ascii0/exdir_dir'), ) def test_ascii(setup_teardown_file): """Access via pure-ASCII byte string.""" f = setup_teardown_file[3] > f.attrs[b"ascii"] = 42 tests/test_attr.py:197: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_unicode _________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_unicode0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_unico...pytest-0/test_unicode0/exdir_dir'), ) def test_unicode(setup_teardown_file): """Access via Unicode string with non-ascii characters.""" f = setup_teardown_file[3] name = six.u("Omega") + six.unichr(0x03A9) > f.attrs[name] = 42 tests/test_attr.py:218: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_string_scalar ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_string_scalar0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_string_scalar0/exdir_dir'), ) def test_string_scalar(setup_teardown_file): """Storage of variable-length byte string scalars (auto-creation).""" f = setup_teardown_file[3] > f.attrs["x"] = b"Hello" tests/test_attr.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_unicode_scalar ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_unicode_scalar0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...unicode_scalar0/exdir_dir'), ) def test_unicode_scalar(setup_teardown_file): """Storage of variable-length unicode strings (auto-creation).""" f = setup_teardown_file[3] > f.attrs["x"] = six.u("Hello") + six.unichr(0x2340) + six.u("!!") tests/test_attr.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_attrs __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_attrs0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_attrs0/...ild/pytest-0/test_attrs0/exdir_dir'), ) def test_attrs(setup_teardown_file): f = setup_teardown_file[3] > f.attrs["temperature"] = 99.0 tests/test_attr.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_create_scalar ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_scalar0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_create_scalar0/exdir_dir'), ) def test_create_scalar(setup_teardown_file): """Create a scalar dataset.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', ()) > assert dset.shape == () tests/test_dataset.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_create_simple ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_simple0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_create_simple0/exdir_dir'), ) def test_create_simple(setup_teardown_file): """Create a size-1 dataset.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (1,)) > assert dset.shape == (1,) tests/test_dataset.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_create_extended _____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_extended0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/te...eate_extended0/exdir_dir'), ) def test_create_extended(setup_teardown_file): """Create an extended dataset.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (63,)) > assert dset.shape == (63,) tests/test_dataset.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_default_dtype ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_default_dtype0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_default_dtype0/exdir_dir'), ) def test_default_dtype(setup_teardown_file): """Confirm that the default dtype is float.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (63,)) > assert dset.dtype == np.dtype('float32') tests/test_dataset.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:229: in dtype return self[:].dtype ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_long_double _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_long_double0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_l.../test_long_double0/exdir_dir'), ) def test_long_double(setup_teardown_file): """Confirm that the default dtype is float """ f = setup_teardown_file[3] dset = f.create_dataset('foo', (63,), dtype=np.int16) > assert dset.dtype == np.int16 tests/test_dataset.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:229: in dtype return self[:].dtype ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________ test_create_scalar_data ____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_scalar_data0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0...calar_data0/exdir_dir'), ) def test_create_scalar_data(setup_teardown_file): """Create a scalar dataset from existing array.""" f = setup_teardown_file[3] grp = f.create_group("test") data = np.ones((), 'f') dset = grp.create_dataset('foo', data=data) > assert dset.shape == data.shape tests/test_dataset.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________ test_create_extended_data ___________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_extended_data0'), PosixPath('/tmp/pytest-of-mockbuild/pytest...ded_data0/exdir_dir'), ) def test_create_extended_data(setup_teardown_file): """Create an extended dataset from existing data.""" f = setup_teardown_file[3] grp = f.create_group("test") data = np.ones((63,), 'f') dset = grp.create_dataset('foo', data=data) > assert dset.shape == data.shape tests/test_dataset.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_reshape _________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_reshape0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_resha...pytest-0/test_reshape0/exdir_dir'), ) def test_reshape(setup_teardown_file): """Create from existing data, and make it fit a new shape.""" f = setup_teardown_file[3] grp = f.create_group("test") data = np.arange(30, dtype='f') dset = grp.create_dataset('foo', shape=(10, 3), data=data) > assert dset.shape == (10, 3) tests/test_dataset.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_create __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create...d/pytest-0/test_create0/exdir_dir'), ) def test_create(setup_teardown_file): """Create new dataset with no conflicts.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.require_dataset('foo', (10, 3), 'f') assert isinstance(dset, Dataset) > assert dset.shape == (10, 3) tests/test_dataset.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_create_existing _____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_existing0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/te...eate_existing0/exdir_dir'), ) def test_create_existing(setup_teardown_file): """require_dataset yields existing dataset.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.require_dataset('foo', (10, 3), 'float32') > dset2 = grp.require_dataset('foo', (10, 3), 'float32') tests/test_dataset.py:159: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:291: in require_dataset current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_shape_conflict ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_shape_conflict0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...shape_conflict0/exdir_dir'), ) def test_shape_conflict(setup_teardown_file): """require_dataset with shape conflict yields TypeError.""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_dataset('foo', (10, 3), 'f') with pytest.raises(TypeError): > grp.require_dataset('foo', (10, 4), 'f') tests/test_dataset.py:171: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:291: in require_dataset current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_type_confict _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_type_confict0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_type_confict0/exdir_dir'), ) def test_type_confict(setup_teardown_file): """require_dataset with object type conflict yields TypeError.""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_group('foo') with pytest.raises(TypeError): > grp.require_dataset('foo', (10, 3), 'f') tests/test_dataset.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:291: in require_dataset current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_dtype_conflict ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_dtype_conflict0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...dtype_conflict0/exdir_dir'), ) def test_dtype_conflict(setup_teardown_file): """require_dataset with dtype conflict (strict mode) yields TypeError.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (10, 3), 'f') with pytest.raises(TypeError): > grp.require_dataset('foo', (10, 3), 'S10') tests/test_dataset.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:291: in require_dataset current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_dtype_close _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_dtype_close0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_d.../test_dtype_close0/exdir_dir'), ) def test_dtype_close(setup_teardown_file): """require_dataset with convertible type succeeds (non-strict mode)-""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (10, 3), 'i4') > dset2 = grp.require_dataset('foo', (10, 3), 'i2', exact=False) tests/test_dataset.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:291: in require_dataset current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_create_fillval ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_fillval0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...create_fillval0/exdir_dir'), ) def test_create_fillval(setup_teardown_file): """Fill value is reflected in dataset contents.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (10,), fillvalue=4.0) > assert dset[0] == 4.0 tests/test_dataset.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_string __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_string0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_string...d/pytest-0/test_string0/exdir_dir'), ) def test_string(setup_teardown_file): """Assignement of fixed-length byte string produces a fixed-length ascii dataset """ f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', data="string") > assert dset.data == "string" tests/test_dataset.py:244: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:175: in data return self[:] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_dtype __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_dtype0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_dtype0/...ild/pytest-0/test_dtype0/exdir_dir'), ) def test_dtype(setup_teardown_file): """Retrieve dtype from dataset.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (5,), '|S10') > assert dset.dtype == np.dtype('|S10') tests/test_dataset.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:229: in dtype return self[:].dtype ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________________ test_len ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_len0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_len0/test...ckbuild/pytest-0/test_len0/exdir_dir'), ) def test_len(setup_teardown_file): """len().""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (312, 15)) > assert len(dset) == 312 tests/test_dataset.py:266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:251: in __len__ if len(self.shape) == 0: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_len_scalar ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_len_scalar0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_le...-0/test_len_scalar0/exdir_dir'), ) def test_len_scalar(setup_teardown_file): """len() of scalar).""" f = setup_teardown_file[3] grp = f.create_group("test") dset =grp.create_dataset('foo', data=1) with pytest.raises(TypeError): > len(dset) tests/test_dataset.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:251: in __len__ if len(self.shape) == 0: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_iter ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_iter0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_iter0/te...build/pytest-0/test_iter0/exdir_dir'), ) def test_iter(setup_teardown_file): """Iterating over a dataset yields rows.""" f = setup_teardown_file[3] grp = f.create_group("test") data = np.arange(30, dtype='f').reshape((10, 3)) dset = grp.create_dataset('foo', data=data) > for x, y in zip(dset, data): tests/test_dataset.py:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:261: in __iter__ if len(self.shape) == 0: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_iter_scalar _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_iter_scalar0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_i.../test_iter_scalar0/exdir_dir'), ) def test_iter_scalar(setup_teardown_file): """Iterating over scalar dataset raises TypeError.""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', shape=()) with pytest.raises(TypeError): > [x for x in dset] tests/test_dataset.py:300: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:261: in __iter__ if len(self.shape) == 0: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_compund _________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_compund0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_compu...pytest-0/test_compund0/exdir_dir'), ) def test_compund(setup_teardown_file): """Compound types are read back in correct order.""" f = setup_teardown_file[3] grp = f.create_group("test") dt = np.dtype( [('weight', np.float64), ('cputime', np.float64), ('walltime', np.float64), ('parents_offset', np.uint32), ('n_parents', np.uint32), ('status', np.uint8), ('endpoint_type', np.uint8)]) testdata = np.ndarray((16,), dtype=dt) for key in dt.fields: testdata[key] = np.random.random((16,))*100 # print(testdata) grp['test'] = testdata > outdata = grp['test'][()] tests/test_dataset.py:332: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_assign __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_assign0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_assign...d/pytest-0/test_assign0/exdir_dir'), ) def test_assign(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("test") dt = np.dtype([('weight', (np.float64, 3)), ('endpoint_type', np.uint8),]) testdata = np.ndarray((16,), dtype=dt) for key in dt.fields: testdata[key] = np.random.random(size=testdata[key].shape)*100 ds = grp.create_dataset('test', (16,), dtype=dt) for key in dt.fields: > ds[key] = testdata[key] tests/test_dataset.py:349: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_set_data _________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_set_data0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_set_...test-0/test_set_data0/exdir_dir'), ) def test_set_data(setup_teardown_file): """Set data works correctly.""" f = setup_teardown_file[3] grp = f.create_group("test") testdata = np.ones((10, 2)) grp['testdata'] = testdata > outdata = grp['testdata'][()] tests/test_dataset.py:366: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_mmap ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_mmap0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_mmap0/te...build/pytest-0/test_mmap0/exdir_dir'), ) def test_mmap(setup_teardown_file): """Test that changes to a mmap loaded numpy file is written to disk""" f = setup_teardown_file[3] grp = f.create_group("test") dset = grp.create_dataset('foo', (10**3, 10**3), fillvalue=2) > dset[1, 1] = 100 tests/test_dataset.py:402: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_modify_view _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_modify_view0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_m.../test_modify_view0/exdir_dir'), ) def test_modify_view(setup_teardown_file): f = setup_teardown_file[3] dataset = f.create_dataset("mydata", data=np.array([1, 2, 3, 4, 5, 6, 7, 8])) > dataset[3:5] = np.array([8, 9]) tests/test_dataset.py:413: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_single_index _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_single_index0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_single_index0/exdir_dir'), ) def test_single_index(setup_teardown_file): """Single-element selection with [index] yields array scalar.""" f = setup_teardown_file[3] dset = f.create_dataset('x', (1,), dtype='i1') > out = dset[0] tests/test_dataset.py:424: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_single_null _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_single_null0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_s.../test_single_null0/exdir_dir'), ) def test_single_null(setup_teardown_file): """Single-element selection with [()] yields ndarray.""" f = setup_teardown_file[3] dset = f.create_dataset('x', (1,), dtype='i1') > out = dset[()] tests/test_dataset.py:432: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_scalar_index _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_scalar_index0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_scalar_index0/exdir_dir'), ) def test_scalar_index(setup_teardown_file): """Slicing with [...] yields scalar ndarray.""" f = setup_teardown_file[3] dset = f.create_dataset('x', shape=(), dtype='f') > out = dset[...] tests/test_dataset.py:441: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_scalar_null _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_scalar_null0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_s.../test_scalar_null0/exdir_dir'), ) def test_scalar_null(setup_teardown_file): """Slicing with [()] yields array scalar.""" f = setup_teardown_file[3] dset = f.create_dataset('x', shape=(), dtype='i1') > out = dset[()] tests/test_dataset.py:450: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_compound_index ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_compound_index0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...compound_index0/exdir_dir'), ) def test_compound_index(setup_teardown_file): """Compound scalar is numpy.void, not tuple.""" f = setup_teardown_file[3] dt = np.dtype([('a', 'i4'), ('b', 'f8')]) v = np.ones((4,), dtype=dt) dset = f.create_dataset('foo', (4,), data=v) > assert dset[0] == v[0] tests/test_dataset.py:461: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_negative_stop ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_negative_stop0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_negative_stop0/exdir_dir'), ) def test_negative_stop(setup_teardown_file): """Negative stop indexes work as they do in NumPy.""" f = setup_teardown_file[3] arr = np.arange(10) dset = f.create_dataset('x', data=arr) > assert np.array_equal(dset[2:-2], arr[2:-2]) tests/test_dataset.py:474: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_read ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_read0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_read0/te...build/pytest-0/test_read0/exdir_dir'), ) def test_read(setup_teardown_file): """Read arrays tack array dimensions onto end of shape tuple.""" f = setup_teardown_file[3] dt = np.dtype('(3,)f8') dset = f.create_dataset('x', (10,), dtype=dt) # TODO implement this # assert dset.shape == (10,) # assert dset.dtype == dt # Full read > out = dset[...] tests/test_dataset.py:490: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_write_broadcast _____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_write_broadcast0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/te...ite_broadcast0/exdir_dir'), ) def test_write_broadcast(setup_teardown_file): """Array fill from constant is supported.""" f = setup_teardown_file[3] dt = np.dtype('(3,)i') dset = f.create_dataset('x', (10,), dtype=dt) > dset[...] = 42 tests/test_dataset.py:511: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_write_element ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_write_element0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_write_element0/exdir_dir'), ) def test_write_element(setup_teardown_file): """Write a single element to the array.""" f = setup_teardown_file[3] dt = np.dtype('(3,)f8') dset = f.create_dataset('x', (10,), dtype=dt) data = np.array([1, 2, 3.0]) > dset[4] = data tests/test_dataset.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_write_slices _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_write_slices0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_write_slices0/exdir_dir'), ) def test_write_slices(setup_teardown_file): """Write slices to array type.""" f = setup_teardown_file[3] dt = np.dtype('(3,)i') data1 = np.ones((2, ), dtype=dt) data2 = np.ones((4, 5), dtype=dt) dset = f.create_dataset('x', (10, 9, 11), dtype=dt) > dset[0, 0, 2:4] = data1 tests/test_dataset.py:540: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_roundtrip ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_roundtrip0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_rou...st-0/test_roundtrip0/exdir_dir'), ) def test_roundtrip(setup_teardown_file): """Read the contents of an array and write them back.""" f = setup_teardown_file[3] dt = np.dtype('(3,)f8') dset = f.create_dataset('x', (10,), dtype=dt) > out = dset[...] tests/test_dataset.py:553: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________ test_slice_zero_length_dimension _______________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_slice_zero_length_dimensi0'), PosixPath('/tmp/pytest-of-mockbuild/p...nsi0/exdir_dir'), ) def test_slice_zero_length_dimension(setup_teardown_file): """Slice a dataset with a zero in its shape vector along the zero-length dimension.""" f = setup_teardown_file[3] for i, shape in enumerate([(0,), (0, 3), (0, 2, 1)]): dset = f.create_dataset('x%d'%i, shape, dtype=np.int32) > assert dset.shape == shape tests/test_dataset.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________ test_slice_other_dimension __________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_slice_other_dimension0'), PosixPath('/tmp/pytest-of-mockbuild/pytes...mension0/exdir_dir'), ) def test_slice_other_dimension(setup_teardown_file): """Slice a dataset with a zero in its shape vector along a non-zero-length dimension.""" f = setup_teardown_file[3] for i, shape in enumerate([(3, 0), (1, 2, 0), (2, 0, 1)]): dset = f.create_dataset('x%d'%i, shape, dtype=np.int32) > assert dset.shape == shape tests/test_dataset.py:589: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________ test_slice_of_length_zero ___________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_slice_of_length_zero0'), PosixPath('/tmp/pytest-of-mockbuild/pytest...gth_zero0/exdir_dir'), ) def test_slice_of_length_zero(setup_teardown_file): """Get a slice of length zero from a non-empty dataset.""" f = setup_teardown_file[3] for i, shape in enumerate([(3, ), (2, 2, ), (2, 1, 5)]): dset = f.create_dataset('x%d'%i, data=np.zeros(shape, np.int32)) > assert dset.shape == shape tests/test_dataset.py:600: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:203: in shape return self[:].shape ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_modify_all ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_modify_all0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_mo...-0/test_modify_all0/exdir_dir'), ) def test_modify_all(setup_teardown_file): f = setup_teardown_file[3] dset = f.create_dataset("test", data=np.arange(10)) > dset.data = np.ones(4) tests/test_dataset.py:608: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:184: in data attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_file_init ________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_file_init0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_file_init0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_file_init0/exdir_dir')) def test_file_init(setup_teardown_folder): no_exdir = setup_teardown_folder[0] / "no_exdir" f = File(no_exdir, mode="w") f.close() > assert is_nonraw_object_directory(no_exdir.with_suffix(".exdir")) tests/test_file.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_create __________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create0/exdir_dir')) def test_create(setup_teardown_folder): """Mode 'w' opens file in overwrite mode.""" f = File(setup_teardown_folder[1], 'w') assert isinstance(f, File) f.create_group('foo') f.close() > f = File(setup_teardown_folder[1], 'w', allow_remove=True) tests/test_file.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ____________________________ test_create_exclusive _____________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_exclusive0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_exclusive0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_exclusive0/exdir_dir')) def test_create_exclusive(setup_teardown_folder): """Mode 'w-' opens file in exclusive mode.""" f = File(setup_teardown_folder[1], 'w-') assert isinstance(f, File) f.close() with pytest.raises(RuntimeError): > File(setup_teardown_folder[1], 'w-') tests/test_file.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_append __________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_append0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_append0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_append0/exdir_dir')) def test_append(setup_teardown_folder): """Mode 'a' opens file in append/readwrite mode, creating if necessary.""" f = File(setup_teardown_folder[1], 'a') assert isinstance(f, File) f.create_group('foo') assert 'foo' in f > f = File(setup_teardown_folder[1], 'a') tests/test_file.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_readonly _________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readonly0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readonly0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readonly0/exdir_dir')) def test_readonly(setup_teardown_folder): """Mode 'r' opens file in readonly mode.""" f = File(setup_teardown_folder[1], 'w') f.close() assert not f > f = File(setup_teardown_folder[1], 'r') tests/test_file.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_readwrite ________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readwrite0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readwrite0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readwrite0/exdir_dir')) def test_readwrite(setup_teardown_folder): """Mode 'r+' opens existing file in readwrite mode.""" f = File(setup_teardown_folder[1], 'w') f.create_group('foo') f.close() > f = File(setup_teardown_folder[1], 'r+') tests/test_file.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________ test_opening_with_different_validate_name ___________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_opening_with_different_va0'), PosixPath('/tmp/pytest-of-mockbuild/p...h_different_va0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_opening_with_different_va0/exdir_dir')) def test_opening_with_different_validate_name(setup_teardown_folder): """Test opening with wrong naming rule.""" f = File(setup_teardown_folder[1], "w", name_validation=fv.none) f.create_group("AAA") f.close() # TODO changing name validation should result in warning/error > f = File(setup_teardown_folder[1], "a", name_validation=fv.thorough) tests/test_file.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_open ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open0/te...build/pytest-0/test_open0/exdir_dir'), ) def test_open(setup_teardown_file): """thorough obj[name] opening.""" f = setup_teardown_file[3] grp = f.create_group("foo") > grp2 = f["foo"] tests/test_file.py:261: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:221: in __getitem__ return super(File, self).__getitem__(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_open_mode ________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_mode0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_mode0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_mode0/exdir_dir')) def test_open_mode(setup_teardown_folder): # must exist for mode in ["r+", "r"]: with pytest.raises(RuntimeError): f = File(setup_teardown_folder[1], mode) # create if not exist for mode in ["a", "w", "w-"]: remove(setup_teardown_folder[1]) f = File(setup_teardown_folder[1], mode) f.require_dataset('dset', np.arange(10)) > f.attrs['can_overwrite'] = 42 tests/test_file.py:280: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_open_two_attrs ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_two_attrs0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...open_two_attrs0/exdir_dir'), ) def test_open_two_attrs(setup_teardown_file): f = setup_teardown_file[3] > f.attrs['can_overwrite'] = 42 tests/test_file.py:305: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_close_attrs _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_close_attrs0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_c.../test_close_attrs0/exdir_dir'), ) def test_close_attrs(setup_teardown_file): """'closed file is unable to handle.""" f = setup_teardown_file[3] grp = f.create_group("group") dset = f.create_dataset('dataset', data=np.array([1,2,3])) raw = f.create_raw('raw') > f.attrs = {'file': 'attrs'} tests/test_file.py:348: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:216: in attrs self.attrs._set_data(value) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_close_dataset ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_close_dataset0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_close_dataset0/exdir_dir'), ) def test_close_dataset(setup_teardown_file): """'closed file is unable to handle.""" f = setup_teardown_file[3] grp = f.create_group("group") dset = f.create_dataset('dataset', data=np.array([1,2,3])) > dset.attrs = {'dataset': 'attrs'} tests/test_file.py:391: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:216: in attrs self.attrs._set_data(value) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________________ test_get ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_get0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_get0/test...ckbuild/pytest-0/test_get0/exdir_dir'), ) def test_get(setup_teardown_file): """Simple .create_group call.""" f = setup_teardown_file[3] grp = f.create_group("test") grp2 = grp.create_group("a") > grp2_get = grp.get('a') tests/test_group.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:525: in get return self[key] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________ test_create_intermediate ___________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_intermediate0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-...ermediate0/exdir_dir'), ) def test_create_intermediate(setup_teardown_file): """intermediate groups can be created automatically.""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_group("foo/bar/baz") > assert isinstance(grp["foo/bar/baz"], Group) tests/test_group.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:374: in __getitem__ return self[top_directory][sub_name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_open_existing ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_existing0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test...t_open_existing0/exdir_dir'), ) def test_open_existing(setup_teardown_file): """Existing group is opened and returned.""" f = setup_teardown_file[3] grp = f.create_group("test") grp2 = grp.create_group("foo") > grp3 = grp.require_group("foo") tests/test_group.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:228: in require_group current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ____________________________ test_require_exception ____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_require_exception0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/...e_exception0/exdir_dir'), ) def test_require_exception(setup_teardown_file): """Opening conflicting object results in TypeError.""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_dataset("foo", (1,)) with pytest.raises(TypeError): > grp.require_group("foo") tests/test_group.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:228: in require_group current_object = self[name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________ test_set_item_intermediate __________________________ exdir_tmpfile = def test_set_item_intermediate(exdir_tmpfile): group1 = exdir_tmpfile.create_group("group1") group2 = group1.create_group("group2") group3 = group2.create_group("group3") > exdir_tmpfile["group1/group2/group3/dataset"] = np.array([1, 2, 3]) tests/test_group.py:174: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:439: in __setitem__ self[path.parent][path.name] = value ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:221: in __getitem__ return super(File, self).__getitem__(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:374: in __getitem__ return self[top_directory][sub_name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:221: in __getitem__ return super(File, self).__getitem__(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_delete_group _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_delete_group0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_delete_group0/exdir_dir'), ) def test_delete_group(setup_teardown_file): """Object deletion via "del".""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_group("foo") assert "foo" in grp > del grp["foo"] tests/test_group.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:463: in __delitem__ exob._remove_object_directory(self[name].directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________ test_delete_group_from_file __________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_delete_group_from_file0'), PosixPath('/tmp/pytest-of-mockbuild/pyte...m_file0/exdir_dir'), ) def test_delete_group_from_file(setup_teardown_file): """Object deletion via "del".""" f = setup_teardown_file[3] grp = f.create_group("test") assert "test" in f > del f["test"] tests/test_group.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:463: in __delitem__ exob._remove_object_directory(self[name].directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:221: in __getitem__ return super(File, self).__getitem__(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_delete_raw ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_delete_raw0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_de...-0/test_delete_raw0/exdir_dir'), ) def test_delete_raw(setup_teardown_file): """Object deletion via "del".""" f = setup_teardown_file[3] grp = f.create_group("test") grp.create_raw("foo") assert "foo" in grp > del grp["foo"] tests/test_group.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:463: in __delitem__ exob._remove_object_directory(self[name].directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:80: in _remove_object_directory assert is_inside_exdir(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:160: in is_inside_exdir return root_directory(path) is not None ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________ test_readonly_delete_exception ________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readonly_delete_exception0'), PosixPath('/tmp/pytest-of-mockbuild/p...exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_readonly_delete_exception0/exdir_dir'), ) def test_readonly_delete_exception(setup_teardown_file): """Deleting object in readonly file raises KeyError.""" f = setup_teardown_file[3] f.close() > f = File(setup_teardown_file[1], "r") tests/test_group.py:229: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_file.py:127: in __init__ if not exob.is_nonraw_object_directory(directory): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_delete_dataset ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_delete_dataset0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...delete_dataset0/exdir_dir'), ) def test_delete_dataset(setup_teardown_file): """Create new dataset with no conflicts.""" f = setup_teardown_file[3] grp = f.create_group("test") foo = grp.create_dataset('foo', (10, 3), 'f') > assert isinstance(grp['foo'], Dataset) tests/test_group.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_open ___________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open0/te...build/pytest-0/test_open0/exdir_dir'), ) def test_open(setup_teardown_file): """Simple obj[name] opening.""" f = setup_teardown_file[3] grp = f.create_group("test") grp2 = grp.create_group("foo") > grp3 = grp["foo"] tests/test_group.py:269: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ________________________________ test_open_deep ________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_deep0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_ope...st-0/test_open_deep0/exdir_dir'), ) def test_open_deep(setup_teardown_file): """Simple obj[name] opening.""" f = setup_teardown_file[3] grp = f.create_group("test") grp2 = grp.create_group("a") grp3 = grp2.create_group("b") > grp4 = grp["a/b"] tests/test_group.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:374: in __getitem__ return self[top_directory][sub_name] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_values __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_values0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_values...d/pytest-0/test_values0/exdir_dir'), ) def test_values(setup_teardown_file): """.values provides a value view.""" f = setup_teardown_file[3] grp = f.create_group("test") grpa = grp.create_group("a") grpb = grp.create_group("b") grpc = grp.create_group("c") grpd = grp.create_group("d") assert isinstance(grp.values(), ValuesView) > assert list(grp.values()) == [grpa, grpb, grpc, grpd] tests/test_group.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :913: in __iter__ ??? ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_items __________________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_items0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_items0/...ild/pytest-0/test_items0/exdir_dir'), ) def test_items(setup_teardown_file): """.items provides an item view.""" f = setup_teardown_file[3] grp = f.create_group("test") grpa = grp.create_group("a") grpb = grp.create_group("b") grpc = grp.create_group("c") grpd = grp.create_group("d") groups = [grpa, grpb, grpc, grpd] names = ["a", "b", "c", "d"] assert isinstance(grp.items(), ItemsView) > for i, (key, value) in enumerate(grp.items()): tests/test_group.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :894: in __iter__ ??? ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:385: in __getitem__ if exob.is_raw_object_directory(directory): # TODO create one function that handles all Raw creation ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:122: in is_raw_object_directory return is_exdir_object(directory) and not is_nonraw_object_directory(directory) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________ test_create_object_directory _________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_object_directory0'), PosixPath('/tmp/pytest-of-mockbuild/pyt...object_directory0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_object_directory0/exdir_dir')) def test_create_object_directory(setup_teardown_folder): with pytest.raises(ValueError): exob._create_object_directory(pathlib.Path(setup_teardown_folder[2]), exob._default_metadata("wrong_typename")) exob._create_object_directory(pathlib.Path(setup_teardown_folder[2]), exob._default_metadata(exob.DATASET_TYPENAME)) assert setup_teardown_folder[2].is_dir() file_path = setup_teardown_folder[2] / exob.META_FILENAME assert file_path.is_file() compare_metadata = { exob.EXDIR_METANAME: { exob.TYPE_METANAME: exob.DATASET_TYPENAME, exob.VERSION_METANAME: 1} } with file_path.open("r", encoding="utf-8") as meta_file: > metadata = yaml.safe_load(meta_file) tests/test_help_functions.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILD/exdir-0.4.2/tests/test_help_functions.py", line 117 E E metadata = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________ test_is_nonraw_object_directory ________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_is_nonraw_object_director0'), PosixPath('/tmp/pytest-of-mockbuild/p...bject_director0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_is_nonraw_object_director0/exdir_dir')) def test_is_nonraw_object_directory(setup_teardown_folder): setup_teardown_folder[2].mkdir() result = exob.is_nonraw_object_directory(setup_teardown_folder[2]) assert result is False compare_metafile = setup_teardown_folder[2] / exob.META_FILENAME with compare_metafile.open("w", encoding="utf-8") as f: pass > result = exob.is_nonraw_object_directory(setup_teardown_folder[2]) tests/test_help_functions.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_root_directory ______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_root_directory0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/tes...root_directory0/exdir_dir'), ) def test_root_directory(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("foo") grp.create_group("bar") path = setup_teardown_file[1] / "foo" / "bar" > assert pathlib.Path(setup_teardown_file[1]) == exob.root_directory(path) tests/test_help_functions.py:195: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_is_inside_exdir _____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_is_inside_exdir0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/te..._inside_exdir0/exdir_dir'), ) def test_is_inside_exdir(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("foo") grp.create_group("bar") path = setup_teardown_file[1] / "foo" / "bar" > assert exob.is_inside_exdir(path) tests/test_help_functions.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:160: in is_inside_exdir return root_directory(path) is not None ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________ test_assert_inside_exdir ___________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_assert_inside_exdir0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-...ide_exdir0/exdir_dir'), ) def test_assert_inside_exdir(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("foo") grp.create_group("bar") path = setup_teardown_file[1] / "foo" / "bar" > assert exob.assert_inside_exdir(path) is None tests/test_help_functions.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:165: in assert_inside_exdir if not is_inside_exdir(path): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:160: in is_inside_exdir return root_directory(path) is not None ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_open_object _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_open_object0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_o.../test_open_object0/exdir_dir'), ) def test_open_object(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("foo") grp2 = grp.create_group("bar") path = setup_teardown_file[1] / "foo" / "bar" > loaded_grp = exob.open_object(path) tests/test_help_functions.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:172: in open_object assert_inside_exdir(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:165: in assert_inside_exdir if not is_inside_exdir(path): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:160: in is_inside_exdir return root_directory(path) is not None ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_simple __________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_simple0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_simple0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_simple0/exdir_dir')) def test_simple(setup_teardown_folder): f = exdir.File(setup_teardown_folder[1], 'w', plugins=[exdir.plugins.numpy_attributes]) > f.attrs["array"] = np.array([1, 2, 3]) tests/test_numpy_attributes.py:12: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:152: in _set_data meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_with_quantities _____________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_with_quantities0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_with_quantities0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_with_quantities0/exdir_dir')) def test_with_quantities(setup_teardown_folder): f = exdir.File(setup_teardown_folder[1], 'w', plugins=[exdir.plugins.numpy_attributes, exdir.plugins.quantities]) > f.attrs["array"] = np.array([1, 2, 3]) * pq.m tests/test_numpy_attributes.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:152: in _set_data meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________ test_with_quantities_reverse_order ______________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_with_quantities_reverse_o0'), PosixPath('/tmp/pytest-of-mockbuild/p...ties_reverse_o0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_with_quantities_reverse_o0/exdir_dir')) def test_with_quantities_reverse_order(setup_teardown_folder): f = exdir.File(setup_teardown_folder[1], 'w', plugins=[exdir.plugins.quantities, exdir.plugins.numpy_attributes]) > f.attrs["array"] = np.array([1, 2, 3]) * pq.m tests/test_numpy_attributes.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:152: in _set_data meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _______________________________ test_open_object _______________________________ exdir_tmpfile = def test_open_object(exdir_tmpfile): grp = exdir_tmpfile.create_group("test") grp2 = grp.create_group("test2") > exob.open_object(grp2.directory) tests/test_object.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:172: in open_object assert_inside_exdir(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:165: in assert_inside_exdir if not is_inside_exdir(path): ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:160: in is_inside_exdir return root_directory(path) is not None ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:136: in root_directory valid = is_nonraw_object_directory(path) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:106: in is_nonraw_object_directory meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 106 E E meta_data = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________________ test_object_attrs _______________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_object_attrs0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_...est_object_attrs0/exdir_dir'), ) def test_object_attrs(setup_teardown_file): obj = setup_teardown_file[3].create_dataset("test_object", shape=(1,), dtype=float) assert isinstance(obj.attrs, Attribute) assert obj.attrs.mode.value == 1 > obj.attrs = "test value" tests/test_object.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:216: in attrs self.attrs._set_data(value) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:169: in _set_data yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 169 E E yaml.dump( /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________________ test_noop ___________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0/exdir_dir')) def test_noop(setup_teardown_folder): class DatasetPlugin(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): return dataset_data def prepare_write(self, dataset_data): return dataset_data noop = exdir.plugin_interface.Plugin( "noop", dataset_plugins=[DatasetPlugin()] ) f = exdir.File(setup_teardown_folder[1], 'w', plugins=noop) d = f.create_dataset("foo", data=np.array([1, 2, 3])) > assert all(d.data == np.array([1, 2, 3])) tests/test_plugins.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:175: in data return self[:] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ______________________ test_fail_reading_without_required ______________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_fail_reading_without_requ0'), PosixPath('/tmp/pytest-of-mockbuild/p...g_without_requ0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_fail_reading_without_requ0/exdir_dir')) def test_fail_reading_without_required(setup_teardown_folder): class DatasetPlugin(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): return dataset_data def prepare_write(self, dataset_data): if "plugins" not in dataset_data.meta: dataset_data.meta["plugins"] = {} if "required" not in dataset_data.meta["plugins"]: dataset_data.meta["plugins"]["required"] = {"required": True} return dataset_data required = exdir.plugin_interface.Plugin( "required", dataset_plugins=[DatasetPlugin()] ) f = exdir.File(setup_teardown_folder[1], 'w', plugins=required) assert isinstance(f, exdir.File) > d = f.create_dataset("foo", data=np.array([1, 2, 3])) tests/test_plugins.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_one_way_scaling _____________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_one_way_scaling0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_one_way_scaling0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_one_way_scaling0/exdir_dir')) def test_one_way_scaling(setup_teardown_folder): class DatasetPlugin(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): return dataset_data def prepare_write(self, dataset_data): if "plugins" not in dataset_data.meta: dataset_data.meta["plugins"] = {} if "scaling" not in dataset_data.meta["plugins"]: dataset_data.meta["plugins"]["scaling"] = {"required": True} dataset_data.data *= 2 return dataset_data one_way_scaling = exdir.plugin_interface.Plugin( "scaling", dataset_plugins=[DatasetPlugin()] ) f = exdir.File(setup_teardown_folder[1], 'w', plugins=[one_way_scaling]) assert isinstance(f, exdir.File) > d = f.create_dataset("scaling", data=np.array([1, 2, 3])) tests/test_plugins.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________________ test_scaling _________________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_scaling0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_scaling0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_scaling0/exdir_dir')) def test_scaling(setup_teardown_folder): class DatasetPlugin(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): meta = dataset_data.meta dataset_data.data = dataset_data.data / 2 return dataset_data def prepare_write(self, dataset_data): dataset_data.data *= 2 if "plugins" not in dataset_data.meta: dataset_data.meta["plugins"] = {} if "scaling" not in dataset_data.meta["plugins"]: dataset_data.meta["plugins"]["scaling"] = {"required": True} dataset_data.meta return dataset_data scaling = exdir.plugin_interface.Plugin( "scaling", dataset_plugins=[DatasetPlugin()] ) f = exdir.File(setup_teardown_folder[1], 'w', plugins=[scaling]) assert isinstance(f, exdir.File) > d = f.create_dataset("scaling", data=np.array([1, 2, 3])) tests/test_plugins.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ____________________________ test_attribute_plugin _____________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_attribute_plugin0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_attribute_plugin0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_attribute_plugin0/exdir_dir')) def test_attribute_plugin(setup_teardown_folder): class AttributePlugin(exdir.plugin_interface.Attribute): def prepare_read(self, attribute_data): attribute_data.attrs["value"] = attribute_data.attrs["value"]["value"] return attribute_data def prepare_write(self, attribute_data): meta = attribute_data.meta if "plugins" not in meta: meta["plugins"] = {} if "scaling" not in meta["plugins"]: meta["plugins"]["scaling"] = {"required": True} old_value = attribute_data.attrs["value"] attribute_data.attrs["value"] = { "unit": "m", "value": old_value * 2 } return attribute_data scaling_unit = exdir.plugin_interface.Plugin( "scaling", attribute_plugins=[AttributePlugin()] ) f = exdir.File(setup_teardown_folder[1], "w", plugins=[scaling_unit]) assert isinstance(f, exdir.File) d = f.create_dataset("foo", data=np.array([1, 2, 3])) > d.attrs["value"] = 42 tests/test_plugins.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:152: in _set_data meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ____________________________ test_reading_in_order _____________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_reading_in_order0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_reading_in_order0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_reading_in_order0/exdir_dir')) def test_reading_in_order(setup_teardown_folder): class DatasetPlugin1(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): dataset_data.data = dataset_data.data * 2 return dataset_data class DatasetPlugin2(exdir.plugin_interface.Dataset): def prepare_read(self, dataset_data): dataset_data.data = dataset_data.data * 3 return dataset_data plugin1 = exdir.plugin_interface.Plugin( "plugin1", dataset_plugins=[DatasetPlugin1()] ) plugin2 = exdir.plugin_interface.Plugin( "plugin2", dataset_plugins=[DatasetPlugin2()] ) f = exdir.File(setup_teardown_folder[1], "w", plugins=[plugin1, plugin2]) assert isinstance(f, exdir.File) d = f.create_dataset("foo", data=np.array([1, 2, 3])) > assert all(d.data == np.array([6, 12, 18])) tests/test_plugins.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:175: in data return self[:] ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:62: in __getitem__ if "plugins" in self.meta: ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:88: in __contains__ attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________ test_create_quantities_file __________________________ setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_quantities_file0'), PosixPath('/tmp/pytest-of-mockbuild/pyte...e_quantities_file0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_create_quantities_file0/exdir_dir')) def test_create_quantities_file(setup_teardown_folder): f = exdir.File(setup_teardown_folder[1], 'w', plugins=exdir.plugins.quantities) > d = f.create_dataset("foo", data=np.array([1, 2, 3]) * pq.m) tests/test_quantities.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError __________________________ test_quantities_attributes __________________________ quantities_tmpfile = def test_quantities_attributes(quantities_tmpfile): """ Test if quantities is saved """ f = quantities_tmpfile > f.attrs["temperature"] = 99.0 tests/test_quantities.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:83: in __setitem__ self._set_data(attrs) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:152: in _set_data meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _________________________ test_create_quantities_data __________________________ quantities_tmpfile = def test_create_quantities_data(quantities_tmpfile): f = quantities_tmpfile grp = f.create_group("test") testdata = np.array([1, 2, 3]) * pq.J > dset = grp.create_dataset('data', data=testdata) tests/test_quantities.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ____________________________ test_assign_quantities ____________________________ quantities_tmpfile = def test_assign_quantities(quantities_tmpfile): f = quantities_tmpfile grp = f.create_group("test") testdata = np.array([1,2,3]) * pq.J > dset = grp.create_dataset('data', data=testdata) tests/test_quantities.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_set_quantities ______________________________ quantities_tmpfile = def test_set_quantities(quantities_tmpfile): f = quantities_tmpfile grp = f.create_group("test") dset = grp.create_dataset('data', data=np.array([1])) testdata = np.array([1.1, 2, 3]) * pq.J > dset.value = testdata tests/test_quantities.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:246: in value self.data = value ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:184: in data attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError _____________________________ test_mmap_quantities _____________________________ setup_teardown_file = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_mmap_quantities0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/te...ap_quantities0/exdir_dir'), ) def test_mmap_quantities(setup_teardown_file): f = setup_teardown_file[3] grp = f.create_group("test") testdata = np.array([1, 2, 3]) * pq.J dset = grp.create_dataset('data', data=testdata) > dset[1] = 100 tests/test_quantities.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/dataset.py:94: in __setitem__ attrs=self.attrs.to_dict(), ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:113: in to_dict meta = self.parent.meta.to_dict() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:108: in to_dict attrs = self._open_or_create() ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py:183: in _open_or_create attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1091: in safe_load error_deprecation('safe_load', 'load', arg="typ='safe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'safe_load', method = 'load', arg = "typ='safe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "safe_load()" has been removed, use E E yaml = YAML(typ='safe', pure=True) E yaml.load(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/attribute.py", line 183 E E attrs = yaml.safe_load(meta_file) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError ___________________________ test_require_quantities ____________________________ quantities_tmpfile = def test_require_quantities(quantities_tmpfile): f = quantities_tmpfile grp = f.create_group("test") testdata = np.array([1, 2, 3]) * pq.J > dset = grp.create_dataset('data', data=testdata) tests/test_quantities.py:120: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:145: in create_dataset exob._create_object_directory(dataset_directory, meta) ../../BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py:65: in _create_object_directory metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1237: in dump error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fun = 'dump', method = 'dump', arg = "typ='unsafe', pure=True" comment = 'instead of' def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str = 'instead of') -> None: # NOQA import inspect s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n yaml.{method}(...)\n\n{comment}' # NOQA try: info = inspect.getframeinfo(inspect.stack()[2][0]) context = '' if info.code_context is None else "".join(info.code_context) s += f' file "{info.filename}", line {info.lineno}\n\n{context}' except Exception as e: _ = e s += '\n' if sys.version_info < (3, 10): raise AttributeError(s) else: > raise AttributeError(s, name=None) E AttributeError: E "dump()" has been removed, use E E yaml = YAML(typ='unsafe', pure=True) E yaml.dump(...) E E instead of file "/builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/exdir_object.py", line 65 E E metadata_string = yaml.dump(metadata) /usr/lib/python3.12/site-packages/ruamel/yaml/main.py:1025: AttributeError =============================== warnings summary =============================== tests/test_dataset.py::test_reshape tests/test_dataset.py::test_reshape tests/test_dataset.py::test_compound_index tests/test_dataset.py::test_compound_index /builddir/build/BUILDROOT/python-exdir-0.4.2-1.fc39.noarch/usr/lib/python3.12/site-packages/exdir/core/group.py:127: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead. _assert_data_shape_dtype_match(prepared_data, shape, dtype) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_attr.py::test_create - AttributeError: FAILED tests/test_attr.py::test_create_dict - AttributeError: FAILED tests/test_attr.py::test_to_dict - AttributeError: FAILED tests/test_attr.py::test_number - AttributeError: FAILED tests/test_attr.py::test_overwrite - AttributeError: FAILED tests/test_attr.py::test_rank - AttributeError: FAILED tests/test_attr.py::test_single - AttributeError: FAILED tests/test_attr.py::test_array - AttributeError: FAILED tests/test_attr.py::test_access_exc - AttributeError: FAILED tests/test_attr.py::test_in - AttributeError: FAILED tests/test_attr.py::test_keys - AttributeError: FAILED tests/test_attr.py::test_values - AttributeError: FAILED tests/test_attr.py::test_items - AttributeError: FAILED tests/test_attr.py::test_iter - AttributeError: FAILED tests/test_attr.py::test_ascii - AttributeError: FAILED tests/test_attr.py::test_unicode - AttributeError: FAILED tests/test_attr.py::test_string_scalar - AttributeError: FAILED tests/test_attr.py::test_unicode_scalar - AttributeError: FAILED tests/test_attr.py::test_attrs - AttributeError: FAILED tests/test_dataset.py::test_create_scalar - AttributeError: FAILED tests/test_dataset.py::test_create_simple - AttributeError: FAILED tests/test_dataset.py::test_create_extended - AttributeError: FAILED tests/test_dataset.py::test_default_dtype - AttributeError: FAILED tests/test_dataset.py::test_long_double - AttributeError: FAILED tests/test_dataset.py::test_create_scalar_data - AttributeError: FAILED tests/test_dataset.py::test_create_extended_data - AttributeError: FAILED tests/test_dataset.py::test_reshape - AttributeError: FAILED tests/test_dataset.py::test_create - AttributeError: FAILED tests/test_dataset.py::test_create_existing - AttributeError: FAILED tests/test_dataset.py::test_shape_conflict - AttributeError: FAILED tests/test_dataset.py::test_type_confict - AttributeError: FAILED tests/test_dataset.py::test_dtype_conflict - AttributeError: FAILED tests/test_dataset.py::test_dtype_close - AttributeError: FAILED tests/test_dataset.py::test_create_fillval - AttributeError: FAILED tests/test_dataset.py::test_string - AttributeError: FAILED tests/test_dataset.py::test_dtype - AttributeError: FAILED tests/test_dataset.py::test_len - AttributeError: FAILED tests/test_dataset.py::test_len_scalar - AttributeError: FAILED tests/test_dataset.py::test_iter - AttributeError: FAILED tests/test_dataset.py::test_iter_scalar - AttributeError: FAILED tests/test_dataset.py::test_compund - AttributeError: FAILED tests/test_dataset.py::test_assign - AttributeError: FAILED tests/test_dataset.py::test_set_data - AttributeError: FAILED tests/test_dataset.py::test_mmap - AttributeError: FAILED tests/test_dataset.py::test_modify_view - AttributeError: FAILED tests/test_dataset.py::test_single_index - AttributeError: FAILED tests/test_dataset.py::test_single_null - AttributeError: FAILED tests/test_dataset.py::test_scalar_index - AttributeError: FAILED tests/test_dataset.py::test_scalar_null - AttributeError: FAILED tests/test_dataset.py::test_compound_index - AttributeError: FAILED tests/test_dataset.py::test_negative_stop - AttributeError: FAILED tests/test_dataset.py::test_read - AttributeError: FAILED tests/test_dataset.py::test_write_broadcast - AttributeError: FAILED tests/test_dataset.py::test_write_element - AttributeError: FAILED tests/test_dataset.py::test_write_slices - AttributeError: FAILED tests/test_dataset.py::test_roundtrip - AttributeError: FAILED tests/test_dataset.py::test_slice_zero_length_dimension - AttributeErr... FAILED tests/test_dataset.py::test_slice_other_dimension - AttributeError: FAILED tests/test_dataset.py::test_slice_of_length_zero - AttributeError: FAILED tests/test_dataset.py::test_modify_all - AttributeError: FAILED tests/test_file.py::test_file_init - AttributeError: FAILED tests/test_file.py::test_create - AttributeError: FAILED tests/test_file.py::test_create_exclusive - AttributeError: FAILED tests/test_file.py::test_append - AttributeError: FAILED tests/test_file.py::test_readonly - AttributeError: FAILED tests/test_file.py::test_readwrite - AttributeError: FAILED tests/test_file.py::test_opening_with_different_validate_name - Attrib... FAILED tests/test_file.py::test_open - AttributeError: FAILED tests/test_file.py::test_open_mode - AttributeError: FAILED tests/test_file.py::test_open_two_attrs - AttributeError: FAILED tests/test_file.py::test_close_attrs - AttributeError: FAILED tests/test_file.py::test_close_dataset - AttributeError: FAILED tests/test_group.py::test_get - AttributeError: FAILED tests/test_group.py::test_create_intermediate - AttributeError: FAILED tests/test_group.py::test_open_existing - AttributeError: FAILED tests/test_group.py::test_require_exception - AttributeError: FAILED tests/test_group.py::test_set_item_intermediate - AttributeError: FAILED tests/test_group.py::test_delete_group - AttributeError: FAILED tests/test_group.py::test_delete_group_from_file - AttributeError: FAILED tests/test_group.py::test_delete_raw - AttributeError: FAILED tests/test_group.py::test_readonly_delete_exception - AttributeError: FAILED tests/test_group.py::test_delete_dataset - AttributeError: FAILED tests/test_group.py::test_open - AttributeError: FAILED tests/test_group.py::test_open_deep - AttributeError: FAILED tests/test_group.py::test_values - AttributeError: FAILED tests/test_group.py::test_items - AttributeError: FAILED tests/test_help_functions.py::test_create_object_directory - Attribute... FAILED tests/test_help_functions.py::test_is_nonraw_object_directory - Attrib... FAILED tests/test_help_functions.py::test_root_directory - AttributeError: FAILED tests/test_help_functions.py::test_is_inside_exdir - AttributeError: FAILED tests/test_help_functions.py::test_assert_inside_exdir - AttributeError: FAILED tests/test_help_functions.py::test_open_object - AttributeError: FAILED tests/test_numpy_attributes.py::test_simple - AttributeError: FAILED tests/test_numpy_attributes.py::test_with_quantities - AttributeError: FAILED tests/test_numpy_attributes.py::test_with_quantities_reverse_order - A... FAILED tests/test_object.py::test_open_object - AttributeError: FAILED tests/test_object.py::test_object_attrs - AttributeError: FAILED tests/test_plugins.py::test_noop - AttributeError: FAILED tests/test_plugins.py::test_fail_reading_without_required - AttributeE... FAILED tests/test_plugins.py::test_one_way_scaling - AttributeError: FAILED tests/test_plugins.py::test_scaling - AttributeError: FAILED tests/test_plugins.py::test_attribute_plugin - AttributeError: FAILED tests/test_plugins.py::test_reading_in_order - AttributeError: FAILED tests/test_quantities.py::test_create_quantities_file - AttributeError: FAILED tests/test_quantities.py::test_quantities_attributes - AttributeError: FAILED tests/test_quantities.py::test_create_quantities_data - AttributeError: FAILED tests/test_quantities.py::test_assign_quantities - AttributeError: FAILED tests/test_quantities.py::test_set_quantities - AttributeError: FAILED tests/test_quantities.py::test_mmap_quantities - AttributeError: FAILED tests/test_quantities.py::test_require_quantities - AttributeError: ============ 110 failed, 59 passed, 4 warnings in 284.91s (0:04:44) ============ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.elTs4T (%check) Bad exit status from /var/tmp/rpm-tmp.elTs4T (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-exdir.spec