diff options
author | Jan Willhaus <mail@janwillhaus.de> | 2019-05-19 21:37:48 +0200 |
---|---|---|
committer | Jan Willhaus <mail@janwillhaus.de> | 2019-05-19 21:37:48 +0200 |
commit | 50641e3412b953487adbe678fff6c290524fe6c4 (patch) | |
tree | e4cb2385760ce1bc1be553147582c68a2b5dc84a | |
parent | bf0639aa4da5696c270b8d5ef0c15ff0536563a5 (diff) | |
download | warlock-50641e3412b953487adbe678fff6c290524fe6c4.tar.gz |
Enforce utf-8 encoding when reading files into setup.py
-rw-r--r-- | MANIFEST.in | 2 | ||||
-rw-r--r-- | setup.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 4a54693..b6975e2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include LICENSE.txt +include LICENSE include README.md include requirements.txt include setup.py @@ -17,14 +17,16 @@ import os def parse_requirements(): - fap = open("requirements.txt", "r") + fap = open("requirements.txt", "r", encoding="utf-8") raw_req = fap.read() fap.close() return raw_req.split("\n") def read(fname): - with open(os.path.join(os.path.dirname(__file__), fname), "r") as fp: + with open( + os.path.join(os.path.dirname(__file__), fname), "r", encoding="utf-8" + ) as fp: return fp.read() |