from glob import glob
from os.path import basename
from os.path import splitext

from setuptools import setup
from setuptools import find_packages

def _requires_from_file(filename):
    return open(filename).read().splitlines()

with open("README.md", "r") as f:
    long_description = f.read()

setup(
    name="GPBayesOpt",
    version="0.5.0",
    license="MIT License",
    description="A Python Package for Gaussian Process based Baysian Optimization.",
    long_description=long_description,
    long_description_content_type='text/markdown',
    author="<NAME>",
    author_email='<EMAIL>',
    url="https://github.com/JohnYKiyo/bayesian_optimization",
    keywords='bayesian optimization',
    python_requires=">=3.6.0",
    packages = [s.replace('bayesopt','gpbayesopt') for s in find_packages('.')],
    package_dir={"gpbayesopt": "bayesopt"},
    py_modules=[splitext(basename(path))[0] for path in glob('bayesopt/*.py')],
    install_requires=[
        'jax>=0.1.57',
        'jaxlib>=0.1.37',
        'scipy>=1.5.1',
        'GaussianProcess @ git+https://github.com/JohnYKiyo/GaussianProcess.git'
    ]
)
