Migrate setup configuration to pyproject.toml
... and fix a few problems with current setup.cfg . - Add a few classifies used globally in client libs - Fix conflicting name of osc extension - Use _ instead of bare space for osc command entry points Change-Id: I2a6c1d7e935a46e4663168c733057180e5cc1d4a Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -1,3 +1,63 @@
|
||||
[build-system]
|
||||
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
|
||||
build-backend = "pbr.build"
|
||||
|
||||
[project]
|
||||
name = "aodhclient"
|
||||
description = "Python client library for Aodh"
|
||||
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",
|
||||
"Environment :: OpenStack",
|
||||
"Intended Audience :: Information Technology",
|
||||
"Intended Audience :: System Administrators",
|
||||
"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",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://docs.openstack.org/python-aodhclient"
|
||||
Repository = "https://opendev.org/openstack/python-aodhclient"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = [
|
||||
"aodhclient"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
aodh = "aodhclient.shell:main"
|
||||
|
||||
[project.entry-points."keystoneauth1.plugin"]
|
||||
aodh-noauth = "aodhclient.noauth:AodhNoAuthLoader"
|
||||
|
||||
[project.entry-points."openstack.cli.extension"]
|
||||
alarm = "aodhclient.osc"
|
||||
|
||||
[project.entry-points."openstack.alarming.v2"]
|
||||
alarm_create = "aodhclient.v2.alarm_cli:CliAlarmCreate"
|
||||
alarm_list = "aodhclient.v2.alarm_cli:CliAlarmList"
|
||||
alarm_show = "aodhclient.v2.alarm_cli:CliAlarmShow"
|
||||
alarm_delete = "aodhclient.v2.alarm_cli:CliAlarmDelete"
|
||||
alarm_update = "aodhclient.v2.alarm_cli:CliAlarmUpdate"
|
||||
alarm_state_get = "aodhclient.v2.alarm_cli:CliAlarmStateGet"
|
||||
alarm_state_set = "aodhclient.v2.alarm_cli:CliAlarmStateSet"
|
||||
alarm-history_search = "aodhclient.v2.alarm_history_cli:CliAlarmHistorySearch"
|
||||
alarm-history_show = "aodhclient.v2.alarm_history_cli:CliAlarmHistoryShow"
|
||||
alarming_capabilities_list = "aodhclient.v2.capabilities_cli:CliCapabilitiesList"
|
||||
alarm_quota_show = "aodhclient.v2.quota_cli:QuotaShow"
|
||||
alarm_quota_set = "aodhclient.v2.quota_cli:QuotaSet"
|
||||
alarm_metrics = "aodhclient.v2.metrics_cli:CliMetrics"
|
||||
|
||||
49
setup.cfg
49
setup.cfg
@@ -1,51 +1,2 @@
|
||||
[metadata]
|
||||
name = aodhclient
|
||||
summary = Python client library for Aodh
|
||||
description_file =
|
||||
README.rst
|
||||
author = OpenStack
|
||||
author_email = openstack-discuss@lists.openstack.org
|
||||
home_page = https://docs.openstack.org/python-aodhclient/latest/
|
||||
python_requires = >=3.10
|
||||
classifier =
|
||||
Environment :: OpenStack
|
||||
Intended Audience :: Information Technology
|
||||
Intended Audience :: System Administrators
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 3 :: Only
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.10
|
||||
Programming Language :: Python :: 3.11
|
||||
Programming Language :: Python :: 3.12
|
||||
|
||||
[files]
|
||||
packages =
|
||||
aodhclient
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
aodh = aodhclient.shell:main
|
||||
|
||||
keystoneauth1.plugin =
|
||||
aodh-noauth = aodhclient.noauth:AodhNoAuthLoader
|
||||
|
||||
openstack.cli.extension =
|
||||
metric = aodhclient.osc
|
||||
|
||||
openstack.alarming.v2 =
|
||||
alarm create = aodhclient.v2.alarm_cli:CliAlarmCreate
|
||||
alarm list = aodhclient.v2.alarm_cli:CliAlarmList
|
||||
alarm show = aodhclient.v2.alarm_cli:CliAlarmShow
|
||||
alarm delete = aodhclient.v2.alarm_cli:CliAlarmDelete
|
||||
alarm update = aodhclient.v2.alarm_cli:CliAlarmUpdate
|
||||
alarm state get = aodhclient.v2.alarm_cli:CliAlarmStateGet
|
||||
alarm state set = aodhclient.v2.alarm_cli:CliAlarmStateSet
|
||||
alarm-history search = aodhclient.v2.alarm_history_cli:CliAlarmHistorySearch
|
||||
alarm-history show = aodhclient.v2.alarm_history_cli:CliAlarmHistoryShow
|
||||
alarming capabilities list = aodhclient.v2.capabilities_cli:CliCapabilitiesList
|
||||
alarm quota show = aodhclient.v2.quota_cli:QuotaShow
|
||||
alarm quota set = aodhclient.v2.quota_cli:QuotaSet
|
||||
alarm metrics = aodhclient.v2.metrics_cli:CliMetrics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user