Blame python-fsleyes-widgets.spec

2907708
%global srcname fsleyes-widgets
2907708
2907708
%global desc \
2907708
A collection of custom wx widgets and utilities used by FSLeyes.
2907708
2907708
2907708
Name:           python-%{srcname}
0e9d40e
Version:        0.8.0
0e9d40e
Release:        1%{?dist}
2907708
Summary:        A collection of custom wx widgets and utilities used by FSLeyes
2907708
2907708
License:        ASL 2.0
2907708
URL:            https://pypi.python.org/pypi/%{srcname}
2907708
Source0:        %pypi_source
2907708
2907708
BuildArch:      noarch
2907708
BuildRequires:  python3-devel
2907708
BuildRequires:  %{py3_dist sphinx}
a533ad5
BuildRequires:  %{py3_dist sphinx_rtd_theme}
2907708
BuildRequires:  %{py3_dist pytest}
2907708
BuildRequires:  %{py3_dist mock}
2907708
BuildRequires:  %{py3_dist pytest-cov}
2907708
BuildRequires:  %{py3_dist numpy}
2907708
BuildRequires:  %{py3_dist wxpython}
2907708
BuildRequires:  %{py3_dist matplotlib}
2907708
BuildRequires:  %{py3_dist six}
2907708
BuildRequires:  %{py3_dist deprecation}
2907708
BuildRequires:  xorg-x11-server-Xvfb
2907708
2907708
%description
2907708
%{desc}
2907708
2907708
%package -n python3-%{srcname}
2907708
Summary:        %{summary}
2907708
Requires:  %{py3_dist six}
2907708
Requires:  %{py3_dist deprecation}
2907708
Requires:  %{py3_dist numpy}
2907708
Requires:  %{py3_dist matplotlib}
2907708
Requires:  %{py3_dist wxpython}
2907708
2907708
%{?python_provide:%python_provide python3-%{srcname}}
2907708
2907708
%description -n python3-%{srcname}
2907708
%{desc}
2907708
2907708
%package doc
2907708
Summary:        %{summary}
2907708
2907708
%description doc
2907708
This package contains documentation for %{name}.
2907708
2907708
%prep
2907708
%autosetup -n %{srcname}-%{version}
2907708
rm -rfv fsleyes_widgets.egg-info
2907708
2907708
# remove unneeded shebangs
2907708
find . -name "*py" -exec sed -i '/#!\/usr\/bin\/env python/ d' '{}' \;
2907708
2907708
%build
2907708
%py3_build
2907708
2907708
# Build documentation
1f99293
PYTHONPATH=.  sphinx-build-3 doc html
2907708
# Remove build artefacts
1f99293
rm -frv html/.buildinfo
1f99293
rm -frv html/.doctrees
2907708
2907708
2907708
%install
2907708
%py3_install
2907708
2907708
2907708
%check
2907708
# From https://git.fmrib.ox.ac.uk/fsl/fsleyes/widgets/blob/master/.ci/test_template.sh
2907708
# These tests fail, so I've disabled them for the time being. Upstream has been e-mailed.
0e9d40e
xvfb-run pytest-3 tests --ignore=tests/test_autotextctrl.py --ignore=tests/test_bitmapradio.py --ignore=tests/test_bitmaptoggle.py --ignore=tests/test_colourbutton.py --ignore=tests/test_floatslider.py --ignore=tests/test_notebook.py --ignore=tests/test_rangeslider.py --ignore=tests/test_texttag.py --ignore=tests/test_numberdialog.py --ignore=tests/test_widgetgrid.py
0e9d40e
# https://github.com/pauldmccarthy/fsleyes-widgets/issues/2
2907708
2907708
%files -n python3-%{srcname}
2907708
%license LICENSE COPYRIGHT
2907708
%doc README.rst
2907708
%{python3_sitelib}/fsleyes_widgets/
2907708
%{python3_sitelib}/fsleyes_widgets-%{version}-py3.?.egg-info
2907708
2907708
%files doc
2907708
%license LICENSE COPYRIGHT
1f99293
%doc html
2907708
2907708
%changelog
0e9d40e
* Sat Aug 31 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.0-1
0e9d40e
- Update to 0.8.0
0e9d40e
- Report and disable failing test
0e9d40e
dd72f3c
* Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0.7.3-4
dd72f3c
- Rebuilt for Python 3.8
dd72f3c
0553f03
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-3
0553f03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0553f03
a533ad5
* Fri Jun 07 2019 Petr Viktorin <pviktori@redhat.com> - 0.7.3-2
a533ad5
- Require sphinx_rtd_theme, which is no longer provided in Sphinx 2.0+
a533ad5
bfc6a16
* Sat Feb 16 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.7.3-1
bfc6a16
- Update to latest release
bfc6a16
- Remove py2 conditionals
bfc6a16
d773513
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
d773513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d773513
1f99293
* Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.7.0-3
1f99293
- Fix doc building on F29-
1f99293
2907708
* Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.7.0-2
2907708
- Remove leftover files from the doc
2907708
- Move requires to py3 sub package
2907708
- Remove dot at end of summary
2907708
2907708
* Fri Nov 02 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.7.0-1
2907708
- Initial build