-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
25 lines (20 loc) · 810 Bytes
/
setup.py
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
# setup file helps us to install the project as a package , and can be released
from setuptools import find_packages,setup
from typing import List
HYPHON_E_DOT = "-e ." # -e . is to install the setup file
def get_requirements(filepath:str ) -> List[str]:
requirements = []
with open(filepath) as file_obj:
requirements = file_obj.readlines()
requirements = [i.replace("\n","") for i in requirements]
if HYPHON_E_DOT in requirements:
requirements.remove(HYPHON_E_DOT)
setup(name = 'Customer Churn Project',
version = '0.0.1',
description= 'ML python Project',
author = 'Vardhan Hegde',
author_email='[email protected]',
# url = '',
packages = find_packages(),
install_requires = get_requirements('requirement.txt')
)