From 3d87f48484b1cb562f6db7b4527b0101706cf340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Di=20Domenico?= Date: Thu, 5 Apr 2018 15:17:10 +0200 Subject: [PATCH] Added encoding to open function in setup.py (fixes csb-toolbox/CSB#7) --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f55a5ee..7441e09 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,10 @@ 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 @@ 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"]()