svn commit: r434129 - head/textproc/py-tabletext/files

Dmitry Sivachenko demon at FreeBSD.org
Tue Feb 14 17:07:12 UTC 2017


Author: demon
Date: Tue Feb 14 17:07:10 2017
New Revision: 434129
URL: https://svnweb.freebsd.org/changeset/ports/434129

Log:
  Fix build with python3.x
  
  PR:		216208
  Submitted by:	John W. O'Brien <john at saltant.com>
  maintainer timeout.

Added:
  head/textproc/py-tabletext/files/
  head/textproc/py-tabletext/files/patch-setup.py   (contents, props changed)

Added: head/textproc/py-tabletext/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-tabletext/files/patch-setup.py	Tue Feb 14 17:07:10 2017	(r434129)
@@ -0,0 +1,23 @@
+--- setup.py.orig	2014-08-14 18:05:14 UTC
++++ setup.py
+@@ -1,13 +1,18 @@
+ #!/usr/bin/env python
+ 
+ from setuptools import setup
++import sys
++
++open_kwargs = {}
++if sys.version_info.major >= 3:
++    open_kwargs['encoding'] = 'utf8'
+ 
+ setup(name='tabletext',
+       version='0.1',
+       description='Python library and command line utility to pretty-print\
+       tabular data',
+-      long_description=open("README.rst").read() + "\n"
+-      + open("CHANGELOG.rst").read(),
++      long_description=open("README.rst", **open_kwargs).read() + "\n"
++      + open("CHANGELOG.rst", **open_kwargs).read(),
+       url='https://github.com/Thibauth/tabletext',
+       author='Thibaut Horel',
+       author_email='thibaut.horel+tabletext at gmail.com',


More information about the svn-ports-all mailing list