diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85a8be73..01532f28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python_version: ['2.7', '3.7'] + python_version: ['3.7'] steps: - name: Check out code uses: actions/checkout@v2 @@ -116,7 +116,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python_version: ['2.7', '3.7'] + python_version: ['3.7'] steps: - name: Check out code uses: actions/checkout@v2 diff --git a/changelogs/fragments/86_drop_python2_support.yaml b/changelogs/fragments/86_drop_python2_support.yaml new file mode 100644 index 00000000..b381c2d4 --- /dev/null +++ b/changelogs/fragments/86_drop_python2_support.yaml @@ -0,0 +1,3 @@ +--- +breaking_changes: + - Drop python 2 support. diff --git a/plugins/inventory/k8s.py b/plugins/inventory/k8s.py index 6ec33ef0..df348dc2 100644 --- a/plugins/inventory/k8s.py +++ b/plugins/inventory/k8s.py @@ -86,7 +86,7 @@ DOCUMENTATION = ''' to access. requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/lookup/k8s.py b/plugins/lookup/k8s.py index 9520a1f6..b3728be5 100644 --- a/plugins/lookup/k8s.py +++ b/plugins/lookup/k8s.py @@ -124,7 +124,7 @@ DOCUMENTATION = ''' aliases: [ verify_ssl ] requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" diff --git a/plugins/modules/k8s.py b/plugins/modules/k8s.py index 65152040..ea21c8ac 100644 --- a/plugins/modules/k8s.py +++ b/plugins/modules/k8s.py @@ -133,7 +133,7 @@ options: version_added: 2.0.0 requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" - "jsonpatch" diff --git a/plugins/modules/k8s_cluster_info.py b/plugins/modules/k8s_cluster_info.py index 17ec750f..3742777c 100644 --- a/plugins/modules/k8s_cluster_info.py +++ b/plugins/modules/k8s_cluster_info.py @@ -33,7 +33,7 @@ extends_documentation_fragment: - kubernetes.core.k8s_auth_options requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/modules/k8s_exec.py b/plugins/modules/k8s_exec.py index c7f574fe..b1ab1103 100644 --- a/plugins/modules/k8s_exec.py +++ b/plugins/modules/k8s_exec.py @@ -26,7 +26,7 @@ extends_documentation_fragment: - kubernetes.core.k8s_auth_options requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift == 0.4.3" - "PyYAML >= 3.11" diff --git a/plugins/modules/k8s_info.py b/plugins/modules/k8s_info.py index 28c639a6..f2ab9eb1 100644 --- a/plugins/modules/k8s_info.py +++ b/plugins/modules/k8s_info.py @@ -49,7 +49,7 @@ extends_documentation_fragment: - kubernetes.core.k8s_wait_options requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/modules/k8s_log.py b/plugins/modules/k8s_log.py index 071d64db..281cb192 100644 --- a/plugins/modules/k8s_log.py +++ b/plugins/modules/k8s_log.py @@ -56,7 +56,7 @@ options: type: str requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/modules/k8s_rollback.py b/plugins/modules/k8s_rollback.py index e41da810..06d82904 100644 --- a/plugins/modules/k8s_rollback.py +++ b/plugins/modules/k8s_rollback.py @@ -31,7 +31,7 @@ extends_documentation_fragment: - kubernetes.core.k8s_auth_options - kubernetes.core.k8s_name_options requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/modules/k8s_scale.py b/plugins/modules/k8s_scale.py index 149df21f..e4f80b97 100644 --- a/plugins/modules/k8s_scale.py +++ b/plugins/modules/k8s_scale.py @@ -31,7 +31,7 @@ extends_documentation_fragment: - kubernetes.core.k8s_scale_options requirements: - - "python >= 2.7" + - "python >= 3.6" - "openshift >= 0.6" - "PyYAML >= 3.11" ''' diff --git a/plugins/modules/k8s_service.py b/plugins/modules/k8s_service.py index 95a60ae2..aeee768d 100644 --- a/plugins/modules/k8s_service.py +++ b/plugins/modules/k8s_service.py @@ -85,7 +85,7 @@ options: type: bool requirements: - - python >= 2.7 + - python >= 3.6 - openshift >= 0.6.2 '''