mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-23 18:13:56 +03:00
(setup) fix install crash on non-utf8 systems (#644)
fixes https://github.com/ets-labs/python-dependency-injector/issues/643
This commit is contained in:
parent
aaff333f01
commit
a9cd0de886
6
setup.py
6
setup.py
|
@ -11,15 +11,15 @@ defined_macros = dict()
|
||||||
defined_macros["CYTHON_CLINE_IN_TRACEBACK"] = 0
|
defined_macros["CYTHON_CLINE_IN_TRACEBACK"] = 0
|
||||||
|
|
||||||
# Getting description:
|
# Getting description:
|
||||||
with open("README.rst") as readme_file:
|
with open("README.rst", encoding="utf-8") as readme_file:
|
||||||
description = readme_file.read()
|
description = readme_file.read()
|
||||||
|
|
||||||
# Getting requirements:
|
# Getting requirements:
|
||||||
with open("requirements.txt") as requirements_file:
|
with open("requirements.txt", encoding="utf-8") as requirements_file:
|
||||||
requirements = requirements_file.readlines()
|
requirements = requirements_file.readlines()
|
||||||
|
|
||||||
# Getting version:
|
# Getting version:
|
||||||
with open("src/dependency_injector/__init__.py") as init_file:
|
with open("src/dependency_injector/__init__.py", encoding="utf-8") as init_file:
|
||||||
version = re.search("__version__ = \"(.*?)\"", init_file.read()).group(1)
|
version = re.search("__version__ = \"(.*?)\"", init_file.read()).group(1)
|
||||||
|
|
||||||
# Adding debug options:
|
# Adding debug options:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user