pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/py-vdirsyncer py-vdirsyncer: fix build with lates...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa88a454cba5
branches:  trunk
changeset: 334356:fa88a454cba5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat May 25 06:58:10 2019 +0000

description:
py-vdirsyncer: fix build with latest setuptools_scm

diffstat:

 time/py-vdirsyncer/distinfo                   |   3 ++-
 time/py-vdirsyncer/patches/patch-docs_conf.py |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r c926917d3664 -r fa88a454cba5 time/py-vdirsyncer/distinfo
--- a/time/py-vdirsyncer/distinfo       Sat May 25 03:59:06 2019 +0000
+++ b/time/py-vdirsyncer/distinfo       Sat May 25 06:58:10 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.40 2018/08/16 12:43:43 wiz Exp $
+$NetBSD: distinfo,v 1.41 2019/05/25 06:58:10 wiz Exp $
 
 SHA1 (vdirsyncer-0.16.7.tar.gz) = 91070a9777dcf5ac0ae523da1c6042d53ed0ad57
 RMD160 (vdirsyncer-0.16.7.tar.gz) = c0120a4b965b1e518b39d1a5b362ca166123b191
 SHA512 (vdirsyncer-0.16.7.tar.gz) = 218c6781139a9e979077308dc732756cc27ecb67966e4b52be31cb1ebf04d224443036102d5c4bad253b9dcf533939f0b72082166f0fe94e042a7e946b8fad0e
 Size (vdirsyncer-0.16.7.tar.gz) = 112786 bytes
+SHA1 (patch-docs_conf.py) = edcadc3f79ec9f6ec7ade9896cb81668733ca137
diff -r c926917d3664 -r fa88a454cba5 time/py-vdirsyncer/patches/patch-docs_conf.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-vdirsyncer/patches/patch-docs_conf.py     Sat May 25 06:58:10 2019 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-docs_conf.py,v 1.1 2019/05/25 06:58:10 wiz Exp $
+
+Follow advice from setuptools_scm how to use it.
+https://github.com/pimutils/vdirsyncer/pull/799
+
+--- docs/conf.py.orig  2018-06-13 16:54:02.000000000 +0000
++++ 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



Home | Main Index | Thread Index | Old Index