View | Details | Raw Unified | Return to bug 216208 | Differences between
and this patch

Collapse All | Expand All

(-)textproc/py-tabletext/files/patch-setup.py (+23 lines)
Line 0 Link Here
1
--- setup.py.orig	2014-08-14 18:05:14 UTC
2
+++ setup.py
3
@@ -1,13 +1,18 @@
4
 #!/usr/bin/env python
5
 
6
 from setuptools import setup
7
+import sys
8
+
9
+open_kwargs = {}
10
+if sys.version_info.major >= 3:
11
+    open_kwargs['encoding'] = 'utf8'
12
 
13
 setup(name='tabletext',
14
       version='0.1',
15
       description='Python library and command line utility to pretty-print\
16
       tabular data',
17
-      long_description=open("README.rst").read() + "\n"
18
-      + open("CHANGELOG.rst").read(),
19
+      long_description=open("README.rst", **open_kwargs).read() + "\n"
20
+      + open("CHANGELOG.rst", **open_kwargs).read(),
21
       url='https://github.com/Thibauth/tabletext',
22
       author='Thibaut Horel',
23
       author_email='thibaut.horel+tabletext@gmail.com',

Return to bug 216208