From owner-svn-ports-head@freebsd.org Tue Feb 14 17:07:12 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D538CDFD98; Tue, 14 Feb 2017 17:07:12 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C6CE14AB; Tue, 14 Feb 2017 17:07:11 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1EH7BkT047818; Tue, 14 Feb 2017 17:07:11 GMT (envelope-from demon@FreeBSD.org) Received: (from demon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1EH7BIu047817; Tue, 14 Feb 2017 17:07:11 GMT (envelope-from demon@FreeBSD.org) Message-Id: <201702141707.v1EH7BIu047817@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: demon set sender to demon@FreeBSD.org using -f From: Dmitry Sivachenko Date: Tue, 14 Feb 2017 17:07:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434129 - head/textproc/py-tabletext/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 17:07:12 -0000 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 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@gmail.com',