pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/py-lexicon Update net/py-lexicon to 2.1.17.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5fffd3b6f679
branches:  trunk
changeset: 374464:5fffd3b6f679
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Jan 23 10:54:20 2018 +0000

description:
Update net/py-lexicon to 2.1.17.

- Add support for Namecheap.

diffstat:

 net/py-lexicon/MESSAGE                                      |  11 ++++++
 net/py-lexicon/Makefile                                     |   6 ++-
 net/py-lexicon/PLIST                                        |   7 ++-
 net/py-lexicon/distinfo                                     |  12 +++--
 net/py-lexicon/patches/patch-lexicon_providers_namecheap.py |  19 ++++++++++
 net/py-lexicon/patches/patch-setup.py                       |  23 +++++++++++++
 6 files changed, 69 insertions(+), 9 deletions(-)

diffs (130 lines):

diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-lexicon/MESSAGE    Tue Jan 23 10:54:20 2018 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Optional support for the following DNS providers can be enabled
+by installing extra packages:
+
+- Namecheap: ${PYPKGPREFIX}-namecheap (net/py-namecheap)
+- SoftLayer: ${PYPKGPREFIX}-softlayer (net/py-softlayer)
+- Amazon Route 53: ${PYPKGPREFIX}-boto3 (net/py-boto3)
+
+===========================================================================
diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/Makefile
--- a/net/py-lexicon/Makefile   Tue Jan 23 10:29:27 2018 +0000
+++ b/net/py-lexicon/Makefile   Tue Jan 23 10:54:20 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2017/12/09 18:06:45 fhajny Exp $
+# $NetBSD: Makefile,v 1.21 2018/01/23 10:54:20 fhajny Exp $
 
-DISTNAME=      lexicon-2.1.16
+DISTNAME=      lexicon-2.1.17
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=AnalogJ/}
@@ -17,5 +17,7 @@
 DEPENDS+=      ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
 DEPENDS+=      ${PYPKGPREFIX}-tldextract-[0-9]*:../../net/py-tldextract
 
+MESSAGE_SUBST+=        PYPKGPREFIX=${PYPKGPREFIX}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/PLIST
--- a/net/py-lexicon/PLIST      Tue Jan 23 10:29:27 2018 +0000
+++ b/net/py-lexicon/PLIST      Tue Jan 23 10:54:20 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.13 2017/12/09 18:06:45 fhajny Exp $
-bin/lexicon
+@comment $NetBSD: PLIST,v 1.14 2018/01/23 10:54:20 fhajny Exp $
+bin/lexicon${PYVERSSUFFIX}
 ${PYSITELIB}/dns_${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/dns_${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/dns_${EGG_INFODIR}/dependency_links.txt
@@ -56,6 +56,8 @@
 ${PYSITELIB}/lexicon/providers/luadns.pyc
 ${PYSITELIB}/lexicon/providers/memset.pyo
 ${PYSITELIB}/lexicon/providers/memset.pyc
+${PYSITELIB}/lexicon/providers/namecheap.pyo
+${PYSITELIB}/lexicon/providers/namecheap.pyc
 ${PYSITELIB}/lexicon/providers/namesilo.pyo
 ${PYSITELIB}/lexicon/providers/namesilo.pyc
 ${PYSITELIB}/lexicon/providers/nsone.pyo
@@ -96,6 +98,7 @@
 ${PYSITELIB}/lexicon/providers/linode.py
 ${PYSITELIB}/lexicon/providers/luadns.py
 ${PYSITELIB}/lexicon/providers/memset.py
+${PYSITELIB}/lexicon/providers/namecheap.py
 ${PYSITELIB}/lexicon/providers/namesilo.py
 ${PYSITELIB}/lexicon/providers/nsone.py
 ${PYSITELIB}/lexicon/providers/ovh.py
diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/distinfo
--- a/net/py-lexicon/distinfo   Tue Jan 23 10:29:27 2018 +0000
+++ b/net/py-lexicon/distinfo   Tue Jan 23 10:54:20 2018 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.20 2017/12/09 18:06:45 fhajny Exp $
+$NetBSD: distinfo,v 1.21 2018/01/23 10:54:20 fhajny Exp $
 
-SHA1 (lexicon-2.1.16.tar.gz) = c77e08fbff04d2f9a2b653152646df721151161d
-RMD160 (lexicon-2.1.16.tar.gz) = baf43ac3a32691a071b32f7c4227764d618694a4
-SHA512 (lexicon-2.1.16.tar.gz) = 93161bd00f8f5f6dfce3256085ea1ca7ae3188d3a7e866399b2c06ae497c8b673a042d8af731c59f2ed161b923890710a702232e9688848179288bf111c81d29
-Size (lexicon-2.1.16.tar.gz) = 250043 bytes
+SHA1 (lexicon-2.1.17.tar.gz) = b1688cac59debe958627fed77d6ad831d9f9303e
+RMD160 (lexicon-2.1.17.tar.gz) = 0f149c1adad3c79b147b22726a2c4b0fc5aeace2
+SHA512 (lexicon-2.1.17.tar.gz) = 394638fa073a56c2f2ead5a9512043309f73fdd85f5bceb8f1d8bcc86c8254f2ec538934175f7119c53fda9b793658244818956ea153de8fa3683ee07469b9a8
+Size (lexicon-2.1.17.tar.gz) = 260011 bytes
+SHA1 (patch-lexicon_providers_namecheap.py) = db709ee7ca825632fdca285839090d2ff6d7a6e4
+SHA1 (patch-setup.py) = 3ac3b6164e79d488a0592af6ec71539246376b70
diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/patches/patch-lexicon_providers_namecheap.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py       Tue Jan 23 10:54:20 2018 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-lexicon_providers_namecheap.py,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Make namecheap support truly optional as promised.
+https://github.com/AnalogJ/lexicon/issues/163
+
+--- lexicon/providers/namecheap.py.orig        2018-01-22 17:28:26.000000000 +0000
++++ lexicon/providers/namecheap.py
+@@ -3,7 +3,10 @@ from __future__ import print_function
+ 
+ import logging
+ 
+-import namecheap
++try:
++    import namecheap #optional dep
++except ImportError:
++    pass
+ 
+ from .base import Provider as BaseProvider
+ 
diff -r 83208e426283 -r 5fffd3b6f679 net/py-lexicon/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-lexicon/patches/patch-setup.py     Tue Jan 23 10:54:20 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Version the script file.
+
+--- setup.py.orig      2018-01-22 17:28:26.000000000 +0000
++++ setup.py
+@@ -10,6 +10,7 @@ from setuptools import setup, find_packa
+ # To use a consistent encoding
+ from codecs import open
+ from os import path, listdir
++import sys
+ 
+ version = 'unknown'
+ with open(path.join(path.dirname(path.abspath(__file__)), 'VERSION'), encoding='utf-8') as version_file:
+@@ -96,7 +97,7 @@ setup(
+     # pip to create the appropriate form of executable for the target platform.
+     entry_points={
+         'console_scripts': [
+-            'lexicon=lexicon.__main__:main',
++            'lexicon' + sys.version[0:3] + '=lexicon.__main__:main',
+         ],
+     },
+     test_suite='tests'



Home | Main Index | Thread Index | Old Index