pkgsrc-WIP-changes archive

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

py-html: fix for Python 3.x



Module Name:	pkgsrc-wip
Committed By:	Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By:	adam
Date:		Mon Jun 26 11:26:28 2017 +0200
Changeset:	b3c8fcf3a917dbc9a05306649f62722949013c4f

Modified Files:
	py-html/distinfo
	py-html/patches/patch-setup.py

Log Message:
py-html: fix for Python 3.x

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b3c8fcf3a917dbc9a05306649f62722949013c4f

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

diffstat:
 py-html/distinfo               |  2 +-
 py-html/patches/patch-setup.py | 12 +++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs:
diff --git a/py-html/distinfo b/py-html/distinfo
index b67de24a22..23ea2c6175 100644
--- a/py-html/distinfo
+++ b/py-html/distinfo
@@ -4,4 +4,4 @@ SHA1 (html-1.16.tar.gz) = 3c8cffb4d283ad784326b884fed74aff38211b48
 RMD160 (html-1.16.tar.gz) = 5bf971ae0cee5f9ac1db56baa24f7a5487e433c0
 SHA512 (html-1.16.tar.gz) = fe2329775bc9154aafe2411adb893ce443d3e0875cfa0efa9a722c068578713d3cc123fc62e732215766b3bf7371777a173969100f3025b9f9c99b504482ea39
 Size (html-1.16.tar.gz) = 7639 bytes
-SHA1 (patch-setup.py) = a73d4fddd25d17b12239b0f7114ad9dc27fb75cf
+SHA1 (patch-setup.py) = ad8c0e6c792e447cf06e5407d4a9eeb35c572cda
diff --git a/py-html/patches/patch-setup.py b/py-html/patches/patch-setup.py
index a97aa411ed..13f937e34c 100644
--- a/py-html/patches/patch-setup.py
+++ b/py-html/patches/patch-setup.py
@@ -1,6 +1,7 @@
 $NetBSD$
 
-Fix setup 
+Use setuptools.
+str.decode() has been removed in Python 3.
 
 --- setup.py.orig	2011-06-24 01:02:39.000000000 +0000
 +++ setup.py
@@ -15,3 +16,12 @@ Fix setup
  
  from html import __version__, __doc__
  
+@@ -9,7 +12,7 @@ setup(
+     name = "html",
+     version = __version__,
+     description = "simple, elegant HTML, XHTML and XML generation",
+-    long_description = __doc__.decode('utf8'),
++    long_description = __doc__,
+     author = "Richard Jones",
+     author_email = "rjones%ekit-inc.com@localhost",
+     py_modules = ['html'],


Home | Main Index | Thread Index | Old Index