diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 9e0ef62..1616ab0 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -17,7 +17,7 @@ env: FORCE_COLOR: "1" # Make tools pretty. PIP_DISABLE_PIP_VERSION_CHECK: "1" PIP_NO_PYTHON_VERSION_WARNING: "1" - PYTHON_LATEST: "3.12" + PYTHON_LATEST: "3.13" # For re-actors/checkout-python-sdist sdist-artifact: python-package-distributions @@ -65,11 +65,11 @@ jobs: fail-fast: true matrix: python-version: - - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" + - "3.13" experimental: [false] # include: # - python-version: "~3.12.0-0" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74252c8..44658f8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,19 +4,19 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.7 + rev: v0.7.2 hooks: - id: ruff args: ['--fix'] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: @@ -31,6 +31,6 @@ repos: args: - --strict - repo: https://github.com/twisted/towncrier - rev: 23.6.0 + rev: 24.8.0 hooks: - id: towncrier-check diff --git a/aiomonitor/termui/commands.py b/aiomonitor/termui/commands.py index 98fa52c..dfcf9d6 100644 --- a/aiomonitor/termui/commands.py +++ b/aiomonitor/termui/commands.py @@ -473,7 +473,7 @@ def do_ps_terminated( table.inner_column_border = False if filter_ or persistent: stdout.write( - f"{len(tasks)} tasks terminated " f"(showing {len(table_data) - 1} tasks)\n" + f"{len(tasks)} tasks terminated (showing {len(table_data) - 1} tasks)\n" ) else: stdout.write(f"{len(tasks)} tasks terminated (old ones may be stripped)\n") diff --git a/changes/411.misc b/changes/411.misc new file mode 100644 index 0000000..c7d8307 --- /dev/null +++ b/changes/411.misc @@ -0,0 +1 @@ +Add support for Python 3.13 and drop support for Python 3.8 diff --git a/docs/conf.py b/docs/conf.py index 34c240b..3302cbc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,9 +110,7 @@ # further. For a list of options available for each theme, see the # documentation. # -aiomonitor_desc = ( - "module that adds monitor and cli capabilities" "for asyncio application" -) +aiomonitor_desc = "module that adds monitor and cli capabilitiesfor asyncio application" html_theme_options = { "description": aiomonitor_desc, "github_user": "aio-libs", diff --git a/requirements-dev.txt b/requirements-dev.txt index ca382b3..1d20033 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,19 +1,19 @@ -e . -aioconsole==0.7.0 -aiohttp==3.9.3 +aioconsole==0.8.1 +aiohttp==3.10.10 aiotools==1.7.0 -attrs==23.1.0 -docutils==0.19 +attrs==24.2.0 +docutils==0.21.2 ipdb==0.13.13 -mypy==1.9.0 +mypy==1.13.0 pre-commit==3.5.0 -pytest-asyncio==0.21.1 +pytest-asyncio==0.24.0 pytest-cov==4.0.0 pytest-sugar==0.9.7 -pytest==7.4.0 -ruff==0.3.7 +pytest==8.3.3 +ruff==0.7.2 terminaltables==3.1.10 -towncrier==23.6.0 +towncrier==24.8.0 types-requests -uvloop==0.19.0 -build==1.2.1 +uvloop==0.21.0 +build==1.2.2.post1 diff --git a/setup.cfg b/setup.cfg index 21d1bdc..918d3fa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,6 +18,8 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Operating System :: POSIX Development Status :: 3 - Alpha Framework :: AsyncIO @@ -43,6 +45,7 @@ install_requires = janus>=1.0 jinja2>=3.1.2 backports.strenum>=1.2.4; python_version<"3.11" + standard-telnetlib>=3.13; python_version>="3.13" terminaltables trafaret>=2.1.1 typing-extensions>=4.1