mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 17:43:32 +00:00
Load requirements from file
This commit is contained in:
parent
cc50d01bb1
commit
5846c72150
11
setup.py
11
setup.py
@ -24,6 +24,12 @@ from setuptools import setup, find_packages
|
|||||||
from compiler.api import compiler as api_compiler
|
from compiler.api import compiler as api_compiler
|
||||||
from compiler.error import compiler as error_compiler
|
from compiler.error import compiler as error_compiler
|
||||||
|
|
||||||
|
|
||||||
|
def requirements():
|
||||||
|
with open("requirements.txt", encoding="utf-8") as r:
|
||||||
|
return [i.strip() for i in r]
|
||||||
|
|
||||||
|
|
||||||
if len(argv) > 1 and argv[1] != "sdist":
|
if len(argv) > 1 and argv[1] != "sdist":
|
||||||
api_compiler.start()
|
api_compiler.start()
|
||||||
error_compiler.start()
|
error_compiler.start()
|
||||||
@ -76,8 +82,5 @@ setup(
|
|||||||
python_requires="~=3.4",
|
python_requires="~=3.4",
|
||||||
packages=find_packages(exclude=["compiler*"]),
|
packages=find_packages(exclude=["compiler*"]),
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
install_requires=[
|
install_requires=requirements()
|
||||||
"pysocks",
|
|
||||||
"tgcrypto"
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user