Skip to content

Commit

Permalink
Added setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykold committed Aug 9, 2024
1 parent 2f9fe3a commit cf7863a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from setuptools import setup, find_packages

with open("requirements.txt") as f:
required = f.read().splitlines()

setup(
name='MLOps-project',
version='0.1',
packages=find_packages(),
author='Christian',
author_email='[email protected]',
install_requires=required
)
3 changes: 1 addition & 2 deletions src/components/data_ingestion.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ucimlrepo import fetch_ucirepo
import pandas as pd
import sys
import os
import sys

from src.exception import CustomException
from src.logger import logging
Expand All @@ -13,7 +13,6 @@
import warnings
warnings.filterwarnings("ignore")


class DataIngestionConfig(BaseModel):
raw_data_path: str = os.path.join('artifacts', "data.csv")
train_data_path: str = os.path.join('artifacts', "train.csv")
Expand Down
2 changes: 0 additions & 2 deletions src/exception.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
from logger import logging

def error_message_detail(error, error_detail:sys)->str:
_, _, exc_tb = error_detail.exc_info()
Expand All @@ -17,4 +16,3 @@ def __init__(self, error_message: str, error_detail:sys):

def __str__(self):
return self.error_message

0 comments on commit cf7863a

Please sign in to comment.