Download setup.py from rishitpant/system-threat-forecaster: direct link, hf CLI and curl.
- Browser
- Download file 677 Bytes
-
https://huggingface.co/spaces/rishitpant/system-threat-forecaster/resolve/main/setup.py
- Command line
-
hf download hf://spaces/rishitpant/system-threat-forecaster/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/rishitpant/system-threat-forecaster/resolve/main/setup.py
677 Bytes
| from setuptools import find_packages, setup | |
| from typing import List | |
| def get_requirements(file_path:str) -> List[str]: | |
| ''' | |
| Will return the list of requirements | |
| ''' | |
| requirements = [] | |
| with open(file_path) as file_obj: | |
| requirements=file_obj.readlines() | |
| requirements = [req.replace("\n", "") for req in requirements] | |
| if "-e ." in requirements: | |
| requirements.remove("-e .") | |
| return requirements | |
| setup( | |
| name = "threatforecaster", | |
| version = '0.0.1', | |
| author = 'Rishit', | |
| author_email = 'rishitpant100@gmail.com', | |
| packages = find_packages(), | |
| install_requires = get_requirements('requirements.txt') | |
| ) |