1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Author: Ghislain Vaillant <ghisvail@gmail.com>
Last-Update: Mon, 13 Nov 2017 09:17:24 +0000
Description: Fix reading UTF-8 encoded files
@@ -2,10 +2,10 @@ import sys
from setuptools import setup, find_packages
from csb.build import ROOT
-
+from io import open
try:
- __doc__ = open('README.rst').read()
+ __doc__ = open('README.rst', encoding="utf-8").read()
except IOError:
__doc__ = ""
@@ -18,14 +18,14 @@ SUMMARY = "Computational Structural Biol
DESCRIPTION = __doc__
LICENSE = 'MIT'
-REQUIREMENTS = open("requirements.txt").readlines()
+REQUIREMENTS = open("requirements.txt", encoding="utf-8").readlines()
DEV_REQUIREMENTS = []
if sys.version_info[0] == 2:
DEV_REQUIREMENTS.append("epydoc")
v = {}
-exec(open(ROOT + "/__init__.py").read(), v)
+exec(open(ROOT + "/__init__.py", encoding="utf-8").read(), v)
VERSION = v["Version"]()
|