|
 |
d0bf068 |
# Lots of tests fail, even in a clean pip environment
|
|
 |
d0bf068 |
%bcond_with tests
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%global _description %{expand: \
|
|
 |
d0bf068 |
PyBIDS is a Python module to interface with datasets conforming BIDS.
|
|
 |
d0bf068 |
}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%global srcname pybids
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
Name: python-%{srcname}
|
|
 |
03a95fa |
Version: 0.13.1
|
|
 |
03a95fa |
Release: 1%{?dist}
|
|
 |
d0bf068 |
Summary: Interface with datasets conforming to BIDS
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
License: MIT
|
|
 |
d0bf068 |
URL: http://bids.neuroimaging.io
|
|
 |
37f3000 |
Source0: https://github.com/INCF/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
BuildArch: noarch
|
|
 |
d0bf068 |
|
|
 |
72d0851 |
%{?python_enable_dependency_generator}
|
|
 |
d0bf068 |
|
|
 |
72d0851 |
%description
|
|
 |
d0bf068 |
%{_description}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%package -n python3-%{srcname}
|
|
 |
d0bf068 |
Summary: Interface with datasets conforming to BIDS
|
|
 |
d0bf068 |
BuildRequires: python3-devel
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist setuptools}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist pytest}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist matplotlib}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist grabbit} >= 0.2.5
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist num2words}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist duecredit}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist nibabel}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist patsy}
|
|
 |
37f3000 |
BuildRequires: %{py3_dist bids-validator}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist scipy}
|
|
 |
72d0851 |
BuildRequires: %{py3_dist sqlalchemy}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%description -n python3-%{srcname}
|
|
 |
d0bf068 |
%{_description}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%package doc
|
|
 |
d0bf068 |
Summary: Interface with datasets conforming to BIDS
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist sphinx}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist sphinx_rtd_theme}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist m2r}
|
|
 |
d0bf068 |
BuildRequires: %{py3_dist numpydoc}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%description doc
|
|
 |
d0bf068 |
Description for %{name}.
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%prep
|
|
 |
37f3000 |
%autosetup -n %{srcname}-%{version}
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
# stray backup file?
|
|
 |
d0bf068 |
rm -rf *.egg-info
|
|
 |
d0bf068 |
|
|
 |
c2f075a |
# Remove bundled six and inflect
|
|
 |
c2f075a |
rm -rf bids/external
|
|
 |
c2f075a |
|
|
 |
c2f075a |
pushd bids
|
|
 |
72d0851 |
sed -ibackup 's/from.*external import/import/' layout/{layout,index,models}.py utils.py
|
|
 |
c2f075a |
popd
|
|
 |
c2f075a |
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%build
|
|
 |
d0bf068 |
%py3_build
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
pushd doc && \
|
|
 |
4d77999 |
PYTHONPATH=.. sphinx-build-3 . html
|
|
 |
d0bf068 |
rm -fv .buildinfo
|
|
 |
d0bf068 |
popd
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%install
|
|
 |
d0bf068 |
%py3_install
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%check
|
|
 |
d0bf068 |
%if %{with tests}
|
|
 |
03a95fa |
PYTHONPATH=. %{pytest} -s -v -k-test_split .
|
|
 |
d0bf068 |
%endif
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%files -n python3-%{srcname}
|
|
 |
d0bf068 |
%doc README.md
|
|
 |
d0bf068 |
%license LICENSE
|
|
 |
8f64106 |
%{_bindir}/pybids
|
|
 |
94c0310 |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
 |
d0bf068 |
%{python3_sitelib}/bids/
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%files doc
|
|
 |
d0bf068 |
%doc examples/ doc/html
|
|
 |
d0bf068 |
%license LICENSE
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
%changelog
|
|
 |
03a95fa |
* Sat May 22 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.13.1-1
|
|
 |
03a95fa |
- Update to latest release
|
|
 |
03a95fa |
|
|
 |
47a73b8 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.4-2
|
|
 |
47a73b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
47a73b8 |
|
|
 |
6b99f16 |
* Sat Nov 28 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.12.4-1
|
|
 |
6b99f16 |
- Update to 0.12.4
|
|
 |
6b99f16 |
|
|
 |
8f64106 |
* Sun Sep 13 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.12.1-1
|
|
 |
8f64106 |
- Update to new release
|
|
 |
8f64106 |
|
|
 |
4d77999 |
* Fri Sep 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.12.0-1
|
|
 |
4d77999 |
- Update to 0.12.0
|
|
 |
4d77999 |
|
|
 |
6507cc2 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
|
|
 |
6507cc2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
6507cc2 |
|
|
 |
7a09d36 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-2
|
|
 |
7a09d36 |
- Rebuilt for Python 3.9
|
|
 |
7a09d36 |
|
|
 |
fde57aa |
* Tue Apr 21 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.10.2-1
|
|
 |
fde57aa |
- Update to 0.10.2
|
|
 |
fde57aa |
|
|
 |
67d1b2f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
|
|
 |
67d1b2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
67d1b2f |
|
|
 |
595c0a3 |
* Thu Dec 12 2019 Aniket Pradhan <major@fedoraproject.org> - 0.10.0-1
|
|
 |
595c0a3 |
- Bumped to v0.10.0
|
|
 |
595c0a3 |
|
|
 |
f3da494 |
* Tue Oct 1 2019 Aniket Pradhan <major@fedoraproject.org> - 0.9.4-1
|
|
 |
f3da494 |
- Bumped to v0.9.4
|
|
 |
f3da494 |
|
|
 |
453ad3d |
* Thu Aug 22 2019 Aniket Pradhan <aniket17133@iiitd.ac.in> - 0.9.3-1
|
|
 |
453ad3d |
- Bumped to v0.9.3
|
|
 |
453ad3d |
|
|
 |
0f64b17 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-3
|
|
 |
0f64b17 |
- Rebuilt for Python 3.8
|
|
 |
0f64b17 |
|
|
 |
d6a67e7 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
 |
d6a67e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
d6a67e7 |
|
|
 |
72d0851 |
* Mon May 27 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.9.1-1
|
|
 |
72d0851 |
- Update to 0.9.1
|
|
 |
72d0851 |
|
|
 |
37f3000 |
* Mon Apr 08 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.0-1
|
|
 |
37f3000 |
- Update the latest release
|
|
 |
c2f075a |
- Drop dropped grabbit dep
|
|
 |
37f3000 |
- Add new BR: python-bids-validator: requires review: 1697498
|
|
 |
c2f075a |
- Unbundle new bundled libs
|
|
 |
37f3000 |
|
|
 |
b940b83 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3.gite35ced6
|
|
 |
b940b83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
b940b83 |
|
|
 |
d0bf068 |
* Mon Nov 12 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.6.5-2.gite35ced6
|
|
 |
d0bf068 |
- Use bconds
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
* Wed Nov 07 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.6.5-1.gite35ced6
|
|
 |
d0bf068 |
- Use latest git snapshot that fixes tests
|
|
 |
d0bf068 |
- Add documentation and examples in subpackage
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
* Wed Nov 07 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.6.3-2
|
|
 |
d0bf068 |
- Enable tests now that duecredit is available in rawhide
|
|
 |
d0bf068 |
- Disable py2 build since python-nibabel is only py3 even in F29
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
* Fri Jul 20 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.6.3-1
|
|
 |
d0bf068 |
- Update to latest release
|
|
 |
d0bf068 |
- Use py.test
|
|
 |
d0bf068 |
- Disable tests until nibabel is fixed
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
* Mon Jan 15 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.2-2
|
|
 |
d0bf068 |
- Use github source for license and test suite
|
|
 |
d0bf068 |
- Fix requires and build requires
|
|
 |
d0bf068 |
|
|
 |
d0bf068 |
* Fri Jan 12 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.2-1
|
|
 |
d0bf068 |
- Initial build
|