-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (29 loc) · 962 Bytes
/
setup.py
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
'''
This file is used to install the package in the system.
'''
from setuptools import setup, find_packages
from typing import List
def get_requirements() -> List[str]:
"""
Read the requirements.txt file and return the content as a list of strings.
"""
requirement_list:List[str] = []
try:
with open('requirements.txt') as f:
lines = f.readlines()
for line in lines:
requirement = line.strip()
if requirement and requirement!= '-e .':
requirement_list.append(requirement)
except FileNotFoundError as e:
print(f"requirement.txt file not found: {e}")
return requirement_list
setup(
name='NetworkSecurityProject',
version='0.0.1',
description='A simple network security project',
author='Animesh Basak',
author_email='[email protected]',
packages=find_packages(),
install_requires=get_requirements()
)