[med-svn] [python-csb] 01/05: Fix reading UTF-8 encoded files

Andreas Tille tille at debian.org
Mon Nov 13 11:39:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository python-csb.

commit aa023271bb965e68adddc227793193d41bdb1020
Author: Andreas Tille <tille at debian.org>
Date:   Mon Nov 13 11:21:47 2017 +0100

    Fix reading UTF-8 encoded files
---
 debian/changelog               |  1 +
 debian/patches/fix_setup.patch | 36 ++++++++++++++++++++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 38 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6d83f1d..ebeabae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ python-csb (1.2.5+dfsg-1) UNRELEASED; urgency=medium
   * Project moved to Github
   * debhelper 10
   * Standards-Version: 4.1.1
+  * Fix reading UTF-8 encoded files
 
  -- Andreas Tille <tille at debian.org>  Mon, 13 Nov 2017 08:21:31 +0100
 
diff --git a/debian/patches/fix_setup.patch b/debian/patches/fix_setup.patch
new file mode 100644
index 0000000..19660ab
--- /dev/null
+++ b/debian/patches/fix_setup.patch
@@ -0,0 +1,36 @@
+Author: Ghislain Vaillant <ghisvail at gmail.com>
+Last-Update: Mon, 13 Nov 2017 09:17:24 +0000
+Description: Fix reading UTF-8 encoded files
+
+--- a/setup.py
++++ b/setup.py
+@@ -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"]()
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index e5ac533..d90cd39 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 exclude_online_tests.patch
 reproducible.patch
+fix_setup.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-csb.git



More information about the debian-med-commit mailing list