Skip to content

Commit

Permalink
Adding explicit UTF-8 encoding while reading readme, license and requ…
Browse files Browse the repository at this point in the history
…irements file.

Testing:
Issue is seen in Python-3.6.9 and goes away with this fix.
Issue is not seen in Python-3.8.2 and doesn't get impacted by this fix.
  • Loading branch information
Amit Hattimare committed May 17, 2021
1 parent 9d3ff6c commit 3076b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from setuptools import setup, find_packages
import sys

with open('README.md') as f:
with open('README.md', encoding='utf8') as f:
readme = f.read()

with open('LICENSE') as f:
with open('LICENSE', encoding='utf8') as f:
license = f.read()

with open('requirements.txt') as f:
with open('requirements.txt', encoding='utf8') as f:
reqs = f.read()

setup(
Expand Down

0 comments on commit 3076b3d

Please sign in to comment.