# SPDX-License-Identifier: Apache-2.0
import os

from setuptools import find_packages, setup


# Collect static file paths
def package_files(directory):
    paths = []
    for path, directories, filenames in os.walk(directory):
        for filename in filenames:
            paths.append(os.path.join("..", path, filename))
    return paths


# Static file paths
static_files = package_files("lmcache_frontend/")

setup(
    name="lmcache_frontend",
    version="0.1.4",
    packages=find_packages(),
    include_package_data=True,
    package_data={
        "lmcache_frontend": static_files,
    },
    install_requires=[
        "Flask",
    ],
    entry_points={"console_scripts": ["lmcache-frontend=lmcache_frontend.app:main"]},
)
