Skip to content

Commit a2644da

Browse files
authored
Merge pull request #1748 from EliahKagan/setup-locale
Always read metadata files as UTF-8 in setup.py
2 parents 5f86515 + 6727d0e commit a2644da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
import os
88
import sys
99

10-
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
10+
with open(os.path.join(os.path.dirname(__file__), "VERSION"), encoding="utf-8") as ver_file:
1111
VERSION = ver_file.readline().strip()
1212

13-
with open("requirements.txt") as reqs_file:
13+
with open("requirements.txt", encoding="utf-8") as reqs_file:
1414
requirements = reqs_file.read().splitlines()
1515

16-
with open("test-requirements.txt") as reqs_file:
16+
with open("test-requirements.txt", encoding="utf-8") as reqs_file:
1717
test_requirements = reqs_file.read().splitlines()
1818

19-
with open("README.md") as rm_file:
19+
with open("README.md", encoding="utf-8") as rm_file:
2020
long_description = rm_file.read()
2121

2222

0 commit comments

Comments
 (0)