$OpenBSD: patch-setup_py,v 1.1 2019/02/18 11:06:22 ajacoutot Exp $

From 0eaeeadc0411cab8c9f6b1155c13729ce9c7714a Mon Sep 17 00:00:00 2001
From: Alexey Sveshnikov <alexey.sveshnikov@gmail.com>
Date: Wed, 19 Sep 2018 00:58:48 +0300
Subject: [PATCH] Use utf-8 when reading README; Use io.open

Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -14,9 +14,13 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+# io.open is needed for projects that support Python 2.7. It ensures open()
+# defaults to text mode with universal newlines, and accepts an argument to
+# specify the text encoding Python 3 only projects can skip this import.
+from io import open
 from setuptools import setup
 
-with open('README.md') as f:
+with open('README.md', encoding='utf-8') as f:
     long_description = f.read()
 
 if __name__ == '__main__':
