From ae151d5aeada0181aa1bab5f29ad2fd9199348b1 Mon Sep 17 00:00:00 2001 From: thomas-young-2013 <1225646303@qq.com> Date: Sun, 16 May 2021 11:32:53 +0800 Subject: [PATCH] fix UnicodeDecodeError bug during installing it on windows platform. --- .gitattributes | 3 +++ .gitignore | 3 +++ setup.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bc36aac --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.ts text eol=lf +*.py text eol=lf +*.sh text eol=lf diff --git a/.gitignore b/.gitignore index a01ea41..d04fc69 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,6 @@ ENV/ # mypy .mypy_cache/ + +# pycharm +.idea/ diff --git a/setup.py b/setup.py index 31a51aa..bf424d9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -with open('README.rst') as infile: +with open('README.rst', encoding='utf-8') as infile: readme = infile.read() with open('lazy_import/VERSION') as infile: