Skip to content

Commit 135e6bf

Browse files
setup
1 parent 8d0a538 commit 135e6bf

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pandas
2+
numpy
3+
seaborn
4+
-e .

setup.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from setuptools import find_packages, setup
2+
from typing import List
3+
hyphen_e_dot = '-e .'
4+
def get_requirements(file_path:str)->List[str]:
5+
requirements = []
6+
with open(file_path) as file_obj:
7+
requirements = file_obj.readlines()
8+
requirements = [req.replace("\n","")for req in requirements]
9+
if hyphen_e_dot in requirements:
10+
requirements.remove(hyphen_e_dot)
11+
12+
13+
project_name = 'mlproject'
14+
setup(
15+
name=project_name,
16+
version="0.0.1",
17+
author="Lakshita",
18+
author_email="[email protected]",
19+
packages= find_packages(),
20+
install_requires=get_requirements('requirements.txt')
21+
22+
)

src/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)