-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 887 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 887 Bytes
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
'''Made in order to have info about the project and install dependencies'''
from setuptools import setup, find_packages
from typing import List
def get_requirements() -> List[str]:
requirements_lst: List[str] = []
'''
This function will return the list of requirements
'''
try :
with open("requirements.txt", 'r') as file:
lines = file.readlines()
for line in lines:
requirement = line.strip()
if requirement and requirement!='-e .':
requirements_lst.append(requirement)
except FileNotFoundError:
print("requirements.txt file not found.")
return requirements_lst
setup(
name='Network_Security_System',
version='0.1.0',
author='Kashish',
author_email="lunakanu085@gmail.com",
packages=find_packages(),
install_requires=get_requirements()
)