pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-txgithub



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Sep 30 20:58:00 UTC 2017

Modified Files:
        pkgsrc/devel/py-txgithub: PLIST distinfo
Added Files:
        pkgsrc/devel/py-txgithub/patches:
            patch-txgithub_scripts_create__token.py
            patch-txgithub_scripts_gist.py

Log Message:
Redo Python 3.x support.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-txgithub/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-txgithub/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_create__token.py \
    pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_gist.py

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

Modified files:

Index: pkgsrc/devel/py-txgithub/PLIST
diff -u pkgsrc/devel/py-txgithub/PLIST:1.2 pkgsrc/devel/py-txgithub/PLIST:1.3
--- pkgsrc/devel/py-txgithub/PLIST:1.2  Sat Sep 30 12:40:08 2017
+++ pkgsrc/devel/py-txgithub/PLIST      Sat Sep 30 20:58:00 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/09/30 12:40:08 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/09/30 20:58:00 joerg Exp $
 bin/get-github-token
 bin/gist
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -20,11 +20,11 @@ ${PYSITELIB}/txgithub/scripts/__init__.p
 ${PYSITELIB}/txgithub/scripts/__init__.pyc
 ${PYSITELIB}/txgithub/scripts/__init__.pyo
 ${PYSITELIB}/txgithub/scripts/create_token.py
-${PLIST.py2x}${PYSITELIB}/txgithub/scripts/create_token.pyc
-${PLIST.py2x}${PYSITELIB}/txgithub/scripts/create_token.pyo
+${PYSITELIB}/txgithub/scripts/create_token.pyc
+${PYSITELIB}/txgithub/scripts/create_token.pyo
 ${PYSITELIB}/txgithub/scripts/gist.py
-${PLIST.py2x}${PYSITELIB}/txgithub/scripts/gist.pyc
-${PLIST.py2x}${PYSITELIB}/txgithub/scripts/gist.pyo
+${PYSITELIB}/txgithub/scripts/gist.pyc
+${PYSITELIB}/txgithub/scripts/gist.pyo
 ${PYSITELIB}/txgithub/token.py
 ${PYSITELIB}/txgithub/token.pyc
 ${PYSITELIB}/txgithub/token.pyo

Index: pkgsrc/devel/py-txgithub/distinfo
diff -u pkgsrc/devel/py-txgithub/distinfo:1.1 pkgsrc/devel/py-txgithub/distinfo:1.2
--- pkgsrc/devel/py-txgithub/distinfo:1.1       Fri Sep 29 14:31:29 2017
+++ pkgsrc/devel/py-txgithub/distinfo   Sat Sep 30 20:58:00 2017
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.1 2017/09/29 14:31:29 joerg Exp $
+$NetBSD: distinfo,v 1.2 2017/09/30 20:58:00 joerg Exp $
 
 SHA1 (txgithub-15.0.0.tar.gz) = d3c8fbc3e07246f3bbe9520f74285b6383acf113
 RMD160 (txgithub-15.0.0.tar.gz) = fa64e8cb817248d841a726a4ca11f3029db09cd2
 SHA512 (txgithub-15.0.0.tar.gz) = 1935ad2466655174d92704233eb255993c4244142efb7899f5da0dda35ca58213a0d77f03fd2e34bcfa2cb601afe3d9bf02b22f0bef906ad54c7fc8ada9d46b6
 Size (txgithub-15.0.0.tar.gz) = 5534 bytes
+SHA1 (patch-txgithub_scripts_create__token.py) = 3fda957e8ef4ab862976ffbf4c32d700dabe8b63
+SHA1 (patch-txgithub_scripts_gist.py) = 5b942c0dc0be12ce685201ca26704b57c61f3f66

Added files:

Index: pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_create__token.py
diff -u /dev/null pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_create__token.py:1.1
--- /dev/null   Sat Sep 30 20:58:00 2017
+++ pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_create__token.py    Sat Sep 30 20:58:00 2017
@@ -0,0 +1,13 @@
+$NetBSD: patch-txgithub_scripts_create__token.py,v 1.1 2017/09/30 20:58:00 joerg Exp $
+
+--- txgithub/scripts/create_token.py.orig      2017-09-30 20:46:53.750550950 +0000
++++ txgithub/scripts/create_token.py
+@@ -34,7 +34,7 @@ def run(reactor, *argv):
+     config = Options()
+     try:
+         config.parseOptions(argv[1:]) # When given no argument, parses sys.argv[1:]
+-    except usage.UsageError, errortext:
++    except usage.UsageError as errortext:
+         print('%s: %s' % (argv[0], errortext))
+         print('%s: Try --help for usage details.' % (argv[0]))
+         sys.exit(1)
Index: pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_gist.py
diff -u /dev/null pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_gist.py:1.1
--- /dev/null   Sat Sep 30 20:58:00 2017
+++ pkgsrc/devel/py-txgithub/patches/patch-txgithub_scripts_gist.py     Sat Sep 30 20:58:00 2017
@@ -0,0 +1,25 @@
+$NetBSD: patch-txgithub_scripts_gist.py,v 1.1 2017/09/30 20:58:00 joerg Exp $
+
+--- txgithub/scripts/gist.py.orig      2017-09-30 20:47:17.806190554 +0000
++++ txgithub/scripts/gist.py
+@@ -30,16 +30,16 @@ def postGist(reactor, token, files):
+         gistFiles['gistfile1'] = {"content": sys.stdin.read()}
+ 
+     response = yield api.gists.create(files=gistFiles)
+-    print response['html_url']
++    print(response['html_url'])
+ 
+ 
+ def run(reactor, *argv):
+     config = Options()
+     try:
+         config.parseOptions(argv[1:]) # When given no argument, parses sys.argv[1:]
+-    except usage.UsageError, errortext:
+-        print '%s: %s' % (argv[0], errortext)
+-        print '%s: Try --help for usage details.' % (argv[0])
++    except usage.UsageError as errortext:
++        print('%s: %s' % (argv[0], errortext))
++        print('%s: Try --help for usage details.' % (argv[0]))
+         sys.exit(1)
+ 
+     return postGist(reactor, **config)



Home | Main Index | Thread Index | Old Index