feat: update to 1.5.1

This commit is contained in:
Ankur Sinha (Ankur Sinha Gmail) 2021-10-03 08:43:39 +01:00
commit 59a70b2695
No known key found for this signature in database
GPG key ID: F8D8C0BEBAC898BD
4 changed files with 49 additions and 32 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/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

10
info.json Normal file
View file

@ -0,0 +1,10 @@
{
"VERSION": "1.5.1",
"STATUS": "Release",
"RELEASE": "1.5.1 Release",
"AUTHOR": "Christian Kellner, Adrian Stoewer, Andrey Sobolev, Jan Grewe, Balint Morvai, Achilleas Koutsou",
"COPYRIGHT": "2014-2020, 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,14 +1,19 @@
%{?python_enable_dependency_generator}
%global srcname nixio
%global forgeurl https://github.com/G-node/nixpy
Name: python-%{srcname}
Version: 1.4.9
Release: 14%{?dist}
Name: python-nixio
Version: 1.5.1
Release: %autorelease
Summary: Python bindings for NIX
%global tag %{version}
%forgemeta
License: BSD
URL: https://github.com/G-node/nixpy
Source0: https://github.com/G-node/nixpy/archive/%{version}/%{name}-%{version}.tar.gz
URL: %{forgeurl}
Source0: %{forgesource}
# 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
BuildArch: noarch
@ -26,41 +31,41 @@ 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}
%package -n python3-nixio
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: gcc
BuildRequires: %{py3_dist h5py}
BuildRequires: %{py3_dist numpy}
# use tests_require which is deprecated
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-runner}
BuildRequires: %{py3_dist setuptools}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: %{py3_dist scipy}
BuildRequires: %{py3_dist pillow}
BuildRequires: %{py3_dist matplotlib}
%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
The current implementations store the actual data using the HDF5 file format as
a storage backend.
%description -n python3-nixio
%{description}
%package doc
Summary: %{summary}
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
%description doc
Documentation files for %{name}.
%prep
%autosetup -n nixpy-%{version}
rm -fr *egg-info
%forgesetup
# 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 -r
%build
%py3_build
%pyproject_wheel
PYTHONPATH=. sphinx-build-3 docs/source html
# Remove unneeded files
@ -74,21 +79,22 @@ for f in html/_downloads/*/*.py; do
done
%install
%py3_install
%pyproject_install
%pyproject_save_files nixio
%check
%{__python3} setup.py test
%{pytest}
%files -n python3-%{srcname}
%license LICENSE
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{srcname}/
%files -n python3-nixio -f %{pyproject_files}
%{_bindir}/nixio
%files doc
%doc README.rst html
%license LICENSE
%changelog
%autochangelog
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (python-nixio-1.4.9.tar.gz) = b7925ff6a0d04434c88f214dd7b557bf7ff9180b3d25fa639a289e0610e7c0abc6bbc34ecd7c03a97bec11c6b6e8268598b1b16345a7cc085479f44136e0f1ef
SHA512 (nixpy-1.5.1.tar.gz) = 0afff4bdb39c6074acfd581d1762eb0ef1b3ca337d1c314a788727904ed1c16d0ef704254ef00a613a92aaf6430fbbd271999dee9b682ce1a8bf0df4f9409012