Compare commits

..

13 Commits

Author SHA1 Message Date
Fedora Release Engineering 2b2cde723c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 17:35:47 +00:00
Fedora Release Engineering 59107f6c44 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 22:36:10 +00:00
Python Maint cea142fda9 Rebuilt for Python 3.11 2022-06-14 14:02:06 +02:00
Python Maint ad32d18f0a Bootstrap for Python 3.11 2022-06-13 18:22:23 +02:00
Fedora Release Engineering 5391342862 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 15:45:37 +00:00
Fedora Release Engineering 24524eb160 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 09:43:30 +00:00
Python Maint 4ecce9f8e5 Rebuilt for Python 3.10 2021-06-04 19:45:28 +02:00
Python Maint b440730c4f Bootstrap for Python 3.10 2021-06-03 12:58:08 +02:00
Miro Hrončok 2c53ee3603 Don't skip all tests when building without optional tests
Print the reason for skipped tests instead.
2021-05-12 14:50:50 +02:00
Tomas Hrnciar 5df9f91cbe Add bcond to disable optional tests during bootstrap 2021-05-12 12:55:13 +02:00
Miro Hrončok 121c463aac Use %pytest and be verbose, to display reason for skip
Examples:

    tests/test_searchadapters.py::test_xapian SKIPPED (needs sqlalchemy)     [  7%]
    tests/test_searchadapters.py::test_whoosh SKIPPED (needs sqlalchemy)     [ 15%]
    tests/test_websupport.py::test_no_srcdir PASSED                          [ 23%]
    tests/test_websupport.py::test_build SKIPPED (needs sqlalchemy)          [ 30%]
    tests/test_websupport.py::test_get_document SKIPPED (needs sqlalchemy)   [ 38%]
    tests/test_websupport.py::test_comments SKIPPED (needs sqlalchemy)       [ 46%]
    tests/test_websupport.py::test_user_delete_comments SKIPPED (needs s...) [ 53%]
    tests/test_websupport.py::test_moderation SKIPPED (needs sqlalchemy)     [ 61%]
    tests/test_websupport.py::test_moderator_delete_comments SKIPPED (ne...) [ 69%]
    tests/test_websupport.py::test_update_username SKIPPED (needs sqlalc...) [ 76%]
    tests/test_websupport.py::test_proposals SKIPPED (needs sqlalchemy)      [ 84%]
    tests/test_websupport.py::test_voting SKIPPED (needs sqlalchemy)         [ 92%]
    tests/test_websupport.py::test_differ PASSED                             [100%]

    tests/test_searchadapters.py::test_xapian SKIPPED (needs xapian bind...) [  7%]
    tests/test_searchadapters.py::test_whoosh SKIPPED (needs whoosh pack...) [ 15%]
    tests/test_websupport.py::test_no_srcdir PASSED                          [ 23%]
    tests/test_websupport.py::test_build PASSED                              [ 30%]
    tests/test_websupport.py::test_get_document PASSED                       [ 38%]
    tests/test_websupport.py::test_comments PASSED                           [ 46%]
    tests/test_websupport.py::test_user_delete_comments PASSED               [ 53%]
    tests/test_websupport.py::test_moderation PASSED                         [ 61%]
    tests/test_websupport.py::test_moderator_delete_comments PASSED          [ 69%]
    tests/test_websupport.py::test_update_username PASSED                    [ 76%]
    tests/test_websupport.py::test_proposals PASSED                          [ 84%]
    tests/test_websupport.py::test_voting PASSED                             [ 92%]
    tests/test_websupport.py::test_differ PASSED                             [100%]
2021-03-11 18:09:40 +01:00
Miro Hrončok 5d8cd6c44c Update runtime and buildtime dependencies
- mock is not used at all
- xapian is an optional test dependency (like sqlalchemy and whoosh)
- six is only used in tests
2021-03-10 18:41:29 +01:00
Fedora Release Engineering f24848b860 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 13:37:05 +00:00
+43 -9
View File
@@ -1,8 +1,9 @@
%bcond_without optional_tests
%global pypi_name sphinxcontrib-websupport
Name: python-%{pypi_name}
Version: 1.2.4
Release: 1%{?dist}
Release: 11%{?dist}
Summary: Sphinx API for Web Apps
License: BSD
@@ -20,17 +21,24 @@ Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-jinja2
BuildRequires: python3-mock
BuildRequires: python3-pytest
BuildRequires: python3-six
BuildRequires: python3-sphinx
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
%if %{with optional_tests}
# Optional tests deps, can be individually skipped,
# but sqlalchemy is required for both whoosh and xapian tests
BuildRequires: python3-sqlalchemy
BuildRequires: python3-whoosh
BuildRequires: python3-xapian
%endif
# Undeclared but used runtime dependencies
# https://github.com/sphinx-doc/sphinxcontrib-websupport/pull/46
Requires: python3-jinja2
Requires: python3-six
Requires: python3-sphinx
Requires: python3-sphinxcontrib-serializinghtml >= 1.1.3
Recommends: python3-sqlalchemy
Recommends: python3-whoosh
@@ -50,11 +58,7 @@ rm -rf %{pypi_name}.egg-info
%py3_install
%check
mkdir empty && pushd empty # don't run the tests from sources
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{__python3} -m pytest ../tests
popd
rmdir empty
%pytest -v -rs
%files -n python3-%{pypi_name}
%license LICENSE
@@ -65,6 +69,36 @@ rmdir empty
%{python3_sitelib}/sphinxcontrib_websupport-*.egg-info/
%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.2.4-9
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.2.4-8
- Bootstrap for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.4-5
- Rebuilt for Python 3.10
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.2.4-4
- Bootstrap for Python 3.10
* Wed Mar 10 2021 Miro Hrončok <mhroncok@redhat.com> - 1.2.4-3
- Update runtime and buildtime dependencies
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Aug 18 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.4-1
- Update to 1.2.4
- Fixes rhbz#1800626