Update vdirsyncer to version 0.16.8.

The patch "patch-docs_conf_py" is now included and not needed anymore.
Backport two simple patches from master. They are needed for vdirsyncer
to work with newer click versions.

ok sthen@
This commit is contained in:
remi 2020-08-12 19:48:29 +00:00
parent d5e754dfe6
commit 1e553fa03b
5 changed files with 41 additions and 30 deletions

View File

@ -1,10 +1,9 @@
# $OpenBSD: Makefile,v 1.13 2020/07/03 21:13:04 sthen Exp $
# $OpenBSD: Makefile,v 1.14 2020/08/12 19:48:29 remi Exp $
COMMENT = synchronize calendars and contacts
MODPY_EGG_VERSION = 0.16.7
MODPY_EGG_VERSION = 0.16.8
DISTNAME = vdirsyncer-${MODPY_EGG_VERSION}
REVISION = 3
CATEGORIES = productivity

View File

@ -1,2 +1,2 @@
SHA256 (vdirsyncer-0.16.7.tar.gz) = bJvPubywEkbIO6b4VRz1TFivMyMhB1VIX8I7t4SFEu8=
SIZE (vdirsyncer-0.16.7.tar.gz) = 112786
SHA256 (vdirsyncer-0.16.8.tar.gz) = v9tCL1Lh1NYL0GNdID+1n6f2Ezl9B5Zh60jnlGS6E8U=
SIZE (vdirsyncer-0.16.8.tar.gz) = 115819

View File

@ -1,25 +0,0 @@
$OpenBSD: patch-docs_conf_py,v 1.1 2019/08/03 17:08:45 kmos Exp $
From https://github.com/pimutils/vdirsyncer/pull/799/
Index: docs/conf.py
--- docs/conf.py.orig
+++ docs/conf.py
@@ -3,7 +3,7 @@
import datetime
import os
-import setuptools_scm
+from pkg_resources import get_distribution
extensions = ['sphinx.ext.autodoc']
@@ -16,7 +16,7 @@ project = u'vdirsyncer'
copyright = (u'2014-{}, Markus Unterwaditzer & contributors'
.format(datetime.date.today().strftime('%Y')))
-release = setuptools_scm.get_version(root='..', relative_to=__file__)
+release = get_distribution('vdirsyncer').version
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
rst_epilog = '.. |vdirsyncer_version| replace:: %s' % release

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-setup_py,v 1.1 2020/08/12 19:48:29 remi Exp $
Compatibility with latest click
https://github.com/pimutils/vdirsyncer/commit/3eb9ce5ae4320d52e6c876874511ff96a8a45f51
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -11,7 +11,7 @@ from setuptools import Command, find_packages, setup
requirements = [
# https://github.com/mitsuhiko/click/issues/200
- 'click>=5.0,<6.0',
+ 'click>=5.0',
'click-log>=0.3.0, <0.4.0',
# https://github.com/pimutils/vdirsyncer/issues/478

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-tests_system_cli_test_sync_py,v 1.1 2020/08/12 19:48:29 remi Exp $
Compatibility with latest click
https://github.com/pimutils/vdirsyncer/commit/3eb9ce5ae4320d52e6c876874511ff96a8a45f51
Index: tests/system/cli/test_sync.py
--- tests/system/cli/test_sync.py.orig
+++ tests/system/cli/test_sync.py
@@ -123,7 +123,10 @@ def test_verbosity(tmpdir, runner):
runner.write_with_general('')
result = runner.invoke(['--verbosity=HAHA', 'sync'])
assert result.exception
- assert 'invalid value for "--verbosity"' in result.output.lower()
+ assert {
+ 'invalid value for "--verbosity"' in result.output.lower()
+ or "invalid value for '--verbosity'" in result.output.lower()
+ }
def test_collections_cache_invalidation(tmpdir, runner):