204be76
%global pypi_name sybil
204be76
204be76
Name:           python-%{pypi_name}
fce4836
Version:        2.0.1
b52f543
Release:        4%{?dist}
204be76
Summary:        Automated testing for the examples in your documentation
204be76
204be76
License:        MIT
204be76
URL:            https://sybil.readthedocs.io/
204be76
Source0:        https://github.com/cjw296/sybil/archive/%{version}/%{pypi_name}-%{version}.tar.gz
204be76
BuildArch:      noarch
204be76
2b3b33a
# https://github.com/cjw296/sybil/pull/27
2b3b33a
Patch0001:      0001-tests-adjust-for-slightly-different-whitespace-under.patch
2b3b33a
Patch0002:      0002-tests-adjust-for-different-line-numbers-under-python.patch
2b3b33a
204be76
%description
204be76
This library provides a way to test examples in your documentation by parsing
204be76
them from the documentation source and evaluating the parsed examples as part
204be76
of your normal test run. Integration is provided for the three main Python
204be76
test runners.
204be76
204be76
%package -n python3-%{pypi_name}
204be76
Summary:        %{summary}
204be76
059cc82
BuildRequires: make
204be76
BuildRequires:  python3-devel
a356bb3
BuildRequires:  python3-setuptools
204be76
BuildRequires:  python3-pytest
204be76
BuildRequires:  python3-pytest-cov
204be76
BuildRequires:  python3-nose
204be76
%{?python_provide:%python_provide python3-%{pypi_name}}
204be76
204be76
%description -n python3-%{pypi_name}
204be76
This library provides a way to test examples in your documentation by parsing
204be76
them from the documentation source and evaluating the parsed examples as part
204be76
of your normal test run. Integration is provided for the three main Python
204be76
test runners.
204be76
204be76
%package doc
204be76
Summary:        Documentation for python3-%{pypi_name}
204be76
204be76
BuildRequires:  python3-sphinx
204be76
204be76
%description doc
204be76
This documentation for python3-%{pypi_name}.
204be76
204be76
%prep
7154f7f
%autosetup -n %{pypi_name}-%{version} -p1
204be76
204be76
%build
204be76
%py3_build
204be76
204be76
%install
204be76
%py3_install
204be76
pushd docs
204be76
PYTHONPATH=%{buildroot}/%{python3_sitelib} make html
204be76
rm _build/html/.buildinfo
204be76
popd
204be76
204be76
# nose tests are failing because they are not ported to Python 3 yet
204be76
%check
204be76
pytest-%{python3_version} tests -k "not nose"
204be76
204be76
%files -n python3-%{pypi_name}
204be76
%doc README.rst
204be76
%license docs/license.rst
204be76
%{python3_sitelib}/*.egg-info
204be76
%{python3_sitelib}/%{pypi_name}/
204be76
204be76
%files doc
204be76
%doc docs/_build/html/
204be76
204be76
%changelog
b52f543
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
b52f543
- Second attempt - Rebuilt for
b52f543
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b52f543
2b3b33a
* Wed Jun  9 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.1-3
2b3b33a
- Add patches for failing tests (#1908278)
2b3b33a
4d5b57e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-3
4d5b57e
- Rebuilt for Python 3.10
4d5b57e
0f0e0bd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
0f0e0bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0f0e0bd
fce4836
* Wed Dec 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.1-1
fce4836
- Update to latest upstream release 2.0.1 (#1898712)
fce4836
b5b6df9
* Tue Nov 17 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-1
b5b6df9
- Update to latest upstream release 2.0.0 (#1898712)
b5b6df9
d4a3a3b
* Thu Aug 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.4.0-1
b5b6df9
- Update to latest upstream release 1.4.0 (#1861675)
d4a3a3b
6de620f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
6de620f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6de620f
a356bb3
* Fri Jun 26 2020 Fabian Affolter <mail@fabian-affolter.ch> -  1.3.0-3
a356bb3
- Add python3-setuptools as BR
a356bb3
5541494
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-2
5541494
- Rebuilt for Python 3.9
5541494
1be5a61
* Sat Mar 28 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.0-1
b5b6df9
- Update to latest upstream release 1.3.0 (#1818465)
1be5a61
d6c45cf
* Wed Mar 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.2-1
d6c45cf
- Update to latest upstream release 1.2.2
d6c45cf
735fb96
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
735fb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
735fb96
204be76
* Tue Sep 03 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.0-2
204be76
- Enable tests
204be76
- Add documentation
204be76
204be76
* Sat Jun 08 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.0-1
204be76
- Initial package for Fedora