Skip to content

Commit

Permalink
add encoding to setup.py for windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed Jul 18, 2023
1 parent b18050b commit a74dd4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
here = os.path.abspath(os.path.dirname(__file__))

# Versioning
with open(os.path.join(here, "ffmpeg_quality_metrics", "__init__.py")) as version_file:
with open(
os.path.join(here, "ffmpeg_quality_metrics", "__init__.py"), encoding="utf-8"
) as version_file:
# parse the string that looks like '__version__ = "3.1.2"'
for line in version_file:
if line.startswith("__version__"):
Expand Down

0 comments on commit a74dd4b

Please sign in to comment.