## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## 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 # downloads LARGE amounts of test data so must be run with network enabled in mock: # --with=tests --enable-network # Note: all tests pass, they just take a lot of bandwidth and time. # 5 tests do not pass because we do not have sonpy in the repos yet. %bcond_with tests %global _description %{expand: Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats, including Spike2, NeuroExplorer, AlphaOmega, Axon, Blackrock, Plexon, Tdt, and support for writing to a subset of these formats plus non-proprietary formats including HDF5. The goal of Neo is to improve interoperability between Python tools for analyzing, visualizing and generating electrophysiology data (such as OpenElectrophy, NeuroTools, G-node, Helmholtz, PyNN) by providing a common, shared object model. In order to be as lightweight a dependency as possible, Neo is deliberately limited to representation of data, with no functions for data analysis or visualization. Neo implements a hierarchical data model well adapted to intracellular and extracellular electrophysiology and EEG data with support for multi-electrodes (for example tetrodes). Neos data objects build on the quantities_ package, which in turn builds on NumPy by adding support for physical dimensions. Thus neo objects behave just like normal NumPy arrays, but with additional metadata, checks for dimensional consistency and automatic unit conversion. Read the documentation at http://neo.readthedocs.io/} %global forgeurl https://github.com/NeuralEnsemble/python-neo Name: python-neo Version: 0.13.3 Release: %autorelease Summary: Represent electrophysiology data in Python %global tag %{version} %forgemeta License: BSD-3-Clause URL: %forgeurl Source0: %forgesource %if %{with tests} # datalad clone of data obtained with these commands: # datalad clone https://gin.g-node.org/NeuralEnsemble/ephy_testing_data # tar -cvzf ephy_testing_data.tar.gz ephy_testing_data Source1: ephy_testing_data.tar.gz %endif BuildArch: noarch # python-pyedflib does not support s390x # https://src.fedoraproject.org/rpms/python-pyedflib/blob/rawhide/f/python-pyedflib.spec ExcludeArch: s390x %description %{_description} %package -n python3-neo Summary: %{summary} BuildRequires: python3-devel BuildRequires: datalad BuildRequires: python3-pillow BuildRequires: python3-pytest # https://github.com/NeuralEnsemble/python-neo/issues/1471: neuroshare is dead # Extra requires: # Not in fedora yet, to be updated as these are added # Recommends: %%{py3_dist stfio} Recommends: %{py3_dist nixio} Recommends: %{py3_dist klusta} Recommends: %{py3_dist scipy} Recommends: %{py3_dist hypy} Recommends: %{py3_dist igor} %description -n python3-neo %{_description} %prep %forgeautosetup # remove rpm's SPECPARTS file rm -rf SPECPARTS %if %{with tests} # datalad needs to know who we are later when it tries to download the data sets git config --global user.email "you@example.com" git config --global user.name "Your Name" # Unpack test data tar in ~ pushd ~ && %{__tar} -xvf %{SOURCE1} && popd %endif # Drop upper bound from numpy and quantities. # Allow building with NumPy 2.x. sed -r \ -e 's/(numpy.*),<.*/\1",/' \ -e 's/(quantities.*),<.*/\1",/' \ -i pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l neo %check # do not export EPHY_TESTING_DATA_FOLDER, use ~ # exclude one that requires "zugbruecke" to open windows dlls? %pyproject_check_import -e *pypl2.pypl2lib* %if %{with tests} %pytest %endif %files -n python3-neo -f %{pyproject_files} %doc README.rst examples doc/source/authors.rst CODE_OF_CONDUCT.md CITATION.txt %changelog ## START: Generated by rpmautospec * Sun Oct 27 2024 Sandro - 0.13.3-2 - Allow building with NumPy 2.x * Tue Sep 03 2024 Packit - 0.13.3-1 - Update to 0.13.3 upstream release - Resolves: rhbz#2309584 * Fri Aug 02 2024 Packit - 0.13.2-1 - Update to 0.13.2 upstream release - Resolves: rhbz#2302443 * Fri Jul 19 2024 Fedora Release Engineering - 0.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.13.1-3 - Rebuilt for Python 3.13 * Thu May 09 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.13.1-2 - feat: add pytest BR (fixes rhbz#2279622) * Tue May 07 2024 Packit - 0.13.1-1 - Update to 0.13.1 upstream release - Resolves: rhbz#2279622 * Mon Feb 05 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.13.0-1 - feat: update to 0.13.0 (fixes rh#2260537) * Mon Feb 05 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.12.0-9 - feat: add packit * Fri Jan 26 2024 Fedora Release Engineering - 0.12.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.12.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Benjamin A. Beasley - 0.12.0-6 - Assert that a license file is present in the .dist-info directory * Fri Jul 21 2023 Fedora Release Engineering - 0.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 0.12.0-4 - Rebuilt for Python 3.12 * Fri Jun 09 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.12.0-3 - fix: remove `SPECPARTS` to fix build * Mon Feb 27 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.12.0-2 - fix: make extra sources conditional on tests * Mon Feb 27 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.12.0-1 - feat: update to 0.12.0 (fixes rhbz#2171134) * Mon Feb 27 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.11.1-3 - feat: use spdx license identifier * Fri Jan 20 2023 Fedora Release Engineering - 0.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 24 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.11.1-1 - feat: update to 0.11.1 (fix rhbz#2137155) * Fri Sep 02 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.11.0-2 - fix: exclude s390x, pyedflib is unavailable there * Fri Sep 02 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.11.0-1 - feat: update to 0.11.0 (fixes rhbz#2123606) * Fri Jul 22 2022 Fedora Release Engineering - 0.10.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 11 2022 Benjamin A. Beasley - 0.10.2-3 - Fix extra newline in description * Sun Jun 26 2022 Benjamin A. Beasley - 0.10.2-2 - Rebuilt for Python 3.11 (fix RHBZ#2099021) * Sat Apr 02 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.10.2-1 - feat: to 0.10.2 (fixes rhbz#2062422) * Fri Mar 04 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.10.1-1 - feat: update to 0.10.1 (fixes rhbz#2060581) * Fri Jan 21 2022 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 30 2021 Ankur Sinha - 0.10.0-1 - Update to latest release * Fri Jul 23 2021 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 28 2020 Ankur Sinha - 0.9.0-1 - Update to latest release * Wed Jul 29 2020 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.8.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 15 2019 Ankur Sinha - 0.8.0-1 - Update to 0.8.0 - Add packaged recommends * Mon Aug 19 2019 Miro Hrončok - 0.8.0-0.3.20190215git49b6041 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.8.0-0.2.20190215git49b6041 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 15 2019 Antonio Trande - 0.8.0-0.1.20190215git49b6041 - Pre-release 0.8.0 - Tests activated * Wed Feb 06 2019 Antonio Trande - 0.7.1-1 - Release 0.7.1 * Sat Feb 02 2019 Fedora Release Engineering - 0.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 08 2018 Ankur Sinha - 0.6.1-6 - Cosmetic improvements - Re-add py2 subpackage but disable from F30+ * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.6.1-5 - Subpackage python2-neo has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jul 01 2018 Miro Hrončok - 0.6.1-3 - Rebuilt for Python 3.7 * Mon Jun 18 2018 Ankur Sinha - 0.6.1-2 - Use python dist macros - Use github source * Sat Jun 09 2018 Ankur Sinha - 0.6.1-1 - Update to latest upstream release - Remove doc subpackage. Use readthedocs instead. - Skip tests, they fetch data from the internet * Sun Jan 07 2018 Ankur Sinha - 0.5.2-1 - Update to latest upstream release - update requires and recommends * Mon Jun 26 2017 Ankur Sinha - 0.5.1-1 - Update to latest upstream release * Wed Feb 01 2017 Ankur Sinha - 0.4.1-1 - Update to latest upstream release * Tue Oct 07 2014 Ankur Sinha 0.3.3-1 - Initial rpmbuild ## END: Generated by rpmautospec