Spaces:
Sleeping
Sleeping
File size: 916 Bytes
7f01a4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
from setuptools import find_packages,setup
from typing import List
def get_requirements()->List[str]:
"""
Thiss function will return list of requirements
"""
requirement_lst:List[str]=[]
try:
with open('requirements.txt','r') as file:
#Read lines from the file
lines=file.readlines()
## Process each line
for line in lines:
requirement=line.strip()
## ignore empty lines and -e .
if requirement and requirement!= '-e .':
requirement_lst.append(requirement)
except FileNotFoundError:
print("requirements.txt file not found")
return requirement_lst
setup(
name="NetworkSecurity",
version="0.0.1",
author="Divyansh Bansal",
author_email="divyanshb30@gmail.com",
packages=find_packages(),
install_requires=get_requirements()
) |