-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (30 loc) · 1.15 KB
/
Copy pathsetup.py
File metadata and controls
34 lines (30 loc) · 1.15 KB
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
34
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from typing import List
# This file is used to create a package for the project
# It will be used to install the package using pip
# The requirements.txt file will be used to install the dependencies
## create a function that will return a list of packages
def get_requirements(file_path:str) -> List:
"""
This function will return a list of requirements
"""
requirements = []
with open(file_path) as file_obj:
requirements = file_obj.readlines()
requirements = [req.replace('\n', '') for req in requirements]
if '-e .' in requirements:
requirements.remove('-e .')
return requirements
setup(
name='NetworkSecurity',
version='0.0.1',
author='YASSIR IBRAHIM',
author_email='absisi2009@gmail.com',
packages=find_packages(),
install_requires=get_requirements('requirements.txt'),
description='This package provides tools and utilities\
for network security analysis and monitoring.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
)