from setuptools import setup, find_packages
from typing import List

# HYPEN_E_DOT='-e .'

# def get_requiremet(file_path:str)->List[str]:
#     requirements = []
#     with open(file_path) as f:
#         requirements=f.readlines()
#         requirements=[req.replace("\n","")for req in requirements]
        
#         if HYPEN_E_DOT in requirements:
#             requirements.remove(HYPEN_E_DOT)
#     return requirements

   
with open('README.md', 'r', encoding="ISO-8859-1") as f:
    long_description = f.read()     
   

__version__ = "0.0.1"
REPO_NAME = "MLOps-Day3-mongodbconnectorpkg"
PKG_NAME= "mongodbpackage_robins"
AUTHOR_USER_NAME = "robinyUArizona"
AUTHOR_EMAIL = "robiny@arizona.edu"

setup(
    name=PKG_NAME,
    version=__version__,
    author=AUTHOR_USER_NAME,
    author_email=AUTHOR_EMAIL,
    description="A python package for connecting with database.",
    long_description=long_description,
    long_description_content="text/markdown",
    url=f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}",
    project_urls={
        "Bug Tracker": f"https://github.com/{AUTHOR_USER_NAME}/{REPO_NAME}/issues",
    },
    package_dir={"": "src"},
    packages=find_packages(where="src"),
    # install_requirements=get_requiremet("./requirements_dev.txt")   
    
)