Skip to content

Commit

Permalink
fix: encoding error on windows
Browse files Browse the repository at this point in the history
fix by add encoding field to two open functions
  • Loading branch information
gantrol committed Feb 22, 2023
1 parent dffab37 commit 9aec9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def setup_package():
root = Path(__file__).parent.resolve()

with open(root / "requirements-dev.txt") as file:
with open(root / "requirements-dev.txt", encoding="utf8") as file:
DEVELOPMENT_MODULES = [line.strip()
for line in file if "-e" not in line]
extras = {"dev": DEVELOPMENT_MODULES}
Expand All @@ -20,7 +20,7 @@ def setup_package():
author_email="",
url="https://github.com/pharmapsychotic/BLIP",
description="BLIP library for use with CLIP Interrogator",
long_description=open('README.md').read(),
long_description=open('README.md', encoding="utf8").read(),
long_description_content_type="text/markdown",
packages=find_packages(),
install_requires=[
Expand Down

0 comments on commit 9aec9d3

Please sign in to comment.