diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c79de05a..ebfad8fd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,21 +101,21 @@ jobs: - tox_env: py313-m_ans-ans8 python_version: '3.13' - tox_env: py314-m_ans-ans9 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans10 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans11 - python_version: '3.14.0-rc.3' + python_version: '3.14' - tox_env: py314-m_ans-ans12 - python_version: '3.14.0-rc.3' + python_version: '3.14' + - tox_env: py314-m_ans-ans13 + python_version: '3.14' - - tox_env: py314-m_ans-ans11-s_lin - python_version: '3.14.0-rc.3' - - tox_env: py314-m_ans-ans12-s_lin - python_version: '3.14.0-rc.3' + - tox_env: py314-m_ans-ans13-s_lin + python_version: '3.14' - tox_env: py314-m_mtg - python_version: '3.14.0-rc.3' + python_version: '3.14' steps: - uses: actions/checkout@v4 @@ -161,19 +161,13 @@ jobs: fail-fast: false matrix: include: - - tox_env: py314-m_lcl-ans11 - python_version: '3.14.0-rc.3' - sshpass_version: "1.10" - - tox_env: py314-m_lcl-ans11-s_lin - python_version: '3.14.0-rc.3' - sshpass_version: "1.10" - - tox_env: py314-m_lcl-ans12 - python_version: '3.14.0-rc.3' - - tox_env: py314-m_lcl-ans12-s_lin - python_version: '3.14.0-rc.3' + - tox_env: py314-m_lcl-ans13 + python_version: '3.14' + - tox_env: py314-m_lcl-ans13-s_lin + python_version: '3.14' - tox_env: py314-m_mtg - python_version: '3.14.0-rc.3' + python_version: '3.14' steps: - uses: actions/checkout@v4 diff --git a/docs/changelog.rst b/docs/changelog.rst index ad540c93..9eabf7a7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -18,6 +18,13 @@ To avail of fixes in an unreleased version, please download a ZIP file `directly from GitHub `_. +v0.3.33 (2025-11-22) +-------------------- + +* :gh:issue:`1354` :mod:`ansible_mitogen`: ansible_mitogen: Ansible 13 + (ansible-core 2.20) support + + v0.3.32 (2025-11-21) -------------------- diff --git a/mitogen/__init__.py b/mitogen/__init__.py index f4ca00a2..2d0af387 100644 --- a/mitogen/__init__.py +++ b/mitogen/__init__.py @@ -35,7 +35,7 @@ be expected. On the slave, it is built dynamically during startup. #: Library version as a tuple. -__version__ = (0, 3, 32) +__version__ = (0, 3, 33) #: This is :data:`False` in slave contexts. Previously it was used to prevent diff --git a/tests/image_prep/ansible.cfg b/tests/image_prep/ansible.cfg index da778786..f698ed89 100644 --- a/tests/image_prep/ansible.cfg +++ b/tests/image_prep/ansible.cfg @@ -1,12 +1,13 @@ [defaults] +# Ansible >= 6 (ansible-core >= 2.13) +callback_result_format = yaml deprecation_warnings = false strategy_plugins = ../../ansible_mitogen/plugins/strategy retry_files_enabled = false display_args_to_stdout = True no_target_syslog = True host_key_checking = False -stdout_callback = yaml [inventory] unparsed_is_fatal = true diff --git a/tox.ini b/tox.ini index aac84fa8..08b2eb98 100644 --- a/tox.ini +++ b/tox.ini @@ -13,10 +13,10 @@ # 3.5 <= 2.11 <= 2.15 <= 5.5 <= 2.2.28 <= 2.11.3 <= 20 <= 5.9.5 <= 6.1.0 <= 3.28 <= 20.15² # 3.6 <= 2.11 <= 2.16 <= 6.2 <= 3.2.20 <= 3.0.3 <= 21 <= 7.0.1 <= 3.28 <= 20.17² # 3.7 <= 2.12 <= 2.17 <= 7.2.7 <= 3.2.20 <= 7.4.4 <= 4.8.0 <= 20.26.6² -# 3.8 <= 2.12 +# 3.8 <= 2.12 <= 2.19 # 3.9 <= 2.15 # 3.10 <= 2.17 -# 3.11 +# 3.11 <= 2.19 # 3.12 >= 2.13¹ # # Notes @@ -50,6 +50,7 @@ # ansible == 10.x ansible-core ~= 2.17.0 # ansible == 11.x ansible-core ~= 2.18.0 # ansible == 12.x ansible-core ~= 2.19.0 +# ansible == 13.x ansible-core ~= 2.20.0 # See also # - https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix @@ -93,6 +94,7 @@ deps = ans10: ansible~=10.0 ans11: ansible~=11.0 ans12: ansible~=12.0 + ans13: ansible~=13.0 install_command = python -m pip --no-python-version-warning --disable-pip-version-check install {opts} {packages} commands_pre = @@ -115,6 +117,7 @@ setenv = PIP_CONSTRAINT={toxinidir}/tests/constraints.txt # Superceded in Ansible >= 6 (ansible-core >= 2.13) by result_format=yaml # Deprecated in Ansible 12 (ansible-core 2.19) + # Removed in Ansible 13 (ansible-core 2.20) ans{2.10,3,4,5}: ANSIBLE_STDOUT_CALLBACK=yaml # Print warning on the first occurence at each module:linenno in Mitogen. Available Python 2.7, 3.2+. PYTHONWARNINGS=default:::ansible_mitogen,default:::mitogen @@ -127,6 +130,8 @@ setenv = # Ansible 11 (ansible-core 2.18) requires Python >= 3.8 on targets ans11: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 ubuntu2004-py3 ans12: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 ubuntu2004-py3 + # Ansible 13 (ansible-core 2.20) requires Python >= 3.9 on targets + ans13: MITOGEN_TEST_DISTRO_SPECS=debian11-py3 distros_centos: MITOGEN_TEST_DISTRO_SPECS=centos6 centos7 centos8 distros_centos5: MITOGEN_TEST_DISTRO_SPECS=centos5 distros_centos6: MITOGEN_TEST_DISTRO_SPECS=centos6