Blame python-pybids.spec

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}
f3da494
Version:    0.9.4
453ad3d
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
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
%{?python_provide:%python_provide python3-%{srcname}}
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 && \
d0bf068
    sphinx-build-3 . html
d0bf068
    rm -fv .buildinfo
d0bf068
popd
d0bf068
d0bf068
d0bf068
%install
d0bf068
%py3_install
d0bf068
d0bf068
%check
d0bf068
%if %{with tests}
d0bf068
PYTHONPATH=. py.test-3 -s -v -k-test_split .
d0bf068
%endif
d0bf068
d0bf068
%files -n python3-%{srcname}
d0bf068
%doc README.md
d0bf068
%license LICENSE
c2f075a
%{python3_sitelib}/%{srcname}-%{version}-py3.?.egg-info
d0bf068
%{python3_sitelib}/bids/
d0bf068
d0bf068
%files doc
d0bf068
%doc examples/ doc/html
d0bf068
%license LICENSE
d0bf068
d0bf068
%changelog
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