From a950d762ab908cfb2e1966208e0390c828ec30c4 Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Mon, 15 Sep 2025 18:47:51 +0000 Subject: [PATCH] Migrate setup configuration to pyproject.toml and drop support for Python 3.9 Change-Id: Ifd8b15081dddd47e87013e1c9027dae819092280 Co-authored-by: Stephen Finucane Signed-off-by: Ivan Anfimov --- pyproject.toml | 58 ++++++++++++++++++++++++++ releasenotes/notes/drop-python-39.yaml | 4 ++ setup.cfg | 41 ------------------ 3 files changed, 62 insertions(+), 41 deletions(-) create mode 100644 pyproject.toml create mode 100644 releasenotes/notes/drop-python-39.yaml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a5dca95 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,58 @@ +[build-system] +requires = ["pbr>=6.1.1"] +build-backend = "pbr.build" + +[project] +name = "mistral-extra" +description = "Mistral OpenStack-specific bindings" +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 = [ + "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", + "Programming Language :: Python :: Implementation :: CPython", +] + +[project.urls] +Homepage = "https://docs.openstack.org/mistral/latest/" +Repository = "https://opendev.org/openstack/mistral-extra" + +[tool.setuptools] +packages = [ + "mistral_extra" +] + +[project.entry-points."mistral.generators"] +generators = "mistral_extra.actions.generator_factory:all_generators" + +[project.entry-points."console_scripts"] +mistral-monitoring = "mistral_extra.monitoring.launch:main" + +[project.entry-points."mistral.preinstalled_workflows"] +workflows = "mistral_extra.workflows:get_preinstalled_workflows" + +[project.entry-points."monitoring.metric_collector"] +mistral = "mistral_extra.monitoring.collectors.mistral_collector:MistralMetricCollector" + +[project.entry-points."monitoring.recovery_jobs"] +delayed_calls = "mistral_extra.monitoring.jobs.delayed_calls_recovery:DelayedCallsRecoveryJob" +idle_tasks = "mistral_extra.monitoring.jobs.idle_tasks_recovery:IdleTasksRecoveryJob" +named_locks = "mistral_extra.monitoring.jobs.named_locks_recovery:NamedLocksRecoveryJob" +waiting_tasks = "mistral_extra.monitoring.jobs.waiting_tasks_recovery:WaitingTasksRecoveryJob" +sub_workflows_start = "mistral_extra.monitoring.jobs.subworkflow_start_recovery:SubworkflowStartRecoveryJob" +sub_workflow_complete = "mistral_extra.monitoring.jobs.subworkflow_complete_recovery:SubworkflowCompleteRecoveryJob" diff --git a/releasenotes/notes/drop-python-39.yaml b/releasenotes/notes/drop-python-39.yaml new file mode 100644 index 0000000..7d8ca21 --- /dev/null +++ b/releasenotes/notes/drop-python-39.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + Support for Python 3.9 has been dropped. diff --git a/setup.cfg b/setup.cfg index d63a7ae..7f7fdc7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,43 +1,2 @@ [metadata] name = mistral-extra -summary = Mistral OpenStack-specific bindings -description_file = - README.rst -license = Apache-2.0 -author = OpenStack -author_email = openstack-discuss@lists.openstack.org -home_page = https://docs.openstack.org/mistral/latest/ -classifier = - Environment :: OpenStack - Intended Audience :: Information Technology - Intended Audience :: System Administrators - Operating System :: POSIX :: Linux - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - -[files] -packages = - mistral_extra - -[entry_points] -mistral.generators = - generators = mistral_extra.actions.generator_factory:all_generators -console_scripts = - mistral-monitoring = mistral_extra.monitoring.launch:main - -mistral.preinstalled_workflows = - workflows = mistral_extra.workflows:get_preinstalled_workflows - -monitoring.metric_collector = - mistral = mistral_extra.monitoring.collectors.mistral_collector:MistralMetricCollector - -monitoring.recovery_jobs = - delayed_calls = mistral_extra.monitoring.jobs.delayed_calls_recovery:DelayedCallsRecoveryJob - idle_tasks = mistral_extra.monitoring.jobs.idle_tasks_recovery:IdleTasksRecoveryJob - named_locks = mistral_extra.monitoring.jobs.named_locks_recovery:NamedLocksRecoveryJob - waiting_tasks = mistral_extra.monitoring.jobs.waiting_tasks_recovery:WaitingTasksRecoveryJob - sub_workflows_start = mistral_extra.monitoring.jobs.subworkflow_start_recovery:SubworkflowStartRecoveryJob - sub_workflow_complete = mistral_extra.monitoring.jobs.subworkflow_complete_recovery:SubworkflowCompleteRecoveryJob