Skip to content

Commit

Permalink
Prepare 3.0.0 release (#318)
Browse files Browse the repository at this point in the history
* Prepare 3.0.0 release.

* Install using ansible-galaxy via git instead of cloning directly.
  • Loading branch information
felixfontein authored Oct 18, 2024
1 parent 26e3aa3 commit e18de43
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 465 deletions.
67 changes: 17 additions & 50 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
ansible:
# It's important that Sanity is tested against all stable-X.Y branches
# Testing against `devel` may fail as new tests are added.
- stable-2.9
- stable-2.10
- stable-2.11
- stable-2.12
- stable-2.13
- stable-2.14
- stable-2.15
- stable-2.16
- stable-2.17
Expand All @@ -54,10 +48,9 @@ jobs:
ansible-core-version: ${{ matrix.ansible }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
testing-type: sanity
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
pre-test-cmd: |-
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ../../ansible/netcommon
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.utils.git ../../ansible/utils
test-deps: >-
git+https://github.com/ansible-collections/ansible.utils.git,main
git+https://github.com/ansible-collections/ansible.netcommon.git,main
units:
# Ansible-test on various stable branches does not yet work well with cgroups v2.
Expand All @@ -75,13 +68,6 @@ jobs:
fail-fast: true
matrix:
ansible:
- stable-2.9
- stable-2.10
- stable-2.11
- stable-2.12
- stable-2.13
- stable-2.14
- stable-2.15
- stable-2.16
- stable-2.17
- stable-2.18
Expand All @@ -97,10 +83,9 @@ jobs:
ansible-core-version: ${{ matrix.ansible }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
testing-type: units
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
pre-test-cmd: |-
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ../../ansible/netcommon
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.utils.git ../../ansible/utils
test-deps: >-
git+https://github.com/ansible-collections/ansible.utils.git,main
git+https://github.com/ansible-collections/ansible.netcommon.git,main
integration:
# Ansible-test on various stable branches does not yet work well with cgroups v2.
Expand All @@ -122,41 +107,24 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
# 2.9
- ansible: stable-2.9
python: 2.7
- ansible: stable-2.9
python: 3.5
# 2.10
- ansible: stable-2.10
python: 3.5
# 2.11
- ansible: stable-2.11
python: 2.7
- ansible: stable-2.11
python: 3.6
# 2.12
- ansible: stable-2.12
python: 3.8
# 2.13
- ansible: stable-2.13
python: "3.10"
# 2.14
- ansible: stable-2.14
python: "3.11"
# 2.15
- ansible: stable-2.15
python: "3.9"
python: "2.7"
- ansible: stable-2.15
python: "3.6"
- ansible: stable-2.15
python: "3.7"
# 2.16
- ansible: stable-2.16
python: "3.10"
# 2.17
- ansible: stable-2.17
python: "3.7"
python: "3.8"
# 2.18
- ansible: stable-2.18
python: "3.8"
python: "3.9"

steps:
- name: >-
Expand All @@ -171,9 +139,8 @@ jobs:
integration-continue-on-error: 'false'
integration-diff: 'false'
integration-retry-on-error: 'true'
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
pre-test-cmd: |-
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ../../ansible/netcommon
git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.utils.git ../../ansible/utils
test-deps: >-
git+https://github.com/ansible-collections/ansible.utils.git,main
git+https://github.com/ansible-collections/ansible.netcommon.git,main
target-python-version: ${{ matrix.python }}
testing-type: integration
5 changes: 0 additions & 5 deletions .github/workflows/ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ jobs:
ansible_runner: ansible-runner
base_image: quay.io/rockylinux/rockylinux:9
pre_base: '"#"'
- name: ansible-core 2.14 @ CentOS Stream 9
ansible_core: https://github.com/ansible/ansible/archive/stable-2.14.tar.gz
ansible_runner: ansible-runner
base_image: quay.io/centos/centos:stream9
pre_base: '"#"'
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
48 changes: 0 additions & 48 deletions LICENSES/PSF-2.0.txt

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ For more information about communication, see the [Ansible communication guide](

## Tested with Ansible

Tested with the current Ansible 2.9, ansible-base 2.10, ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, ansible-core 2.14, ansible-core 2.15, ansible-core 2.16, ansible-core 2.17, and ansible-core 2.18 releases and the current development version of ansible-core. Ansible versions before 2.9.10 are not supported.
Tested with the current ansible-core 2.15, ansible-core 2.16, ansible-core 2.17, and ansible-core 2.18 releases and the current development version of ansible-core. Ansible 2.9, ansible-base 2.10, and ansible-core versions before 2.15.0 are not supported.

## External requirements

Expand Down
7 changes: 7 additions & 0 deletions changelogs/fragments/3.0.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
release_summary: Major release that drops support for End of Life Python versions and fixes check mode for community.routeros.command.
removed_features:
- "The collection no longer supports Ansible 2.9, ansible-base 2.10, ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, and ansible-core 2.14.
If you need to continue using End of Life versions of Ansible/ansible-base/ansible-core, please use community.routeros 2.x.y
(https://github.com/ansible-collections/community.routeros/pull/318)."
breaking_changes:
- "command - the module no longer declares that it supports check mode (https://github.com/ansible-collections/community.routeros/pull/318)."
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace: community
name: routeros
version: 2.20.0
version: 3.0.0
readme: README.md
authors:
- Egor Zaitsev (github.com/heuels)
Expand Down
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
# SPDX-License-Identifier: GPL-3.0-or-later

requires_ansible: '>=2.9.10'
requires_ansible: '>=2.15.0'
action_groups:
api:
- api
Expand Down
Loading

0 comments on commit e18de43

Please sign in to comment.