-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (25 loc) · 857 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (25 loc) · 857 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
from setuptools import setup, find_packages
from typing import List
def get_requirements(file_path: str) -> List[str]:
'''
Returns a list of requirements from a requirements.txt file
'''
requirement_list = []
try:
with open(file_path, 'r', encoding='utf-8') as file:
lines = file.readlines()
for line in lines:
requirement = line.strip()
if requirement and requirement != '-e .':
requirement_list.append(requirement)
except FileNotFoundError:
print(f"Error: The file {file_path} was not found.")
return requirement_list
setup(
name='NetworkSecurity',
version='0.0.1',
author='Saiaakash',
author_email="saiaakash33333@gmail.com",
packages=find_packages(),
install_requires=get_requirements('requirements.txt')
)