-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f21a141
commit 871571c
Showing
1 changed file
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
from setuptools import find_packages, setup | ||
from setuptools import find_packages,setup | ||
from typing import List | ||
|
||
HYPEN_E_DOT='-e .' | ||
|
||
def get_requirements(file_path:str)->List[str]: | ||
requirements=[] | ||
with open(file_path) as file_obj: | ||
requirements=file_obj.readlines() | ||
requirements=[req.replace("\n","") for req in requirements] | ||
|
||
if HYPEN_E_DOT in requirements: | ||
requirements.remove(HYPEN_E_DOT) | ||
|
||
return requirements | ||
|
||
|
||
setup( | ||
name="src", | ||
version="0.0.1", | ||
author="Tushar Singh", | ||
author_email="[email protected]", | ||
packages=find_packages(), | ||
install_requires=[], | ||
name='Sensor-Fault-Detection', | ||
version='0.0.1', | ||
author='TUSHAR SINGH', | ||
author_email='[email protected]', | ||
install_requires=get_requirements('requirements.txt'), | ||
packages=find_packages() | ||
|
||
) |