Skip to content

Commit 53f623b

Browse files
fix[ci]: fix README encoding in setup.py (#4348)
the call to `setup()` would fail on windows when there are unicode characters in `README.md`, because files are apparently opened with encoding `cp1252` by default on windows. this commit ensures the file is opened with `utf-8` encoding.
1 parent 471a556 commit 53f623b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
extras_require["dev"] = extras_require["dev"] + extras_require["test"] + extras_require["lint"]
3838

39-
with open("README.md", "r") as f:
39+
with open("README.md", "r", encoding="utf-8") as f:
4040
long_description = f.read()
4141

4242

0 commit comments

Comments
 (0)