updated setup.py
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import pkg_resources
|
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
module_name = "scraibe"
|
module_name = "scraibe"
|
||||||
@@ -22,6 +22,11 @@ build_version = "SCRAIBE_BUILD" in os.environ
|
|||||||
|
|
||||||
version["ISRELEASED"] = True if "ISRELEASED" in os.environ else False
|
version["ISRELEASED"] = True if "ISRELEASED" in os.environ else False
|
||||||
|
|
||||||
|
############### load requirements ###############
|
||||||
|
|
||||||
|
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
|
||||||
|
requirements = [line.strip() for line in f if line.strip() and not line.startswith('#')]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@@ -30,10 +35,7 @@ if __name__ == "__main__":
|
|||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires=">=3.8",
|
python_requires=">=3.8",
|
||||||
readme="README.md",
|
readme="README.md",
|
||||||
install_requires = [str(r) for r in pkg_resources.parse_requirements(
|
install_requires = requirements,
|
||||||
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
|
|
||||||
)
|
|
||||||
],
|
|
||||||
extras_require= {
|
extras_require= {
|
||||||
"app" : "scraibe-webui @ https://github.com/JSchmie/ScrAIbe-WebUI"
|
"app" : "scraibe-webui @ https://github.com/JSchmie/ScrAIbe-WebUI"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user