From 7b8e0f88ab2af16296a32e9481577c7f760bcb887fb26687724284b10c70b721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 3 Apr 2019 11:17:48 +0000 Subject: [PATCH] Accepting request 689876 from home:pgajdos - version update to 0.16.7 Fixes for Python 3.7 - added patches https://github.com/pimutils/vdirsyncer/pull/779 + python-vdirsyncer-fix-tests.patch OBS-URL: https://build.opensuse.org/request/show/689876 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vdirsyncer?expand=0&rev=8 --- python-vdirsyncer-fix-tests.patch | 16 ++++++++++++++++ python-vdirsyncer.changes | 9 +++++++++ python-vdirsyncer.spec | 25 +++++++++++++++++++++---- vdirsyncer-0.16.6.tar.gz | 3 --- vdirsyncer-0.16.7.tar.gz | 3 +++ 5 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 python-vdirsyncer-fix-tests.patch delete mode 100644 vdirsyncer-0.16.6.tar.gz create mode 100644 vdirsyncer-0.16.7.tar.gz diff --git a/python-vdirsyncer-fix-tests.patch b/python-vdirsyncer-fix-tests.patch new file mode 100644 index 0000000..4c646f1 --- /dev/null +++ b/python-vdirsyncer-fix-tests.patch @@ -0,0 +1,16 @@ +diff --git a/tests/conftest.py b/tests/conftest.py +index ff774ce1..6272d42d 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -27,7 +27,10 @@ def benchmark(): + del pytest_benchmark + + +-settings.suppress_health_check = [HealthCheck.too_slow] ++settings.register_profile("dev", settings( ++ suppress_health_check=[HealthCheck.too_slow] ++)) ++settings.load_profile("dev") + + settings.register_profile("ci", settings( + max_examples=1000, diff --git a/python-vdirsyncer.changes b/python-vdirsyncer.changes index 6e0f88b..e25b58d 100644 --- a/python-vdirsyncer.changes +++ b/python-vdirsyncer.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Mar 29 13:31:30 UTC 2019 - pgajdos@suse.com + +- version update to 0.16.7 + Fixes for Python 3.7 +- added patches + https://github.com/pimutils/vdirsyncer/pull/779 + + python-vdirsyncer-fix-tests.patch + ------------------------------------------------------------------- Wed Jul 18 08:05:01 UTC 2018 - mimi.vx@gmail.com diff --git a/python-vdirsyncer.spec b/python-vdirsyncer.spec index d3a5dcf..898ff49 100644 --- a/python-vdirsyncer.spec +++ b/python-vdirsyncer.spec @@ -1,7 +1,7 @@ # # spec file for package python-vdirsyncer # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,14 +12,14 @@ # 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/ # %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vdirsyncer -Version: 0.16.6 +Version: 0.16.7 Release: 0 Summary: Synchronize CalDAV and CardDAV License: BSD-3-Clause @@ -28,11 +28,24 @@ 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 +# https://github.com/pimutils/vdirsyncer/pull/779 +Patch0: python-vdirsyncer-fix-tests.patch BuildRequires: %{python_module setuptools_scm} 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 @@ -41,7 +54,7 @@ Requires: python-icalendar >= 3.6 Requires: python-lxml Requires: python-python-dateutil Requires: python-pytz -Requires: python-requests >= 2.0.1 +Requires: python-requests >= 2.4.1 Requires: python-requests-toolbelt >= 0.4.0 Recommends: python-requests-oauthlib BuildArch: noarch @@ -57,6 +70,7 @@ It aims to be for CalDAV and CardDAV what OfflineIMAP is for IMAP. %prep %setup -q -n vdirsyncer-%{version} +%patch0 -p1 rm -rf vdirsyncer.egg-info %build @@ -70,6 +84,9 @@ mkdir -p %{buildroot}%{_userunitdir} install -Dpm 0644 %{SOURCE0} %{buildroot}%{_userunitdir}/vdirsyncer.service install -Dpm 0644 %{SOURCE1} %{buildroot}%{_userunitdir}/vdirsyncer.timer +%check +%python_exec -m pytest -k 'not test_open_graphical_browser' + %files %{python_files} %doc README.rst %license LICENSE diff --git a/vdirsyncer-0.16.6.tar.gz b/vdirsyncer-0.16.6.tar.gz deleted file mode 100644 index 655efc1..0000000 --- a/vdirsyncer-0.16.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6b060460ea83e614d4253b53a7d1e0c0e64a8cea1aa6a7b59d9b15158c1381e -size 113249 diff --git a/vdirsyncer-0.16.7.tar.gz b/vdirsyncer-0.16.7.tar.gz new file mode 100644 index 0000000..243d5b7 --- /dev/null +++ b/vdirsyncer-0.16.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c9bcfb9bcb01246c83ba6f8551cf54c58af3323210755485fc23bb7848512ef +size 112786