## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without tests %global _description %{expand: PyBIDS is a Python module to interface with datasets conforming BIDS. Documentation can be found online at https://bids-standard.github.io/pybids/ } Name: python-pybids Version: 0.15.5 Release: %autorelease Summary: Interface with datasets conforming to BIDS License: MIT URL: https://bids.neuroimaging.io Source0: https://github.com/bids-standard/pybids/archive/%{version}/pybids-%{version}.tar.gz # included as a git-submodule upstream %global examples_version 1.8.0 Source1: https://github.com/bids-standard/bids-examples/archive/%{examples_version}/bids-examples.tar.gz BuildArch: noarch # tests fail on 32 bit systems, so let's just drop i686 ExcludeArch: %{ix86} %description %{_description} %package -n python3-pybids Summary: Interface with datasets conforming to BIDS BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} # unbundled BuildRequires: %{py3_dist inflect} Requires: %{py3_dist inflect} %description -n python3-pybids %{_description} %package doc Summary: Examples for pybids %description doc Description for %{name}. %prep %autosetup -n pybids-%{version} # Remove bundled inflect rm -rf bids/external pushd bids sed -ibackup 's/from.*external import/import/' layout/layout.py popd # unpin formulaic requirement # https://github.com/bids-standard/pybids/issues/915 # https://github.com/bids-standard/pybids/pull/916 sed -i 's/formulaic.*/formulaic/' setup.cfg %{__tar} -xf %{SOURCE1} mv bids-examples-%{examples_version} bids-examples %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files bids %check %if %{with tests} PYTHONPATH=. %{pytest} -s -v . %else %pyproject_check_import %endif %files -n python3-pybids -f %{pyproject_files} %doc README.md %{_bindir}/pybids %files doc %doc bids-examples/ %license LICENSE %changelog * Fri Jan 20 2023 Fedora Release Engineering 0.15.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Nov 10 2022 Ankur Sinha (Ankur Sinha Gmail) 0.15.5-2 - chore: drop i686 support (tests fail) * Thu Nov 10 2022 Ankur Sinha (Ankur Sinha Gmail) 0.15.5-1 - feat: update to 0.15.5 (fix rhbz#1996270, fix rhbz#2113646) - drops doc generation - enables all tests by default - updates to use pyproject rpm macros * Fri Jul 22 2022 Fedora Release Engineering - 0.13.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 11 2022 Benjamin A. Beasley - 0.13.1-5 - Fix extra newline in description - Drop unnecessary python_enable_dependency_generator macro - Switch URL to HTTPS * Fri Jan 21 2022 Fedora Release Engineering - 0.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.13.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.13.1-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Ankur Sinha - 0.13.1-1 - Update to latest release * Wed Jan 27 2021 Fedora Release Engineering - 0.12.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 28 2020 Ankur Sinha - 0.12.4-1 - Update to 0.12.4 * Sun Sep 13 2020 Ankur Sinha - 0.12.1-1 - Update to new release * Fri Sep 04 2020 Ankur Sinha - 0.12.0-1 - Update to 0.12.0 * Wed Jul 29 2020 Fedora Release Engineering - 0.10.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.10.2-2 - Rebuilt for Python 3.9 * Tue Apr 21 2020 Ankur Sinha - 0.10.2-1 - Update to 0.10.2 * Thu Jan 30 2020 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Dec 12 2019 Aniket Pradhan - 0.10.0-1 - Bumped to v0.10.0 * Tue Oct 1 2019 Aniket Pradhan - 0.9.4-1 - Bumped to v0.9.4 * Thu Aug 22 2019 Aniket Pradhan - 0.9.3-1 - Bumped to v0.9.3 * Mon Aug 19 2019 Miro Hrončok - 0.9.1-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 27 2019 Ankur Sinha - 0.9.1-1 - Update to 0.9.1 * Mon Apr 08 2019 Ankur Sinha - 0.8.0-1 - Update the latest release - Drop dropped grabbit dep - Add new BR: python-bids-validator: requires review: 1697498 - Unbundle new bundled libs * Sat Feb 02 2019 Fedora Release Engineering - 0.6.5-3.gite35ced6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 12 2018 Ankur Sinha - 0.6.5-2.gite35ced6 - Use bconds * Wed Nov 07 2018 Ankur Sinha - 0.6.5-1.gite35ced6 - Use latest git snapshot that fixes tests - Add documentation and examples in subpackage * Wed Nov 07 2018 Ankur Sinha - 0.6.3-2 - Enable tests now that duecredit is available in rawhide - Disable py2 build since python-nibabel is only py3 even in F29 * Fri Jul 20 2018 Ankur Sinha - 0.6.3-1 - Update to latest release - Use py.test - Disable tests until nibabel is fixed * Mon Jan 15 2018 Ankur Sinha - 0.4.2-2 - Use github source for license and test suite - Fix requires and build requires * Fri Jan 12 2018 Ankur Sinha - 0.4.2-1 - Initial build