-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (40 loc) · 1.54 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'''
This file allow to package the project to allow the distribution with pip. It would not be used in the project because
we are using poetry.
'''
''''''
from setuptools import find_packages, setup
from typing import List
HYPHEN_E_DOT = '-e .'
def get_requirements(file_path: str) -> List[str]:
'''
This function allows reading the requirements.txt file and returns a list of requirements.
'''
with open(file_path) as file_object:
requirements = file_object.readlines()
requirements = [req.replace("\n", "") for req in requirements]
if HYPHEN_E_DOT in requirements:
requirements.remove(HYPHEN_E_DOT)
return requirements
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
__version__ = "0.0.1"
REPO_NAME = "student_performance_project"
AUTHOR_USER_NAME = "LuisOlcay20"
AUTHOR_EMAIL = "luis.olcay@uc.cl"
setup(
name=REPO_NAME,
version=__version__,
author=AUTHOR_USER_NAME,
author_email=AUTHOR_EMAIL,
description="End to end ML project",
long_description=long_description,
long_description_content_type="text/markdown", # changed to long_description_content_type
url="https://github.com/LuisOlcay20/students_performance_project", # added missing quote at the start
project_urls={
"Bug Tracker": "https://github.com/LuisOlcay20/students_performance_project/issues",
},
package_dir={"": "src"},
packages=find_packages(where="src"), # found packages in src folder
install_requires=get_requirements("requirements.txt"),
)