From bd8dde4379accaf44a4d15a5cbe47dbc12681452 Mon Sep 17 00:00:00 2001 From: Sagar Paul Date: Thu, 30 Nov 2023 18:21:55 +0530 Subject: [PATCH] [major] Prep release 6.0.0 (#608) * [major] Prep release 6.0.0 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update context * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * extra sanity nuked * update changelog * ansible utils return * fix changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix readme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update galaxy.yml utils version * update readme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/lint.yml | 5 +++-- CHANGELOG.rst | 13 +++++++++++++ README.md | 7 ++----- changelogs/changelog.yaml | 12 ++++++++++++ galaxy.yml | 4 ++-- meta/runtime.yml | 2 +- tests/config.yml | 2 +- tests/sanity/ignore-2.12.txt | 5 ----- tests/sanity/ignore-2.13.txt | 5 ----- tests/sanity/ignore-2.9.txt | 7 ------- 10 files changed, 34 insertions(+), 28 deletions(-) delete mode 100644 tests/sanity/ignore-2.12.txt delete mode 100644 tests/sanity/ignore-2.13.txt delete mode 100644 tests/sanity/ignore-2.9.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4e45c595d..4d3be4e81 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,9 +5,10 @@ on: # yamllint disable-line rule:truthy branches: ["main"] jobs: build: - name: Ansible Lint # Naming the build is important to use it as a status check + name: Ansible Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Run ansible-lint - uses: ansible/ansible-lint@main # or version tag instead of 'main' + uses: ansible/ansible-lint@main diff --git a/CHANGELOG.rst b/CHANGELOG.rst index bbb0e5beb..d62257ef5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,19 @@ Ansible Netcommon Collection Release Notes .. contents:: Topics +v6.0.0 +====== + +Release Summary +--------------- + +Starting from this release, the minimum `ansible-core` version this collection requires is `2.14.0`. That last known version compatible with ansible-core<2.14 is `v5.3.0`. + +Major Changes +------------- + +- Bumping `requires_ansible` to `>=2.14.0`, since previous ansible-core versions are EoL now. + v5.3.0 ====== diff --git a/README.md b/README.md index 48f475bf8..f6cc6ad11 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ [![CI](https://github.com/ansible-collections/ansible.netcommon/actions/workflows/tests.yml/badge.svg?branch=main&event=schedule)](https://github.com/ansible-collections/ansible.netcommon/actions/workflows/tests.yml) The Ansible ``ansible.netcommon`` collection includes common content to help automate the management of network, security, and cloud devices. -This includes connection plugins, such as ``network_cli``, ``httpapi``, and ``netconf``. +This includes connection plugins, such as ``network_cli``, ``httpapi``, and ``netconf``. ## Ansible version compatibility -This collection has been tested against following Ansible versions: **>=2.9.10**. +This collection has been tested against following Ansible versions: **>=2.14.0**. For collections that support Ansible 2.9, please ensure you update your `network_os` to use the fully qualified collection name (for example, `cisco.ios.ios`). @@ -107,9 +107,6 @@ The most common use case for this collection is to include it as a dependency in See the [Vyos collection](https://github.com/ansible-collections/vyos) for an example of this. - -**NOTE**: For Ansible 2.9, you may not see deprecation warnings when you run your playbooks with this collection. Use this documentation to track when a module is deprecated. - ### See Also: * [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details. diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 7948f12b4..96dcc9709 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -719,3 +719,15 @@ releases: - sanity_ignores.yaml - trivial_lint.yaml release_date: "2023-10-17" + 6.0.0: + changes: + major_changes: + - Bumping `requires_ansible` to `>=2.14.0`, since previous ansible-core versions + are EoL now. + release_summary: + Starting from this release, the minimum `ansible-core` version + this collection requires is `2.14.0`. That last known version compatible with + ansible-core<2.14 is `v5.3.0`. + fragments: + - major_600.yml + release_date: "2023-11-30" diff --git a/galaxy.yml b/galaxy.yml index 1c1387d9f..54ac865b2 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -2,7 +2,7 @@ authors: - Ansible Network Community (ansible-network) dependencies: - "ansible.utils": ">=2.7.0" + "ansible.utils": ">=3.0.0" license_file: LICENSE name: netcommon namespace: ansible @@ -13,4 +13,4 @@ readme: README.md repository: https://github.com/ansible-collections/ansible.netcommon issues: https://github.com/ansible-collections/ansible.netcommon/issues tags: [networking, security, cloud, network_cli, netconf, httpapi, grpc] -version: 5.3.0 +version: 6.0.0 diff --git a/meta/runtime.yml b/meta/runtime.yml index 757189034..337da6910 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,5 +1,5 @@ --- -requires_ansible: ">=2.9.10" +requires_ansible: ">=2.14.0" plugin_routing: action: grpc_config: diff --git a/tests/config.yml b/tests/config.yml index 41f529264..c26ea5966 100644 --- a/tests/config.yml +++ b/tests/config.yml @@ -1,3 +1,3 @@ --- modules: - python_requires: ">=3.6" + python_requires: ">=3.9" diff --git a/tests/sanity/ignore-2.12.txt b/tests/sanity/ignore-2.12.txt deleted file mode 100644 index 3fd7253af..000000000 --- a/tests/sanity/ignore-2.12.txt +++ /dev/null @@ -1,5 +0,0 @@ -plugins/action/netconf.py action-plugin-docs # base class for deprecated network platform modules using `connection: local` -plugins/action/network.py action-plugin-docs # base class for network action plugins -plugins/action/grpc.py action-plugin-docs # base class for grpc action plugins -plugins/plugin_utils/compat/telnetlib.py pep8!skip # vendored file -plugins/plugin_utils/compat/telnetlib.py pylint!skip # vendored file diff --git a/tests/sanity/ignore-2.13.txt b/tests/sanity/ignore-2.13.txt deleted file mode 100644 index 3fd7253af..000000000 --- a/tests/sanity/ignore-2.13.txt +++ /dev/null @@ -1,5 +0,0 @@ -plugins/action/netconf.py action-plugin-docs # base class for deprecated network platform modules using `connection: local` -plugins/action/network.py action-plugin-docs # base class for network action plugins -plugins/action/grpc.py action-plugin-docs # base class for grpc action plugins -plugins/plugin_utils/compat/telnetlib.py pep8!skip # vendored file -plugins/plugin_utils/compat/telnetlib.py pylint!skip # vendored file diff --git a/tests/sanity/ignore-2.9.txt b/tests/sanity/ignore-2.9.txt deleted file mode 100644 index 27c170503..000000000 --- a/tests/sanity/ignore-2.9.txt +++ /dev/null @@ -1,7 +0,0 @@ -plugins/action/netconf.py action-plugin-docs # base class for deprecated network platform modules using `connection: local` -plugins/action/network.py action-plugin-docs # base class for network action plugins -plugins/action/grpc.py action-plugin-docs # base class for grpc action plugins -plugins/plugin_utils/compat/telnetlib.py future-import-boilerplate!skip # vendored file -plugins/plugin_utils/compat/telnetlib.py metaclass-boilerplate!skip # vendored file -plugins/plugin_utils/compat/telnetlib.py pep8!skip # vendored file -plugins/plugin_utils/compat/telnetlib.py pylint!skip # vendored file