From 98988e6f43d6682901ba9d982d0edc6238b8a435 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Aug 16 2021 20:38:18 +0000 Subject: feat: update to 2.0.0 --- diff --git a/.gitignore b/.gitignore index 5eab645..5a1efb7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /pynwb-1.2.1.tar.gz /pynwb-1.3.3.tar.gz /pynwb-1.4.0.tar.gz +/pynwb-2.0.0.tar.gz diff --git a/python-pynwb.spec b/python-pynwb.spec index e577f02..988a1e4 100644 --- a/python-pynwb.spec +++ b/python-pynwb.spec @@ -1,6 +1,3 @@ -# Enabled by default -%bcond_with tests - %global pypi_name pynwb %global desc %{expand: @@ -9,20 +6,19 @@ API for efficiently working with Neurodata stored in the NWB format. https://pynwb.readthedocs.io/en/latest/} Name: python-%{pypi_name} -Version: 1.4.0 -Release: 4%{?dist} +Version: 2.0.0 +Release: 1%{?dist} Summary: PyNWB is a Python package for working with NWB files License: BSD URL: https://github.com/NeurodataWithoutBorders/pynwb -Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +# Use the pypi tar because GitHub tar does not include the required git-submodules +Source0: %{pypi_source} BuildArch: noarch %{?python_enable_dependency_generator} %description %{desc} -%{?python_provide:%python_provide python2-%{pypi_name}} - %package -n python3-%{pypi_name} Summary: %{summary} @@ -41,21 +37,14 @@ BuildRequires: python3-urllib3 BUildRequires: python3-pandas BuildRequires: python3-hdmf -%{?python_provide:%python_provide python3-%{pypi_name}} - %description -n python3-%{pypi_name} %{desc} %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info -# Multiple tests fail on this one file: -# An issue should be filed upstream -# get_build_manager should be get_manager -# forms should be pynwb.forms -# .. ? -rm -f tests/build_fake_data.py -rm -f tests/unit/__init__.py +# test_validate uses python instead of python3 +sed -i 's|python|python3|' tests/validation/test_validate.py %build %py3_build @@ -64,9 +53,8 @@ rm -f tests/unit/__init__.py %py3_install %check -%if %{with tests} -%{__python3} setup.py test -%endif +# do not run ros tests (--ros3) +PYTHONPATH=".:%{buildroot}/%{python3_sitelib}:%{buildroot}/%{python3_sitearch}" %{__python3} test.py --pynwb --example --validation --integration --backwards %files -n python3-%{pypi_name} %license license.txt @@ -75,6 +63,9 @@ rm -f tests/unit/__init__.py %{python3_sitelib}/%{pypi_name}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index a3a5108..46bb1a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pynwb-1.4.0.tar.gz) = 5f874af50a03edfc6ffcb9678513f5bf31615e031ee2f0f409f71563888aee03095012a4be2bc5c4122a25e8f8e3d5411a3204527537eda68ebfba9dae3c8e2a +SHA512 (pynwb-2.0.0.tar.gz) = 4afc319fd9cce0c1e81589236237f9a28b69dd846d96849ae5cc554287a6dd124fd421f700736dbb714cfbe6f260e79f374d1dd63ee92c2776f5173654d61f9a