File: unicode_readme.patch

package info (click to toggle)
python-multipletau 0.1.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 400 kB
  • ctags: 147
  • sloc: python: 1,368; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Import codec module to read README.rst file with unicode symbols
Author: Alex Mestiashvili <mailatgoogl@gmail.com>
--- python-multipletau.orig/setup.py
+++ python-multipletau/setup.py
@@ -4,6 +4,7 @@
 # python setup.py sdist
 from os.path import exists, dirname, realpath
 from setuptools import setup
+import codecs
 import sys
 
 
@@ -32,7 +33,7 @@
         package_dir={name: name},
         license="BSD (3 clause)",
         description=description,
-        long_description=open('README.rst').read() if exists('README.rst') else '',
+        long_description=codecs.open('README.rst','r','utf-8').read() if exists('README.rst') else '',
         install_requires=["NumPy >= 1.5.1"],
         keywords=["multiple", "tau", "FCS", "correlation", "spectroscopy",
                   "fluorescence"],