diff --git a/pyproject.toml b/pyproject.toml index 2a38d6b..7716298 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,66 @@ [build-system] requires = ["pbr>=6.1.1"] build-backend = "pbr.build" + +[project] +name = "osprofiler" +description = "OpenStack Profiler Library" +authors = [ + {name = "OpenStack", email = "openstack-discuss@lists.openstack.org"}, +] +readme = {file = "README.rst", content-type = "text/x-rst"} +license = {text = "Apache-2.0"} +dynamic = ["version", "dependencies"] +requires-python = ">=3.10" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] + +[project.urls] +Homepage = "https://docs.openstack.org/osprofiler/" +Repository = "https://opendev.org/openstack/osprofiler" + +[project.entry-points."oslo.config.opts"] +osprofiler = "osprofiler.opts:list_opts" + +[project.entry-points."paste.filter_factory"] +osprofiler = "osprofiler.web:WsgiMiddleware.factory" + +[project.optional-dependencies] +elasticsearch = [ + "elasticsearch>=2.0.0", # Apache-2.0 +] +messaging = [ + "oslo.messaging>=14.1.0", # Apache-2.0 +] +mongo = [ + "pymongo!=3.1,>=3.0.2", # Apache-2.0 +] +otlp = [ + "opentelemetry-exporter-otlp>=1.16.0", #Apache-2.0 + "opentelemetry-sdk>=1.16.0", # Apache-2.0 +] +redis = [ + "redis>=2.10.0", # MIT +] +sqlalchemy = [ + "SQLAlchemy>=1.4.0", # MIT +] + +[project.scripts] +osprofiler = "osprofiler.cmd.shell:main" + +[tool.setuptools] +packages = [ + "osprofiler" +] diff --git a/setup.cfg b/setup.cfg index 95df37a..1a05cae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,50 +1,2 @@ [metadata] name = osprofiler -summary = OpenStack Profiler Library -description_file = - README.rst -author = OpenStack -author_email = openstack-discuss@lists.openstack.org -home_page = https://docs.openstack.org/osprofiler/latest/ -python_requires = >=3.10 -classifier = - Environment :: OpenStack - Intended Audience :: Developers - Intended Audience :: Information Technology - License :: OSI Approved :: Apache Software License - Operating System :: POSIX :: Linux - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: Implementation :: CPython - -[files] -packages = - osprofiler - -[extras] -elasticsearch = - elasticsearch>=2.0.0 # Apache-2.0 -messaging = - oslo.messaging>=14.1.0 # Apache-2.0 -mongo = - pymongo!=3.1,>=3.0.2 # Apache-2.0 -otlp = - opentelemetry-exporter-otlp>=1.16.0 #Apache-2.0 - opentelemetry-sdk>=1.16.0 # Apache-2.0 -redis = - redis>=2.10.0 # MIT -sqlalchemy = - SQLAlchemy>=1.4.0 # MIT - -[entry_points] -oslo.config.opts = - osprofiler = osprofiler.opts:list_opts -console_scripts = - osprofiler = osprofiler.cmd.shell:main -paste.filter_factory = - osprofiler = osprofiler.web:WsgiMiddleware.factory