From 71ef7d3fd8dad9786385843574ab9f18d0a8ebf1622a1b5212515a16e7c2257a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 5 Jun 2019 07:16:21 +0000 Subject: [PATCH] - Make the deadline for tests even larger, on slow obs bots it takes 1300: * python-vdirsyncer-shift-deadline.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vdirsyncer?expand=0&rev=16 --- python-vdirsyncer-shift-deadline.patch | 2 +- python-vdirsyncer.changes | 7 +++++++ python-vdirsyncer.spec | 28 +++++++++++++------------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/python-vdirsyncer-shift-deadline.patch b/python-vdirsyncer-shift-deadline.patch index 3932bd2..d1817ef 100644 --- a/python-vdirsyncer-shift-deadline.patch +++ b/python-vdirsyncer-shift-deadline.patch @@ -19,7 +19,7 @@ Index: vdirsyncer-0.16.7/tests/system/cli/test_sync.py # XXX: https://github.com/pimutils/vdirsyncer/issues/617 @pytest.mark.skipif(sys.platform == 'darwin', reason='This test inexplicably fails') -+@settings(deadline=1000.0) ++@settings(deadline=2000.0) @given(collections=st.sets( st.text( st.characters( diff --git a/python-vdirsyncer.changes b/python-vdirsyncer.changes index d04a015..9eba76c 100644 --- a/python-vdirsyncer.changes +++ b/python-vdirsyncer.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 5 07:15:52 UTC 2019 - Tomáš Chvátal + +- Make the deadline for tests even larger, on slow obs bots + it takes 1300: + * python-vdirsyncer-shift-deadline.patch + ------------------------------------------------------------------- Thu May 16 22:35:41 UTC 2019 - ranand@suse.com diff --git a/python-vdirsyncer.spec b/python-vdirsyncer.spec index 80bc7f6..6454ceb 100644 --- a/python-vdirsyncer.spec +++ b/python-vdirsyncer.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ Release: 0 Summary: CalDAV and CardDAV synchronization module License: BSD-3-Clause Group: Productivity/Networking/News/Utilities -Url: https://github.com/pimutils/vdirsyncer +URL: https://github.com/pimutils/vdirsyncer Source0: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdirsyncer-%{version}.tar.gz Source1: vdirsyncer.service Source2: vdirsyncer.timer @@ -38,17 +38,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: systemd BuildRequires: systemd-rpm-macros -# SECTION test requirements -BuildRequires: %{python_module click-log >= 0.3} -BuildRequires: %{python_module click-threading >= 0.2} -BuildRequires: %{python_module hypothesis >= 3.1} -BuildRequires: %{python_module pytest-localserver} -BuildRequires: %{python_module pytest-subtesthack} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module requests >= 2.4.1} -BuildRequires: %{python_module requests-toolbelt >= 0.4.40} -BuildRequires: %{python_module urllib3} -# /SECTION Requires: python-atomicwrites >= 0.1.7 Requires: python-click >= 5.0 Requires: python-click-log >= 0.3 @@ -61,6 +50,17 @@ Requires: python-requests >= 2.4.1 Requires: python-requests-toolbelt >= 0.4.0 Recommends: python-requests-oauthlib BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module click-log >= 0.3} +BuildRequires: %{python_module click-threading >= 0.2} +BuildRequires: %{python_module hypothesis >= 3.1} +BuildRequires: %{python_module pytest-localserver} +BuildRequires: %{python_module pytest-subtesthack} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.4.1} +BuildRequires: %{python_module requests-toolbelt >= 0.4.40} +BuildRequires: %{python_module urllib3} +# /SECTION %ifpython3 Provides: vdirsyncer = %{version} Obsoletes: vdirsyncer < %{version} @@ -84,7 +84,7 @@ rm -rf vdirsyncer.egg-info %install %python_install -%python_expand %fdupes -s %{buildroot}/%{$python_sitelib} +%python_expand %fdupes %{buildroot}/%{$python_sitelib} mkdir -p %{buildroot}%{_userunitdir} install -Dpm 0644 %{SOURCE0} %{buildroot}%{_userunitdir}/vdirsyncer.service