Drop support for ansible-core 2.16, and thus for Python < 3.7 (#10884)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.17) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.17+py3.10) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.17+py3.12) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.17+py3.7) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+alpine319+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+alpine319+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+alpine319+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+fedora39+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+fedora39+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+fedora39+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+ubuntu2004+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+ubuntu2004+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.17+ubuntu2004+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

Drop support for ansible-core 2.16, and thus for Python < 3.7.
This commit is contained in:
Felix Fontein 2025-10-09 18:31:05 +02:00 committed by GitHub
commit 04e720f2e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 139 deletions

View file

@ -96,19 +96,6 @@ stages:
- test: 2 - test: 2
- test: 3 - test: 3
- test: 4 - test: 4
- stage: Sanity_2_17
displayName: Sanity 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
nameFormat: Test {0}
testFormat: 2.17/sanity/{0}
targets:
- test: 1
- test: 2
- test: 3
- test: 4
### Units ### Units
- stage: Units_devel - stage: Units_devel
displayName: Units devel displayName: Units devel
@ -149,18 +136,6 @@ stages:
- test: 3.8 - test: 3.8
- test: "3.11" - test: "3.11"
- test: "3.13" - test: "3.13"
- stage: Units_2_17
displayName: Units 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
nameFormat: Python {0}
testFormat: 2.17/units/{0}/1
targets:
- test: 3.7
- test: "3.10"
- test: "3.12"
## Remote ## Remote
- stage: Remote_devel_extra_vms - stage: Remote_devel_extra_vms
@ -239,22 +214,6 @@ stages:
- 1 - 1
- 2 - 2
- 3 - 3
- stage: Remote_2_17
displayName: Remote 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
testFormat: 2.17/{0}
targets:
- name: FreeBSD 13.5
test: freebsd/13.5
- name: RHEL 9.3
test: rhel/9.3
groups:
- 1
- 2
- 3
### Docker ### Docker
- stage: Docker_devel - stage: Docker_devel
@ -311,24 +270,6 @@ stages:
- 1 - 1
- 2 - 2
- 3 - 3
- stage: Docker_2_17
displayName: Docker 2.17
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
testFormat: 2.17/linux/{0}
targets:
- name: Fedora 39
test: fedora39
- name: Alpine 3.19
test: alpine319
- name: Ubuntu 20.04
test: ubuntu2004
groups:
- 1
- 2
- 3
### Community Docker ### Community Docker
- stage: Docker_community_devel - stage: Docker_community_devel
@ -388,17 +329,6 @@ stages:
# targets: # targets:
# - test: '3.8' # - test: '3.8'
# - test: '3.13' # - test: '3.13'
# - stage: Generic_2_17
# displayName: Generic 2.17
# dependsOn: []
# jobs:
# - template: templates/matrix.yml
# parameters:
# nameFormat: Python {0}
# testFormat: 2.17/generic/{0}/1
# targets:
# - test: '3.7'
# - test: '3.12'
- stage: Summary - stage: Summary
condition: succeededOrFailed() condition: succeededOrFailed()
@ -406,25 +336,20 @@ stages:
- Sanity_devel - Sanity_devel
- Sanity_2_19 - Sanity_2_19
- Sanity_2_18 - Sanity_2_18
- Sanity_2_17
- Units_devel - Units_devel
- Units_2_19 - Units_2_19
- Units_2_18 - Units_2_18
- Units_2_17
- Remote_devel_extra_vms - Remote_devel_extra_vms
- Remote_devel - Remote_devel
- Remote_2_19 - Remote_2_19
- Remote_2_18 - Remote_2_18
- Remote_2_17
- Docker_devel - Docker_devel
- Docker_2_19 - Docker_2_19
- Docker_2_18 - Docker_2_18
- Docker_2_17
- Docker_community_devel - Docker_community_devel
# Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled. # Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled.
# - Generic_devel # - Generic_devel
# - Generic_2_19 # - Generic_2_19
# - Generic_2_18 # - Generic_2_18
# - Generic_2_17
jobs: jobs:
- template: templates/coverage.yml - template: templates/coverage.yml

View file

@ -29,7 +29,7 @@ jobs:
strategy: strategy:
matrix: matrix:
ansible: ansible:
- '2.16' - '2.17'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Perform sanity testing - name: Perform sanity testing
@ -57,12 +57,12 @@ jobs:
exclude: exclude:
- ansible: '' - ansible: ''
include: include:
- ansible: '2.16' - ansible: '2.17'
python: '2.7' python: '3.7'
- ansible: '2.16' - ansible: '2.17'
python: '3.6' python: '3.10'
- ansible: '2.16' - ansible: '2.17'
python: '3.11' python: '3.12'
steps: steps:
- name: >- - name: >-
@ -98,56 +98,51 @@ jobs:
exclude: exclude:
- ansible: '' - ansible: ''
include: include:
# 2.16 # 2.17
# CentOS 7 does not work in GHA, that's why it's not listed here. - ansible: '2.17'
- ansible: '2.16' docker: fedora39
docker: fedora38
python: '' python: ''
target: azp/posix/1/ target: azp/posix/1/
- ansible: '2.16' - ansible: '2.17'
docker: fedora38 docker: fedora39
python: '' python: ''
target: azp/posix/2/ target: azp/posix/2/
- ansible: '2.16' - ansible: '2.17'
docker: fedora38 docker: fedora39
python: '' python: ''
target: azp/posix/3/ target: azp/posix/3/
- ansible: '2.16' - ansible: '2.17'
docker: opensuse15 docker: ubuntu2004
python: '' python: ''
target: azp/posix/1/ target: azp/posix/1/
- ansible: '2.16' - ansible: '2.17'
docker: opensuse15 docker: ubuntu2004
python: '' python: ''
target: azp/posix/2/ target: azp/posix/2/
- ansible: '2.16' - ansible: '2.17'
docker: opensuse15 docker: ubuntu2004
python: '' python: ''
target: azp/posix/3/ target: azp/posix/3/
- ansible: '2.16' - ansible: '2.17'
docker: alpine3 docker: alpine319
python: '' python: ''
target: azp/posix/1/ target: azp/posix/1/
- ansible: '2.16' - ansible: '2.17'
docker: alpine3 docker: alpine319
python: '' python: ''
target: azp/posix/2/ target: azp/posix/2/
- ansible: '2.16' - ansible: '2.17'
docker: alpine3 docker: alpine319
python: '' python: ''
target: azp/posix/3/ target: azp/posix/3/
# Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled. # Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled.
# - ansible: '2.16' # - ansible: '2.17'
# docker: default # docker: default
# python: '2.7' # python: '3.7'
# target: azp/generic/1/ # target: azp/generic/1/
# - ansible: '2.16' # - ansible: '2.17'
# docker: default # docker: default
# python: '3.6' # python: '3.12'
# target: azp/generic/1/
# - ansible: '2.16'
# docker: default
# python: '3.11'
# target: azp/generic/1/ # target: azp/generic/1/
steps: steps:

View file

@ -39,7 +39,7 @@ For more information about communication, see the [Ansible communication guide](
## Tested with Ansible ## Tested with Ansible
Tested with the current ansible-core 2.16, ansible-core 2.17, ansible-core 2.18, ansible-core 2.19 releases and the current development version of ansible-core. Ansible-core versions before 2.16.0 are not supported. This includes all ansible-base 2.10 and Ansible 2.9 releases. Tested with the current ansible-core 2.17, ansible-core 2.18, ansible-core 2.19 releases and the current development version of ansible-core. Ansible-core versions before 2.17.0 are not supported. This includes all ansible-base 2.10 and Ansible 2.9 releases.
## External requirements ## External requirements

View file

@ -0,0 +1,2 @@
removed_features:
- "Ansible-core 2.16 is no longer supported. This also means that the collection now requires Python 3.7+ (https://github.com/ansible-collections/community.general/pull/10884)."

View file

@ -3,7 +3,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
requires_ansible: '>=2.16.0' requires_ansible: '>=2.17.0'
action_groups: action_groups:
consul: consul:
- consul_agent_check - consul_agent_check

View file

@ -1,24 +0,0 @@
plugins/callback/tasks_only.py yamllint:unparsable-with-libyaml
plugins/connection/wsl.py yamllint:unparsable-with-libyaml
plugins/inventory/gitlab_runners.py yamllint:unparsable-with-libyaml
plugins/inventory/iocage.py yamllint:unparsable-with-libyaml
plugins/inventory/linode.py yamllint:unparsable-with-libyaml
plugins/inventory/lxd.py yamllint:unparsable-with-libyaml
plugins/inventory/nmap.py yamllint:unparsable-with-libyaml
plugins/inventory/scaleway.py yamllint:unparsable-with-libyaml
plugins/inventory/virtualbox.py yamllint:unparsable-with-libyaml
plugins/lookup/binary_file.py validate-modules:invalid-documentation
plugins/lookup/dependent.py validate-modules:unidiomatic-typecheck
plugins/modules/consul_session.py validate-modules:parameter-state-invalid-choice
plugins/modules/homectl.py import-3.11 # Uses deprecated stdlib library 'crypt'
plugins/modules/homectl.py import-3.12 # Uses deprecated stdlib library 'crypt'
plugins/modules/iptables_state.py validate-modules:undocumented-parameter # params _back and _timeout used by action plugin
plugins/modules/lxc_container.py validate-modules:use-run-command-not-popen
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
plugins/modules/udm_user.py import-3.12 # Uses deprecated stdlib library 'crypt'
plugins/modules/xfconf.py validate-modules:return-syntax-error
plugins/test/ansible_type.py yamllint:unparsable-with-libyaml
tests/unit/plugins/modules/test_gio_mime.yaml no-smart-quotes

View file

@ -1,3 +0,0 @@
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: Ansible Project