Skip to content

Commit

Permalink
fix(setup): use utf-8 encoding
Browse files Browse the repository at this point in the history
Fixes #1142 

Co-authored-by: Andre.Bonin <[email protected]>
Co-authored-by: Hervé BREDIN <[email protected]>
  • Loading branch information
3 people authored Nov 14, 2022
1 parent 85bc101 commit d966b51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from pkg_resources import VersionConflict, require
from setuptools import find_packages, setup

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

with open("requirements.txt") as f:
with open("requirements.txt", mode="r", encoding="utf-8") as f:
requirements = f.read().splitlines()

try:
Expand All @@ -21,7 +21,7 @@
ROOT_DIR = Path(__file__).parent.resolve()
# Creating the version file

with open("version.txt") as f:
with open("version.txt", mode="r", encoding="utf-8") as f:
version = f.read()

version = version.strip()
Expand All @@ -35,7 +35,7 @@

version_path = ROOT_DIR / "pyannote" / "audio" / "version.py"

with open(version_path, "w") as f:
with open(version_path, mode="w", encoding="utf-8") as f:
f.write("__version__ = '{}'\n".format(version))

if __name__ == "__main__":
Expand Down

0 comments on commit d966b51

Please sign in to comment.