Skip to content

Commit

Permalink
Force README encoding in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 21, 2020
1 parent 719270d commit 3ec1292
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Expand Up @@ -2,16 +2,17 @@
# Copyright © 2015-2017 ACSONE SA/NV
# License LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0-standalone.html)

import io
import os

import setuptools

here = os.path.abspath(os.path.dirname(__file__))

long_description = []
with open(os.path.join("README.rst")) as f:
with io.open(os.path.join("README.rst"), encoding="utf-8") as f:
long_description.append(f.read())
with open(os.path.join("CHANGES.rst")) as f:
with io.open(os.path.join("CHANGES.rst"), encoding="utf-8") as f:
long_description.append(f.read())


Expand Down

0 comments on commit 3ec1292

Please sign in to comment.