-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (28 loc) · 978 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
27
28
29
30
31
32
33
from setuptools import setup, find_packages
HYPHEN_E_DOT = "-e ."
def get_requirements(requirements_path: str) -> list[str]:
"""
Reads the requirements file and returns a list of packages.
Args:
requirements_path (str): Path to the requirements file.
Returns:
list[str]: List of packages required for the project.
"""
with open(requirements_path, "r") as file:
requirements = file.read().strip().split("\n")
if HYPHEN_E_DOT in requirements:
requirements.remove(HYPHEN_E_DOT)
return requirements
setup(
name="AutoDataAnalyzer",
author="Rauhan Ahmed Siddiqui",
author_email="rauhaan.siddiqui@gmail.com",
version="0.1",
packages=find_packages(),
install_requires=get_requirements(requirements_path="requirements.txt"),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)