-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
26 lines (21 loc) · 763 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
26
from setuptools import setup, find_packages
REQUIREMENT_FILE_NAME = "requirements.txt"
REMOVE_PACKAGE = "-e ."
def get_requirement_list(requirement_file_name=REQUIREMENT_FILE_NAME) -> list:
try:
requirement_list = None
with open(requirement_file_name) as requirement_file:
requirement_list = [requirement.replace("\n", "") for requirement in requirement_file]
requirement_list.remove(REMOVE_PACKAGE)
return requirement_list
except Exception as e:
raise e
setup(
name="Housing price prediction",
license="MIT",
version="0.0.0",
description="Project has been completed.",
author="Md Sanowar Hossain",
packages=find_packages(),
install_requires=get_requirement_list()
)