Skip to content

Commit

Permalink
fix[ci]: fix README encoding in setup.py (vyperlang#4348)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles-cooper authored and sandbubbles committed Nov 7, 2024
1 parent 2dfa033 commit 5637913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

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

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


Expand Down

0 comments on commit 5637913

Please sign in to comment.