[Python-modules-commits] [python-scrapy-djangoitem] 03/05: Use io.open to read UTF-8 README.rst file.

Michael Fladischer fladi at moszumanska.debian.org
Sat Feb 11 09:19:30 UTC 2017


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

fladi pushed a commit to branch master
in repository python-scrapy-djangoitem.

commit db3256a0366cf0223386c144c0f012c5fd237407
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Thu Feb 2 20:14:47 2017 +0100

    Use io.open to read UTF-8 README.rst file.
    
    Otherwise we would not be able to use setup.py with Python3.
---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2aa7bb8..b654e0f 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,13 @@
 from setuptools import setup, find_packages
 
+import io
 
 setup(
     name='scrapy-djangoitem',
     version='1.1.1',
     url='https://github.com/scrapy-plugins/scrapy-djangoitem',
     description='Scrapy extension to write scraped items using Django models',
-    long_description=open('README.rst').read(),
+    long_description=io.open('README.rst', encoding='utf-8').read(),
     author='Scrapy developers',
     license='BSD',
     packages=find_packages(exclude=('tests', 'tests.*')),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-scrapy-djangoitem.git



More information about the Python-modules-commits mailing list