Skip to content

Commit

Permalink
Remove support for Python 3.8.
Browse files Browse the repository at this point in the history
Prepare for version 24.2.0 release.
  • Loading branch information
kpfleming committed Oct 13, 2024
1 parent b149b15 commit 1f06363
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
---
repos:
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.1"
rev: "2.3.0"
hooks:
- id: pyproject-fmt
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ for emergencies).

## [Unreleased]

## [24.2.0] - 2024-10-13

### Changed

- Added testing against PowerDNS Authoritative Server 4.9.x.
Expand All @@ -24,6 +26,8 @@ for emergencies).

- Added testing against Python 3.13 (beta).

- Removed support for Python 3.8.

## [24.1.0] - 2024-02-09

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<a href="https://opensource.org"><img height="150" align="left" src="https://opensource.org/files/OSIApprovedCropped.png" alt="Open Source Initiative Approved License logo"></a>
[![CI](https://github.com/kpfleming/ansible-powerdns-auth/workflows/CI/badge.svg)](https://github.com/kpfleming/ansible-powerdns-auth/actions?query=workflow%3ACI)
[![Python](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/release/python-3812/)
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-3920/)
[![License - Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-9400d3.svg)](https://spdx.org/licenses/Apache-2.0.html)
[![Code Style and Quality - Ruff](https://img.shields.io/badge/Code%20Quality-Ruff-red.svg)](https://github.com/astral-sh/ruff)

Expand Down
33 changes: 16 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
[tool.ruff]
src = ["src"]
target-version = "py38"
target-version = "py39"
line-length = 100

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # Mypy is better at this.
"COM812", # conflicts with formatter
"C901", # Leave complexity to me.
"D", # We have different ideas about docstrings.
"INP001", # we don't care that these are in implicit namespace packages
"ISC001", # conflicts with formatter
"PLR0912", # Leave complexity to me.
"PLR0915", # Leave complexity to me.
"RUF012", # no need for this warning in Ansible modules
"S101", # assert
"TRY301", # Raise in try blocks can totally make sense.
src = [ "src" ]
lint.select = [ "ALL" ]
lint.ignore = [
"ANN", # Mypy is better at this.
"C901", # Leave complexity to me.
"COM812", # conflicts with formatter
"D", # We have different ideas about docstrings.
"INP001", # we don't care that these are in implicit namespace packages
"ISC001", # conflicts with formatter
"PLR0912", # Leave complexity to me.
"PLR0915", # Leave complexity to me.
"RUF012", # no need for this warning in Ansible modules
"S101", # assert
"TRY301", # Raise in try blocks can totally make sense.
]
unfixable = ["F401"]
lint.unfixable = [ "F401" ]
2 changes: 1 addition & 1 deletion src/plugins/modules/tsigkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
api_exception_handler,
)

assert sys.version_info >= (3, 8), "This module requires Python 3.8 or newer."
assert sys.version_info >= (3, 9), "This module requires Python 3.9 or newer."

DOCUMENTATION = """
%YAML 1.2
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/modules/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
api_exception_handler,
)

assert sys.version_info >= (3, 8), "This module requires Python 3.8 or newer."
assert sys.version_info >= (3, 9), "This module requires Python 3.9 or newer."

DOCUMENTATION = """
%YAML 1.2
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ commands=
ruff check --output-format=full --fix --show-fixes src
ansible-lint --fix all --strict --profile production -v

[testenv:py{38,39,310,311,312,313}-ci-action]
[testenv:py{39,310,311,312,313}-ci-action]
deps=
{[galaxy-setup]deps}
ansible-core
Expand Down
2 changes: 1 addition & 1 deletion workflow-support/make_ci_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pdns_run=(libsqlite3-0 libluajit-5.1-2)
lint_deps=(shellcheck)

toxenvs=(lint-action ci-action publish-action)
cimatrix=(py3{8,9,10,11,12,13})
cimatrix=(py3{9,10,11,12,13})

c=$(buildah from "${base_image}")

Expand Down
2 changes: 1 addition & 1 deletion workflow-support/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
versions={"pdns":["4.7", "4.8", "4.9", "master"], "python": ["py38", "py39", "py310", "py311", "py312", "py313"]}
versions={"pdns":["4.7", "4.8", "4.9", "master"], "python": ["py39", "py310", "py311", "py312", "py313"]}

0 comments on commit 1f06363

Please sign in to comment.