from setuptools import setup
from setuptools import find_packages
import os

path = os.path.join("src", "chatting_chatbots", "about.py")

# extract version number from about.py
with open(path) as f:
    v = f.read()
    for line in v.split("\n"):
        if line.startswith("__version__"):
            __version__ = line.split('"')[-2]


def setup_package():
    setup(
        version=__version__,
        packages=find_packages("src"),
        package_dir={"": "src"},
    )


if __name__ == "__main__":
    setup_package()
