-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (30 loc) · 869 Bytes
/
Copy pathsetup.py
File metadata and controls
33 lines (30 loc) · 869 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
29
30
31
32
33
from setuptools import setup, find_packages
from typing import List
def get_requirements() -> List[str]:
'''
This function returns a list of requirements
'''
requirements = []
try:
with open('requirements.txt', 'r') as file:
for line in file:
line = line.strip()
if line and line != "-e .":
requirements.append(line)
except FileNotFoundError:
print("="*35)
print("requirements.txt not found")
print("="*35)
except Exception as e:
print("="*35)
print(f"An exception occurred: {e}")
print("="*35)
return requirements
setup(
name='network_security',
version='0.0.1',
author='Pradyumn Bisht',
author_email='pradybisht@gmail.com',
packages=find_packages(),
install_requires=get_requirements()
)