Skip to content

Commit

Permalink
Bump: Minimum Python version 3.10 and ansible-core version 2.16 (#721)
Browse files Browse the repository at this point in the history
Co-authored-by: Claus Holbech <[email protected]>
  • Loading branch information
carlbuchmann and ClausHolbechArista authored Jan 20, 2025
1 parent 02b78bc commit cb28eac
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 37 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python_version: ['3.9','3.10','3.11']
python_version: ['3.10','3.11','3.12','3.13']
steps:
- name: 'set environment variables'
run: |
Expand All @@ -131,7 +131,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python_version: ['3.9','3.10','3.11','3.12']
python_version: ['3.10','3.11','3.12','3.13']
steps:
- name: 'set environment variables'
run: |
Expand All @@ -143,9 +143,8 @@ jobs:
with:
python-version: ${{ matrix.python_version }}
- name: Install requirements
# Removing ansible-lint in requirement-dev-3.9 to allow requirements installation for Python 3.9.
run: |
pip install -r ansible_collections/arista/cvp/requirements-dev-pytest.txt
pip install -r ansible_collections/arista/cvp/requirements-dev.txt
pip install -r ansible_collections/arista/cvp/requirements.txt
- name: 'Execute pytest validation'
run: |
Expand All @@ -165,7 +164,7 @@ jobs:
fail-fast: true
matrix:
ansible_version:
- 'ansible-core>=2.15.0,<2.18.0 --upgrade'
- 'ansible-core>=2.16.0,<2.19.0 --upgrade'
cvp_scenario:
- cv_configlet_loose
- cv_configlet_strict
Expand Down Expand Up @@ -200,7 +199,7 @@ jobs:
strategy:
fail-fast: true
matrix:
ansible_version: ['ansible-core==2.15.0', 'ansible-core<2.18.0']
ansible_version: ['ansible-core==2.16.0', 'ansible-core<2.19.0']
cvp_scenario:
- dhcp_management_mac
- dhcp_management_offline
Expand Down
6 changes: 3 additions & 3 deletions ansible_collections/arista/cvp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Even if the `arista.cvp` collection is integrated with the `arista.avd` collecti

The CVP collection has the following requirements:

- Python 3.9+
- Ansible Core 2.15.0 to 2.18.x
- Python 3.10+
- Ansible Core 2.16.0 to 2.18.x
- Install the arista.cvp collection
- [Additional Python packages](#additional-python-dependencies)

Expand All @@ -43,7 +43,7 @@ Please check the minimum version supported by your ansible installation on the [

**Ansible version:**

- ansible-core>=2.15.0,<2.19.0
- ansible-core>=2.16.0,<2.19.0

**3rd party Python libraries:**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@

## Python

- Python **3.9** or later
- Python **3.10** or later

## Supported Ansible Versions

- ansible-core from **2.15.0** to **2.17.x**
- ansible-core from **2.16.0** to **2.18.x**

## Additional Python Libraries required

Expand Down
8 changes: 8 additions & 0 deletions ansible_collections/arista/cvp/docs/release-notes/v3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
- On premise version higher than 2021.3.0
- CloudVision as a Service

## Release 3.13.0

### Requirements

- Ansible-cvp now requires Python **3.10** or later
- Ansible-cvp now requires a newer minimum version of the Python package `ansible-core>=2.16.0,<2.19.0`
The latest version can be installed with `pip install "ansible-core>=2.16.0,<2.19.0" --upgrade`

## Release 3.12.0

Full release note available on [github](https://github.com/aristanetworks/ansible-cvp/releases/tag/v3.12.0)
Expand Down
4 changes: 2 additions & 2 deletions ansible_collections/arista/cvp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ Current active branch:

### Python

- Python `>=3.9`
- Python `>=3.10`

Please check the minimum version supported by your ansible installation on the [ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-node-requirements).

### Additional Python Libraries required

**Ansible version:**

- ansible-core>=2.15.0,<2.19.0
- ansible-core>=2.16.0,<2.19.0

**3rd party Python libraries:**

Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/cvp/meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
requires_ansible: '>=2.15.0,<2.19.0'
requires_ansible: '>=2.16.0,<2.19.0'
plugin_routing:
modules:
cv_facts:
Expand Down
22 changes: 0 additions & 22 deletions ansible_collections/arista/cvp/requirements-dev-pytest.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ansible_collections/arista/cvp/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansible-core>=2.15.0,<2.19.0
ansible-core>=2.16.0,<2.19.0
ansible-builder
ansible-lint>=24.7.0
galaxy-importer>=0.3.1
Expand Down

0 comments on commit cb28eac

Please sign in to comment.