MKPatel007/network-security-system
0
1'''2The setup.py file is an essential part of packeging and distributing Python projects. It is used by setuptools (or distutils in older Python versions) to define the configuration of your project, such as its metadata, dependencies, and more.3'''4 5from setuptools import find_packages,setup6from typing import List7 8def get_requirements() -> List[str]:9 '''10 This function return list of requirements11 '''12 requirement_lst:List[str] = []13 try:14 with open('requirements.txt', 'r') as file:15 # Read lines from the file16 lines = file.readlines()17 # Process each line18 for line in lines:19 # Remove space from line20 requirement = line.strip()21 # Ignore empty lines and -e.22 if requirement and requirement != '-e .':23 requirement_lst.append(requirement)24 except FileNotFoundError:25 print("requirements.txt file not found")26 27 return requirement_lst28 29 30setup(31 name = "Network Security System",32 version = "0.0.1",33 author = "Kirtan Patel",34 author_email = "kpmandaviya001@gmail.com",35 packages = find_packages(),36 install_requires = get_requirements(),37 38)