Skip to content

Commit 4294da6

Browse files
committed
setup and requiremnts
1 parent 8404f93 commit 4294da6

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pandas
2+
numpy
3+
seaborn

setup.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from setuptools import find_packages, setup
2+
from typing import List
3+
4+
HYPHEN_E_DOT = '-e .'
5+
6+
def get_requirements(file_path:str)->List[str]:
7+
'''
8+
this function will return the list of requirements
9+
'''
10+
requirements = []
11+
with open(file_path) as file_obj:
12+
requirements = file_obj.readlines()
13+
requirements = [req.replace("\n","") for req in requirements]
14+
15+
if HYPHEN_E_DOT in requirements:
16+
requirements.remove(HYPHEN_E_DOT)
17+
18+
return requirements
19+
20+
21+
setup(
22+
name = "mlproject",
23+
version = '0.0.1',
24+
author = 'sanjay',
25+
author_email= 'skprasad117@gmail.com',
26+
packages= find_packages(),
27+
install_requires = get_requirements('requirements.txt')
28+
)

src/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)