%global pypi_name datalad-fuse Name: python-%{pypi_name} Version: 0.5.1 Release: 1%{?dist} Summary: DataLad extension for reading annexed files over HTTP and FUSE License: MIT URL: https://github.com/datalad/datalad-fuse Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel # DataLad imports and its extension entry points need git and git-annex at import time BuildRequires: git-core BuildRequires: git-annex %global _description %{expand: datalad-fuse adds fsspec-head, which reads parts of annexed files from their URLs without downloading them, and fusefs, which mounts a dataset with FUSE so annexed files are fetched on access. It is a DataLad extension: installing it adds commands and functionality to the datalad command and Python API.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n datalad-fuse-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Build helpers some DataLad-template projects install at top level; not part of the package. rm -rf %{buildroot}%{python3_sitelib}/_datalad_buildsupport %{buildroot}%{python3_sitelib}/tools %{buildroot}%{python3_sitelib}/benchmarks %{buildroot}%{python3_sitelib}/tests %{buildroot}%{python3_sitelib}/tests.py # Old setup.py data_files can drop these at the top of site-packages (osfclient does). rm -f %{buildroot}%{python3_sitelib}/{LICENSE,VERSION,requirements.txt} %pyproject_save_files -L datalad_fuse %check export HOME=$PWD git config --global user.name mockbuild && git config --global user.email mockbuild@localhost %pyproject_check_import -e 'datalad_fuse.tests*' -e 'datalad_fuse.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' -e '*.resources.procedures.*' # The extension registers with DataLad: its command suite loads through datalad's API. %{py3_test_envvars} %{python3} - <<'EOF' from importlib.metadata import entry_points eps = [e for e in entry_points(group='datalad.extensions') if e.value.startswith('datalad_fuse')] assert eps, 'no datalad.extensions entry point for datalad_fuse' for e in eps: suite = e.load() print(e.name, '->', suite[0] if isinstance(suite, tuple) else suite) EOF %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %changelog * Mon Oct 12 2026 Morgan Hough - 0.5.1-1 - Initial package, for the DataLad extension stack and dandi.