-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (31 loc) · 1.06 KB
/
setup.py
File metadata and controls
37 lines (31 loc) · 1.06 KB
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
from setuptools import find_packages,setup
from typing import List
def get_requirements()->List[str]:
"""
This function will return list of requirements
"""
requirement_list:List[str] = []
try:
# Open and read the requirements.txt file
with open('requirements.txt', 'r') as file:
# Read lines from the file
lines = file.readlines()
# Process each line
for line in lines:
# Strip whitespace and newline characters
requirement = line.strip()
# Ignore empty lines and -e .
if requirement and requirement != '-e .':
requirement_list.append(requirement)
except FileNotFoundError:
print("requirements.txt file not found.")
return requirement_list
print(get_requirements())
setup(
name="AI-TRAVEL-PLANNER",
version="0.0.1",
author="rathod pavan kumar naik",
author_email="bt22cse111@iiitn.ac.in",
packages = find_packages(),
install_requires=get_requirements()
)