Update setup.py

This commit is contained in:
Dan 2018-04-02 11:07:23 +02:00
parent 8b3ba8a573
commit d1517ae885

View File

@ -25,8 +25,8 @@ from compiler.api import compiler as api_compiler
from compiler.error import compiler as error_compiler
def requirements():
with open("requirements.txt", encoding="utf-8") as r:
def read(file: str) -> list:
with open(file, encoding="utf-8") as r:
return [i.strip() for i in r]
@ -82,5 +82,6 @@ setup(
python_requires="~=3.4",
packages=find_packages(exclude=["compiler*"]),
zip_safe=False,
install_requires=requirements()
install_requires=read("requirements.txt"),
extras_require={"tgcrypto": read("requirements_extras.txt")}
)