14
0
2023-05-04 23:56:46 +00:00
committed by Git OBS Bridge
parent e740d20b9f
commit bf166b00e8
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 4 23:56:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
- fix and reenable tests
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 18 22:01:01 UTC 2022 - Matej Cepl <mcepl@suse.com> Sun Dec 18 22:01:01 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-vdirsyncer # spec file for package python-vdirsyncer
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -50,6 +50,7 @@ Recommends: python-requests-oauthlib
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module aioresponses}
BuildRequires: %{python_module aiostream} BuildRequires: %{python_module aiostream}
BuildRequires: %{python_module click-log >= 0.3} BuildRequires: %{python_module click-log >= 0.3}
BuildRequires: %{python_module click-threading >= 0.2} BuildRequires: %{python_module click-threading >= 0.2}
@@ -57,10 +58,10 @@ BuildRequires: %{python_module hypothesis >= 5.0.0}
BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-localserver} BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest-subtesthack}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.20.0} BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module requests-toolbelt >= 0.4.40} BuildRequires: %{python_module requests-toolbelt >= 0.4.40}
BuildRequires: %{python_module trustme}
BuildRequires: %{python_module urllib3} BuildRequires: %{python_module urllib3}
# /SECTION # /SECTION
Provides: vdirsyncer = %{version} Provides: vdirsyncer = %{version}
@@ -98,7 +99,8 @@ install -Dpm 0644 %{SOURCE2} %{buildroot}%{_userunitdir}/vdirsyncer-%{$python_bi
export DETERMINISTIC_TESTS=true export DETERMINISTIC_TESTS=true
# test_verbosity - click changed syntax and returns different quotes # test_verbosity - click changed syntax and returns different quotes
# gh#pimutils/vdirsyncer#654 -- tests temporarily switched off # gh#pimutils/vdirsyncer#654 -- tests temporarily switched off
%pytest -k 'not test_legacy_status and not test_open_graphical_browser and not test_verbosity' || /bin/true # request_ssl - requires network
%pytest -k 'not test_legacy_status and not test_open_graphical_browser and not test_verbosity and not request_ssl'
%post %post
update-alternatives --install %{_bindir}/vdirsyncer vdirsyncer %{_bindir}/vdirsyncer-%{python_bin_suffix} %{python_version_nodots} \ update-alternatives --install %{_bindir}/vdirsyncer vdirsyncer %{_bindir}/vdirsyncer-%{python_bin_suffix} %{python_version_nodots} \