diff --git a/docs-writing-python-agents-update-required-Python-ve.patch b/docs-writing-python-agents-update-required-Python-ve.patch new file mode 100644 index 0000000000000000000000000000000000000000..34187744bd1bfb97ae721b273740a201fd9535fe --- /dev/null +++ b/docs-writing-python-agents-update-required-Python-ve.patch @@ -0,0 +1,27 @@ +From 51370b042e7a7f51c47249f1b2a66f93f0c90c95 Mon Sep 17 00:00:00 2001 +From: Oyvind Albrigtsen +Date: Fri, 12 Apr 2024 12:27:48 +0200 +Subject: [PATCH] docs: writing-python-agents: update required Python version + to 3.6+ + +--- + doc/dev-guides/writing-python-agents.md | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/doc/dev-guides/writing-python-agents.md b/doc/dev-guides/writing-python-agents.md +index f26313ff..9bf89d09 100644 +--- a/doc/dev-guides/writing-python-agents.md ++++ b/doc/dev-guides/writing-python-agents.md +@@ -5,8 +5,7 @@ + A simple library for authoring resource agents in Python is + provided in the `ocf.py` library. + +-Agents written in Python should be ideally compatible both with Python +-2.7+ and Python 3.3+. ++Agents written in Python should be compatible with Python 3.6+. + + The library provides various helper constants and functions, a logging + implementation as well as a run loop and metadata generation facility. +-- +2.25.1 + diff --git a/resource-agents.spec b/resource-agents.spec index edde4122235a9ef544688b43846002e2016790e9..79e306b4cb2b5d7aef717392a264458906740531 100644 --- a/resource-agents.spec +++ b/resource-agents.spec @@ -1,7 +1,7 @@ Name: resource-agents Summary: Open Source HA Reusable Cluster Resource Scripts Version: 4.13.0 -Release: 17 +Release: 18 License: GPLv2+ and LGPLv2+ URL: https://github.com/ClusterLabs/resource-agents Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}.tar.gz @@ -22,6 +22,7 @@ Patch0013: Fix-openstack-info-Ensure-no-newlines-in-openstack.patch Patch0014: portblock-remove-write-to-tcp_tw_recycle.patch Patch0015: findifsh-fix-corner-cases.patch Patch0016: fix-OCF_SUCESS-name-in-db2_notify.patch +Patch0017: docs-writing-python-agents-update-required-Python-ve.patch Obsoletes: heartbeat-resources <= %{version} Provides: heartbeat-resources = %{version} BuildRequires: automake autoconf pkgconfig gcc perl-interpreter perl-generators python3-devel @@ -119,6 +120,9 @@ export CFLAGS="$(echo '%{optflags}')" %{_mandir}/man8/{ocf-tester.8*,ldirectord.8*} %changelog +* Mon Apr 22 2024 zouzhimin - 4.13.0-18 +- docs: writing-python-agents: update required Python version to 3.6+ + * Thu Apr 18 2024 bixiaoyan - 4.13.0-17 - db2: fix OCF_SUCESS name in db2_notify