Compare commits

...
Sign in to create a new pull request.

53 commits

Author SHA1 Message Date
Python Maint
ec936fdcf9 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:50:14 +02:00
Python Maint
81ba8fa429 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:14:13 +02:00
Fedora Release Engineering
2af42a40df Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 09:04:04 +00:00
Python Maint
285c473c57 Rebuilt for Python 3.14 2025-06-03 21:15:55 +02:00
Tim Landscheidt
8710162d43 Fix package description for python3-nixio 2025-03-26 10:09:03 +00:00
Benjamin A. Beasley
0de39b50f4 Remove deprecated pytest-runner dependency
- Since the patch offered upstream introduces a "test" extra, use it
- Assert that .dist-info contains a license file
2025-02-20 11:33:33 -05:00
Fedora Release Engineering
7a19d76dc2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 16:35:22 +00:00
Benjamin A. Beasley
6c4f00285c Update to 1.5.4 (close RHBZ#2324542) 2024-12-06 10:19:13 -05:00
Benjamin A. Beasley
7477ef8e86 Remove bogus BuildRequires: gcc 2024-12-06 10:18:24 -05:00
Benjamin A. Beasley
afba59758e Correctly update License to SPDX 2024-12-06 10:15:23 -05:00
Benjamin A. Beasley
d1a96adae4 Omit lenna.png from the source archive
- https://pagure.io/neuro-sig/NeuroFedora/issue/576
- https://github.com/G-Node/nixpy/issues/545
2024-12-06 10:14:50 -05:00
Benjamin A. Beasley
de4e9df2dc Drop default -r argument from %pyproject_buildrequires
[skip changelog]
2024-12-06 10:14:50 -05:00
Miroslav Suchý
09ba63a0f2 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 20:20:14 +02:00
Fedora Release Engineering
a0b5ab00dd Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 13:29:06 +00:00
Python Maint
0e1270d679 Rebuilt for Python 3.13 2024-06-08 20:58:42 +02:00
Fedora Release Engineering
fee9c6ba7b Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 07:18:31 +00:00
Fedora Release Engineering
3d3dcb71e5 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 03:55:30 +00:00
Fedora Release Engineering
c5965ad6ee Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 11:44:32 +00:00
Python Maint
47b081258f Rebuilt for Python 3.12 2023-07-12 09:27:34 +02:00
Ankur Sinha (Ankur Sinha Gmail)
d46165d7e6
feat: drop sphinx docs subpackage
since sphinx generated docs are not appropriate for packaging
2023-07-06 12:14:41 +01:00
Ankur Sinha (Ankur Sinha Gmail)
bcc083daff
chore: use rpmautospec 2023-07-06 12:13:53 +01:00
Fedora Release Engineering
11b15855a7 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 15:03:06 +00:00
Fedora Release Engineering
13688bd36b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 20:21:16 +00:00
Python Maint
aa4900973b Rebuilt for Python 3.11 2022-06-15 13:25:29 +02:00
Ankur Sinha (Ankur Sinha Gmail)
6c2900a4a4
feat: to 1.5.3 (fixes rhbz#2068562) 2022-04-02 21:40:13 +01:00
Fedora Release Engineering
646d9c43f9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 13:44:21 +00:00
Vanessa_kris
ba6b571b79 update to latest release 2021-12-30 20:11:54 +01:00
Ankur Sinha (Ankur Sinha Gmail)
e20c390ede
fix: remove autochangelog/autorelease
This keeps koji happy. Unsure why.
TODO: file bug with rpmautospec, or post to -devel
2021-10-03 09:03:10 +01:00
Ankur Sinha (Ankur Sinha Gmail)
15c4f7a906
fix: tweak macros to make koji happy
Didn't get any errors on mock, but koji says:

```
error: /builddir/build/SPECS/python-nixio.spec: line 157: Macro % has
illegal name (%global)
  0<  (%global)
  - Remove useless
```
2021-10-03 08:51:15 +01:00
Ankur Sinha (Ankur Sinha Gmail)
59a70b2695
feat: update to 1.5.1 2021-10-03 08:43:39 +01:00
Fedora Release Engineering
e71fb190fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 07:47:41 +00:00
Python Maint
f5133ef642 Rebuilt for Python 3.10 2021-06-04 20:47:15 +02:00
Fedora Release Engineering
d7b42b300e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 11:55:47 +00:00
Fedora Release Engineering
cbbb427f75 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 02:23:24 +00:00
Miro Hrončok
bd13fcad72 Replace Python version glob with macro (needed for Python 3.10+)
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
2020-07-13 21:04:35 +02:00
Ankur Sinha (Ankur Sinha Gmail)
0ea87106f2
Explicitly BR setuptools 2020-06-25 11:17:56 +01:00
Miro Hrončok
8f136a3d9f Rebuilt for Python 3.9 2020-05-26 03:26:56 +02:00
Fedora Release Engineering
6d59f71aae - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 13:37:11 +00:00
Miro Hrončok
95b43cf92b Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 14:20:04 +02:00
Miro Hrončok
d28fe3458c Rebuilt for Python 3.8 2019-08-19 10:47:05 +02:00
Fedora Release Engineering
999c9e467a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 14:46:30 +00:00
Ankur Sinha (Ankur Sinha Gmail)
5ae2757388
Fix build 2019-07-10 21:06:15 +01:00
Fedora Release Engineering
0249f38222 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 07:58:27 +00:00
Igor Gnatenko
11d4cae80e
Enable python dependency generator
References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-15 15:52:00 +01:00
Ankur Sinha (Ankur Sinha Gmail)
2b45136140
Update to 1.4.9 2019-01-12 10:14:31 +00:00
Zbigniew Jędrzejewski-Szmek
469ce67e94 Add BR:gcc
"cc" is called in tests.
2018-10-18 10:39:47 +02:00
Zbigniew Jędrzejewski-Szmek
adc1676510 Remove useless %global 2018-10-18 10:38:56 +02:00
Zbigniew Jędrzejewski-Szmek
b65ad55bbf Subpackage python2-nixio has been removed 2018-10-18 10:36:49 +02:00
Ankur Sinha (Ankur Sinha Gmail)
9bef11db7f
Update to 1.4.6 2018-07-19 12:36:45 -07:00
Fedora Release Engineering
22a509f5af - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 01:07:35 +00:00
Miro Hrončok
8e8ed3ad74 Rebuilt for Python 3.7 2018-06-19 11:10:22 +02:00
Ankur Sinha (Ankur Sinha Gmail)
4b5b614906
Update to new version 2018-06-09 22:02:27 +01:00
Fedora Release Engineering
78901b9c01 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 09:11:10 +00:00
7 changed files with 261 additions and 100 deletions

8
.gitignore vendored
View file

@ -1 +1,9 @@
/python-nixio-1.4.3.tar.gz
/python-nixio-1.4.5.tar.gz
/python-nixio-1.4.6.tar.gz
/python-nixio-1.4.9.tar.gz
/nixpy-1.5.1.tar.gz
/nixpy-1.5.2.tar.gz
/nixpy-1.5.3.tar.gz
/nixpy-1.5.3-filtered.tar.gz
/nixpy-1.5.4-filtered.tar.gz

View file

@ -0,0 +1,34 @@
From b550f88e64c01194029a50b92d94955c39bf169f Mon Sep 17 00:00:00 2001
From: Sandro <devel@penguinpee.nl>
Date: Tue, 24 Dec 2024 09:08:28 +0100
Subject: [PATCH] Remove deprecated pytest-runner dependency
The `pytest-runner` project has been deprecated since 2019 and has been
archived on git hub in December 2024.
This removes the dependency on the deprecated package and also removes
deprecated keywords from `setup.py` related to it.
---
setup.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 16379a5..be594d5 100644
--- a/setup.py
+++ b/setup.py
@@ -75,9 +75,9 @@ setup(
packages=packages,
scripts=[],
python_requires=">=3.6",
- tests_require=['pytest', 'scipy', 'pillow', 'matplotlib'],
- test_suite='pytest',
- setup_requires=['pytest-runner'],
+ extras_require={
+ "test": ['pytest', 'scipy', 'pillow', 'matplotlib'],
+ },
install_requires=['numpy', 'h5py', 'six', 'enum34;python_version<"3.4"'],
package_data={'nixio': [license_text, description_text]},
include_package_data=True,
--
2.48.1

91
changelog Normal file
View file

@ -0,0 +1,91 @@
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.5.3-2
- Rebuilt for Python 3.11
* Sat Apr 02 2022 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.5.3-1
- Update to latest release
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Dec 30 2021 Vanessa Christopher <vanessaigwe1@gmail.com> - 1.5.2-1
- Update to latest release
* Sun Oct 03 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.5.1-1
- Update to latest release
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.9-13
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jun 25 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.9-10
- Explicitly BR setuptools
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.9-9
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.9-7
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.9-6
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jul 10 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.9-4
- Fix build: rhbz 1706159
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 15 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.9-2
- Enable python dependency generator
* Sat Jan 12 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.9-1
- Update to 1.4.9
* Thu Oct 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.6-2
- Subpackage python2-nixio has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Wed Jul 18 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.6-1
- Update to 1.4.6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-2
- Rebuilt for Python 3.7
* Sat Jun 09 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.5-1
- Update to latest upstream release
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Jan 21 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.3-1
- Use newer release and GitHub sources
- Run tests
- Define summary macro
- Add doc sub package
* Fri Jan 12 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.2-1
- Initial build
- use pydist macro

50
get_source Executable file
View file

@ -0,0 +1,50 @@
#!/bin/sh
set -o errexit
set -o nounset
if [ "$#" != '1' ]
then
cat 1>&2 <<EOF
Usage: $0 VERSION
Downloads the requested version and creates a filtered source tarball.
EOF
exit 1
fi
VERSION="${1}"
OUTDIR="${PWD}"
TMPDIR="$(mktemp -d)"
trap "rm -rf '${TMPDIR}'" INT TERM EXIT
cd "${TMPDIR}"
REPO="https://github.com/G-node/nixpy"
URL="${REPO}/archive/${VERSION}/nixpy-${VERSION}.tar.gz"
echo "--> Downloading: ${URL}" 1>&2
curl -L -O "${URL}"
ARCHIVE="$(find . -mindepth 1 -maxdepth 1 -type f -name '*.tar.gz' -print -quit)"
echo "--> Extracting: $(basename "${ARCHIVE}")" 1>&2
tar -xzf "${ARCHIVE}"
echo '--> Removing Lenna/Lena image due to licensing and other issues' 1>&2
TARDIR="$(basename "${ARCHIVE}" '.tar.gz')"
MTIME="$(stat -c '%Y' "${TARDIR}")"
# https://github.com/G-Node/nixpy/issues/545
find "${TARDIR}" -type f -name lenna.png -print -delete
# Make sure the original mtime is preserved even if we modified the base
# directory by removing something at the top level. (So far, we didnt.)
touch -d @"${MTIME}" "${TARDIR}"
FILTERED="$(basename "${ARCHIVE}" .tar.gz)-filtered.tar.gz"
echo "--> Re-archiving: ${FILTERED}" 1>&2
# https://www.gnu.org/software/tar/manual/html_section/Reproducibility.html
TZ=UTC LC_ALL=C tar \
--create \
--sort=name \
--format=posix \
--numeric-owner --owner=0 --group=0 \
--mode=go+u,go-w \
--pax-option='delete=atime,delete=ctime' \
"${TARDIR}/" |
gzip -9 > "${FILTERED}"
mv -v "${FILTERED}" "${OUTDIR}"
echo 'Done.' 1>&2

10
info.json Normal file
View file

@ -0,0 +1,10 @@
{
"VERSION": "1.5.2",
"STATUS": "Release",
"RELEASE": "1.5.2 Release",
"AUTHOR": "Christian Kellner, Adrian Stoewer, Andrey Sobolev, Jan Grewe, Balint Morvai, Achilleas Koutsou",
"COPYRIGHT": "2014-2021, German Neuroinformatics Node, Christian Kellner, Adrian Stoewer, Andrey Sobolev, Jan Grewe, Balint Morvai, Achilleas Koutsou",
"CONTACT": "dev@g-node.org",
"BRIEF": "Python reimplementation of NIXIO (http://g-node.github.io/nix/)",
"HOMEPAGE": "https://github.com/G-Node/nixpy"
}

View file

@ -1,123 +1,91 @@
%global srcname nixio
%global sum Python bindings for NIX
%global forgeurl https://github.com/G-node/nixpy
Name: python-%{srcname}
Version: 1.4.3
Release: 1%{?dist}
Summary: %{sum}
%global desc \
The NIX project started as an initiative within the Electrophysiology Task \
Force a part of the INCF Data sharing Program. The NIX data model allows to \
store fully annotated scientific data-set, i.e. the data together with its \
metadata within the same container. Our aim is to achieve standardization by \
providing a common/generic data structure for a multitude of data types. See \
the wiki for more information \
\
The current implementations store the actual data using the HDF5 file format as \
a storage backend.
License: BSD
URL: https://github.com/G-node/nixpy
Source0: https://github.com/G-node/nixpy/archive/%{version}/%{name}-%{version}.tar.gz
Name: python-nixio
Version: 1.5.4
Release: %autorelease
Summary: Python bindings for NIX
%global tag %version
%forgemeta
License: BSD-3-Clause
URL: %forgeurl
# We need to upload a filtered version of the source archive because
# docs/source/examples/lenna.png has several issues, including the lack of a
# license. We have asked upstream to deal with this in
# Please consider replacing lenna.png
# https://github.com/G-Node/nixpy/issues/545
# but for now, we must obtain the filtered archive by running the script in
# Source2:
# ./get_source ${VERSION}
%dnl Source0: %forgesource
Source0: nixpy-%{version}-filtered.tar.gz
# The tagged snapshot on GitHub still says "dev" but the manually uploaded
# release does not, so use the info.json from there
# https://github.com/G-Node/nixpy/issues/528
Source1: info.json
# * Script used to obtain Source0: ./get_source %%{version}
Source2: get_source
# Remove deprecated pytest-runner dependency
# https://github.com/G-Node/nixpy/pull/547
# Rebased on 1.5.4, without changes to GitHub CI configuration
# https://fedoraproject.org/wiki/Changes/DeprecatePythonPytestRunner
Patch: 0001-Remove-deprecated-pytest-runner-dependency.patch
BuildArch: noarch
# No need for nix, they're uncoupling it from the C++
# https://github.com/G-Node/nixpy/pull/276
%description
The NIX project started as an initiative within the Electrophysiology Task
Force a part of the INCF Data sharing Program. The NIX data model allows to
store fully annotated scientific data-set, i.e. the data together with its
metadata within the same container. Our aim is to achieve standardization by
providing a common/generic data structure for a multitude of data types. See
the wiki for more information
The current implementations store the actual data using the HDF5 file format as
a storage backend.
%package -n python2-%{srcname}
Summary: %{sum}
BuildRequires: python2-devel
BuildRequires: %{py2_dist pytest numpy h5py pytest-runner}
Requires: %{py2_dist numpy h5py}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
The NIX project started as an initiative within the Electrophysiology Task
Force a part of the INCF Data sharing Program. The NIX data model allows to
store fully annotated scientific data-set, i.e. the data together with its
metadata within the same container. Our aim is to achieve standardization by
providing a common/generic data structure for a multitude of data types. See
the wiki for more information
The current implementations store the actual data using the HDF5 file format as
a storage backend.
%package -n python3-%{srcname}
Summary: %{sum}
BuildRequires: python3-devel
BuildRequires: %{py3_dist pytest numpy h5py pytest-runner}
Requires: %{py3_dist numpy h5py}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
The NIX project started as an initiative within the Electrophysiology Task
Force a part of the INCF Data sharing Program. The NIX data model allows to
store fully annotated scientific data-set, i.e. the data together with its
metadata within the same container. Our aim is to achieve standardization by
providing a common/generic data structure for a multitude of data types. See
the wiki for more information
%description %{desc}
The current implementations store the actual data using the HDF5 file format as
a storage backend.
%package -n python3-nixio
Summary: %{summary}
%package doc
Summary: %{sum}
BuildRequires: python3-sphinx
%description doc
Documentation files for %{name}.
%description -n python3-nixio %{desc}
%prep
%autosetup -n nixpy-%{version}
rm -fr *egg-info
%autosetup -n nixpy-%{version} -p1
# it sets examples_path based on the name of the cwd
sed -i "s/nixpy/nixpy-%{version}/" nixio/test/test_doc_examples.py
cp %{SOURCE1} nixio/info.json -v -p
%generate_buildrequires
%pyproject_buildrequires -x test
%build
%py2_build
%py3_build
PYTHONPATH=. sphinx-build-3 docs/source html
# Remove unneeded files
rm -fr html/.{buildinfo,doctrees}
# Remove shebang from documentation examples
for f in html/_downloads/*.py; do
sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new &&
touch -r $f $f.new &&
mv $f.new $f
done
%pyproject_wheel
%install
%py2_install
%py3_install
%pyproject_install
%pyproject_save_files -l nixio
%check
%{__python2} setup.py test
%{__python3} setup.py test
# These require the removed lenna.png sample file:
k="${k-}${k+ and }not (TestDocumentationExamples and test_image_data)"
k="${k-}${k+ and }not (TestDocumentationExamples and test_image_with_metadata)"
k="${k-}${k+ and }not (TestDocumentationExamples and test_multiple_rois)"
k="${k-}${k+ and }not (TestDocumentationExamples and test_single_roi)"
%files -n python2-%{srcname}
%license LICENSE
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
%{python2_sitelib}/%{srcname}/
%pytest -k "${k-}"
%files -n python3-%{srcname}
%license LICENSE
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
%{python3_sitelib}/%{srcname}/
%files doc
%doc README.rst html
%license LICENSE
%files -n python3-nixio -f %{pyproject_files}
%{_bindir}/nixio
%changelog
* Sun Jan 21 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.3-1
- Use newer release and GitHub sources
- Run tests
- Define summary macro
- Add doc sub package
* Fri Jan 12 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.4.2-1
- Initial build
- use pydist macro
%autochangelog

View file

@ -1 +1 @@
SHA512 (python-nixio-1.4.3.tar.gz) = 9311a05a43a85cc9bfb3bf0aa1f329d6864d5ac311ca52ff51fd4576edca641a86cf693cc4f49dcb0dde7738a1404f0a6cfff361793e7e856e3c7035b2eb4ab8
SHA512 (nixpy-1.5.4-filtered.tar.gz) = 7842e1643df0b234b8de7f8c1c30875ad70ed2681561ecf570ffff2849f60ea9510e7dba3b6544e8f507eed2583925d52d29c348cc49b2d5da0a22c686e3173d