Skip to content

Commit

Permalink
Merge pull request #123 from akaihola/readme-encoding
Browse files Browse the repository at this point in the history
Read `README.rst` excplicitly as UTF-8 in `setup.py` to fix Windows installation problems
  • Loading branch information
akaihola authored Apr 24, 2021
2 parents aab02f0 + 6344f76 commit 24f1b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Fixed
-----
- Compatibility with MyPy 0.812
- Keep newline character sequence and text encoding intact when modifying files
- Installation now works on Windows


1.2.2_ - 2020-12-30
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def make_pypi_compliant_readme() -> str:
:return: The contents of a PyPI compliant ``README.rst``
"""
with open("README.rst") as fp:
with open("README.rst", encoding="utf-8") as fp:
original_readme = fp.read()
modified_readme = CONTRIBUTORS_RE.sub(
"\nSee README.rst_ for the list of contributors.\n\nThis project follows ",
Expand Down

0 comments on commit 24f1b10

Please sign in to comment.