pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-lexicon



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Tue Jan 23 10:54:20 UTC 2018

Modified Files:
        pkgsrc/net/py-lexicon: Makefile PLIST distinfo
Added Files:
        pkgsrc/net/py-lexicon: MESSAGE
        pkgsrc/net/py-lexicon/patches: patch-lexicon_providers_namecheap.py
            patch-setup.py

Log Message:
Update net/py-lexicon to 2.1.17.

- Add support for Namecheap.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/py-lexicon/MESSAGE
cvs rdiff -u -r1.20 -r1.21 pkgsrc/net/py-lexicon/Makefile \
    pkgsrc/net/py-lexicon/distinfo
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/py-lexicon/PLIST
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py \
    pkgsrc/net/py-lexicon/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/py-lexicon/Makefile
diff -u pkgsrc/net/py-lexicon/Makefile:1.20 pkgsrc/net/py-lexicon/Makefile:1.21
--- pkgsrc/net/py-lexicon/Makefile:1.20 Sat Dec  9 18:06:45 2017
+++ pkgsrc/net/py-lexicon/Makefile      Tue Jan 23 10:54:20 2018
@@ -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}-future-[0-9]*:.
 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"
Index: pkgsrc/net/py-lexicon/distinfo
diff -u pkgsrc/net/py-lexicon/distinfo:1.20 pkgsrc/net/py-lexicon/distinfo:1.21
--- pkgsrc/net/py-lexicon/distinfo:1.20 Sat Dec  9 18:06:45 2017
+++ pkgsrc/net/py-lexicon/distinfo      Tue Jan 23 10:54:20 2018
@@ -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

Index: pkgsrc/net/py-lexicon/PLIST
diff -u pkgsrc/net/py-lexicon/PLIST:1.13 pkgsrc/net/py-lexicon/PLIST:1.14
--- pkgsrc/net/py-lexicon/PLIST:1.13    Sat Dec  9 18:06:45 2017
+++ pkgsrc/net/py-lexicon/PLIST Tue Jan 23 10:54:20 2018
@@ -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.py
 ${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/godaddy.p
 ${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

Added files:

Index: pkgsrc/net/py-lexicon/MESSAGE
diff -u /dev/null pkgsrc/net/py-lexicon/MESSAGE:1.1
--- /dev/null   Tue Jan 23 10:54:20 2018
+++ pkgsrc/net/py-lexicon/MESSAGE       Tue Jan 23 10:54:20 2018
@@ -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)
+
+===========================================================================

Index: pkgsrc/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py
diff -u /dev/null pkgsrc/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py:1.1
--- /dev/null   Tue Jan 23 10:54:20 2018
+++ pkgsrc/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py  Tue Jan 23 10:54:20 2018
@@ -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
+ 
Index: pkgsrc/net/py-lexicon/patches/patch-setup.py
diff -u /dev/null pkgsrc/net/py-lexicon/patches/patch-setup.py:1.1
--- /dev/null   Tue Jan 23 10:54:20 2018
+++ pkgsrc/net/py-lexicon/patches/patch-setup.py        Tue Jan 23 10:54:20 2018
@@ -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