## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global desc %{expand: PyNWB is a Python package for working with NWB files. It provides a high-level API for efficiently working with Neurodata stored in the NWB format. https://pynwb.readthedocs.io/en/latest/} Name: python-pynwb Version: 2.1.0 Release: %autorelease Summary: PyNWB is a Python package for working with NWB files License: BSD URL: https://github.com/NeurodataWithoutBorders/pynwb # Use the pypi tar because GitHub tar does not include the required git-submodules Source0: %{pypi_source pynwb} BuildArch: noarch %description %{desc} %package -n python3-pynwb Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest %description -n python3-pynwb %{desc} %prep %autosetup -n pynwb-%{version} # test_validate uses python instead of python3 sed -i 's|python|python3|' tests/validation/test_validate.py # unpin deps for i in requirements*txt do sed -i 's/==.*//' $i done sed -i -e "s/h5py>.*'/h5py'/" -e "s/numpy>.*'/numpy'/" -e "s/pandas>.*'/pandas'/" setup.py %generate_buildrequires %pyproject_buildrequires -r requirements.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pynwb %check # do not run ros tests (--ros3) export PYTHONPATH=".:%{buildroot}/%{python3_sitelib}:%{buildroot}/%{python3_sitearch}" # run unit tests using pytest so that we can exclude tests that fail etc., which is hard to do with the test.py script # Disable test which fails on s390x on F34 %if 0%{?fedora} < 35 && "%{_host_cpu}" == "s390x" || "%{_host_cpu}" == "ppc64le" %{pytest} tests/unit -k "not test_icephys_filtering_roundtrip" %else %{pytest} tests/unit %endif %{python3} test.py --example --validation --integration --backwards %files -n python3-pynwb -f %{pyproject_files} %license license.txt %doc README.rst %changelog * Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Aug 15 2022 Ankur Sinha (Ankur Sinha Gmail) - 2.1.0-1 - feat: update to 2.1.0 (fixes rhbz#2113648) * Fri Jul 22 2022 Fedora Release Engineering - 2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Ankur Sinha (Ankur Sinha Gmail) - 2.0.0-6 - feat: clean up spec file - move to pyproject macros - unpin dep versions * Fri Aug 27 2021 Ankur Sinha - 2.0.0-4 - Also disable test on ppc64le where it fails too * Fri Aug 27 2021 Ankur Sinha - 2.0.0-3 - Disable failing test on F34 only * Fri Aug 27 2021 Ankur Sinha - 2.0.0-2 - Disable tests that fails on s390x * Mon Aug 16 2021 Ankur Sinha - 2.0.0-1 - Update to latest release * Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.4.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 22 2020 Ankur Sinha - 1.4.0-1 - Update to 1.4.0 * Sun Aug 09 2020 Luis Bazan - 1.3.3-1 - New upstream version * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.1-2 - Rebuilt for Python 3.9 * Sun Feb 16 2020 Ankur Sinha - 1.2.1-1 - Update to new release * Thu Jan 30 2020 Fedora Release Engineering - 1.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 9 2020 Zbigniew Jędrzejewski-Szmek - 1.1.2-2 - Remove dependency on unittest2 (#1789200) * Fri Oct 25 2019 Ankur Sinha - 1.1.2-1 - Update to 1.1.2 * Tue Sep 24 2019 Luis Bazan - 1.1.0-2 - disable test * Mon Sep 23 2019 Luis Bazan - 1.1.0-1 - New upstream version * Mon Aug 19 2019 Miro Hrončok - 1.0.3-2 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Luis Bazan - 1.0.3-1 - New upstream version * Mon Apr 22 2019 Luis Bazan - 1.0.2-1 - New upstream version * Mon Apr 15 2019 Luis Bazan - 1.0.1-2 - remove py2 * Mon Apr 15 2019 Luis Bazan - 1.0.1-1 - New upstream version * Sat Feb 02 2019 Fedora Release Engineering - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 26 2018 Luis Bazan - 0.6.1-3 - Add buildrequires - Enable tests (thanks Ankur) * Mon Nov 26 2018 Luis Bazan - 0.6.1-2 - Fix comment 2 in BZ 1651365 * Mon Nov 26 2018 Luis Bazan - 0.6.1-1 - New upstream