From 4df32ee171e47dafc7df701067aafa83a3f6b7aa Mon Sep 17 00:00:00 2001 From: Daniel Bok Date: Sat, 8 Jun 2024 10:23:35 +0800 Subject: [PATCH] replace setup.cfg with pyproject.toml --- pyproject.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 37 ------------------------------------- 2 files changed, 48 insertions(+), 37 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ead89d7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,48 @@ +[project] +name = "nlopt" +version = "2.7.1" +description = "Library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization" +readme = "README.md" +readme-content-type = "text/markdown" +authors = [ + { name = "Daniel Bok", email = "daniel.bok@outlook.com" }, +] +maintainers = [ + { name = "Daniel Bok", email = "daniel.bok@outlook.com" }, +] +license = { text = "MIT" } +keywords = ["algorithms", "global local constrained unconstrained optimization", "optimization", "non-linear optimization"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: End Users/Desktop", + "Intended Audience :: Education", + "License :: OSI Approved :: MIT License", + "Operating System :: MacOS", + "Operating System :: Microsoft :: Windows", + "Operating System :: Unix", + "Programming Language :: C++", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering", +] + +[project.urls] +"Documentation" = "https://nlopt.readthedocs.io/en/latest/" +"Code" = "https://github.com/DanielBok/nlopt-python" +"Issue tracker" = "https://github.com/DanielBok/nlopt-python/issues" + +[project.dependencies] +python = ">=3.9" +nlopt = ">= 1.18.5" + +[build-system] +requires = [ + "setuptools", + "numpy >= 1.18.5" +] + diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0a694df..0000000 --- a/setup.cfg +++ /dev/null @@ -1,37 +0,0 @@ -[metadata] -name = nlopt -author = Daniel Bok -author_email = daniel.bok@outlook.com -project_urls = - Documentation = https://nlopt.readthedocs.io/en/latest/ - Code = https://github.com/DanielBok/nlopt-python - Issue tracker = https://github.com/DanielBok/nlopt-python/issues -license = MIT -maintainer = Daniel Bok -maintainer_email = daniel.bok@outlook.com -description = Library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization -long_description = file: README.md -long_description_content_type = text/markdown -keywords = - algorithms - global local constrained unconstrained optimization - optimization - non-linear optimization -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: End Users/Desktop - Intended Audience :: Education - License :: OSI Approved :: MIT License - Operating System :: MacOS - Operating System :: Microsoft :: Windows - Operating System :: Unix - Programming Language :: C++ - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Topic :: Scientific/Engineering - -[options] -python_requires = >= 3.8