Skip to content

Commit acb35c0

Browse files
authored
fix: add encoding parameter to open() calls in setup.py
fix: add encoding parameter to open() calls in setup.py
2 parents 01f429e + 2ececa2 commit acb35c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import setuptools
22
from setuptools import find_packages
33

4-
with open("readme.md", "r") as fh:
4+
with open("readme.md", "r", encoding="utf-8") as fh:
55
long_description = fh.read()
66

77

88
vars2find = ["__author__", "__version__", "__url__"]
99
vars2readme = {}
10-
with open("./nano_graphrag/__init__.py") as f:
10+
with open("./nano_graphrag/__init__.py", encoding="utf-8") as f:
1111
for line in f.readlines():
1212
for v in vars2find:
1313
if line.startswith(v):
1414
line = line.replace(" ", "").replace('"', "").replace("'", "").strip()
1515
vars2readme[v] = line.split("=")[1]
1616

1717
deps = []
18-
with open("./requirements.txt") as f:
18+
with open("./requirements.txt", encoding="utf-8") as f:
1919
for line in f.readlines():
2020
if not line.strip():
2121
continue

0 commit comments

Comments
 (0)