From 620c08bdbe21b3cb5af3b1ae0e817a032e0a2a62 Mon Sep 17 00:00:00 2001 From: Jungtaek Kim Date: Tue, 27 Feb 2024 18:09:03 -0500 Subject: [PATCH] Replace setup.py with pyproject.toml --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ requirements-dev.txt | 3 --- requirements.txt | 1 - setup.py | 32 -------------------------------- 4 files changed, 41 insertions(+), 36 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements-dev.txt delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ae7fc5f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = [ + "setuptools", + "setuptools-scm", + "numpy", +] + +[tool.setuptools] +packages = ["bayeso_benchmarks"] + +[project] +name = "bayeso-benchmarks" +version = "0.2.0" +authors = [ + {name = "Jungtaek Kim", email = "jungtaek.kim.mail@gmail.com"}, +] +description = "Benchmark functions for Bayesian optimization" +readme = "README.md" +requires-python = ">=3.6" +license = {text = "MIT"} +classifiers = [ + "Programming Language :: Python :: 3", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Artificial Intelligence", +] + +[project.urls] +Homepage = "https://bayeso.org" +Source = "https://github.com/jungtaekkim/bayeso-benchmarks" +Issues = "https://github.com/jungtaekkim/bayeso-benchmarks/issues" + +[tool.pip-compile.optional-dependencies] +dev = [ + "pytest", + "scipy", + "matplotlib", +] diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 34fccf8..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest -scipy -matplotlib diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 24ce15a..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -numpy diff --git a/setup.py b/setup.py deleted file mode 100644 index 99a468d..0000000 --- a/setup.py +++ /dev/null @@ -1,32 +0,0 @@ -from setuptools import setup -from pathlib import Path - - -this_directory = Path(__file__).parent -long_description = (this_directory / "README.md").read_text() - -path_requirements = 'requirements.txt' -list_packages = ['bayeso_benchmarks'] - -with open(path_requirements) as f: - required = f.read().splitlines() - -setup( - name='bayeso-benchmarks', - version='0.2.0', - author='Jungtaek Kim', - author_email='jungtaek.kim.mail@gmail.com', - url='https://bayeso.org', - license='MIT', - description='Benchmark Functions for Bayesian optimization', - long_description=long_description, - long_description_content_type='text/markdown', - packages=list_packages, - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*, !=3.4.*, !=3.5.*, <4', - install_requires=required, - classifiers=[ - 'License :: OSI Approved :: MIT License', - 'Topic :: Scientific/Engineering', - 'Topic :: Scientific/Engineering :: Artificial Intelligence', - ] -)