From b1655022048d6182b4ca00bcf6ebf1c91adb1a75 Mon Sep 17 00:00:00 2001 From: Avram Lubkin Date: Thu, 11 Apr 2024 21:30:32 +0700 Subject: [PATCH] Update Python versions in CI (#270) --- .github/workflows/tests.yml | 14 +++++++------- .readthedocs.yml | 2 +- bin/generate-x11-colorchart.py | 4 ++-- docs/intro.rst | 2 +- tox.ini | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 514ff2c6..b46ec1ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,25 +20,25 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_quick: [1] include: - - python-version: '3.11' + - python-version: '3.12' label: Linting toxenv: docformatter_check,flake8,flake8_tests,isort_check,mypy,sphinx,pydocstyle,pylint,pylint_tests - - python-version: '3.12-dev' + - python-version: '3.13-dev' optional: true - toxenv: py312 - toxpython: 3.12 + toxenv: py313 + toxpython: 3.13 - - python-version: '3.11' + - python-version: '3.12' test_keyboard: 1 test_raw: 1 test_quick: 0 - - python-version: '3.11' + - python-version: '3.12' os: windows-latest test_quick: 0 diff --git a/.readthedocs.yml b/.readthedocs.yml index eb3a5cc1..df3d65e1 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -7,7 +7,7 @@ sphinx: formats: all build: - os: ubuntu-22.04 + os: ubuntu-lts-latest tools: python: '3' diff --git a/bin/generate-x11-colorchart.py b/bin/generate-x11-colorchart.py index bcea1090..9896f4bb 100644 --- a/bin/generate-x11-colorchart.py +++ b/bin/generate-x11-colorchart.py @@ -70,8 +70,8 @@ def main(): hsv = colorsys.rgb_to_hsv(*rgb) csv_rows += (' ' f'{x11_color}, |{x11_color}|, ' - f'{rgb[0]/255:0.1%}, {rgb[1]/255:0.1%}, {rgb[2]/255:0.1%}, ' - f'{hsv[0]:0.1%}, {hsv[1]:0.1%}, {hsv[2]/255:0.1%}\n') + f'{rgb[0] / 255:0.1%}, {rgb[1] / 255:0.1%}, {rgb[2] / 255:0.1%}, ' + f'{hsv[0]:0.1%}, {hsv[1]:0.1%}, {hsv[2] / 255:0.1%}\n') output = aliases + '\n\n' + csv_table + '\n' + csv_rows filepath_txt = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'docs', diff --git a/docs/intro.rst b/docs/intro.rst index 46a4eb73..1cd2b4f3 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -219,7 +219,7 @@ The same program with *Blessed* is simply: :target: https://codecov.io/gh/jquast/blessed/ .. |linux| image:: https://img.shields.io/badge/Linux-yes-success?logo=linux :alt: Linux supported -.. |windows| image:: https://img.shields.io/badge/Windows-NEW-success?logo=windows +.. |windows| image:: https://img.shields.io/badge/Windows-yes-success?logo=windows :alt: Windows supported .. |mac| image:: https://img.shields.io/badge/MacOS-yes-success?logo=apple :alt: MacOS supported diff --git a/tox.ini b/tox.ini index d3a44051..1b11dd78 100644 --- a/tox.ini +++ b/tox.ini @@ -17,13 +17,13 @@ envlist = pydocstyle mypy sphinx - py{27,35,36,37,38,39,310,311} + py{27,35,36,37,38,39,310,311,312} ####### Python Test Environments ####### [testenv] -basepython = python3.11 +basepython = python3.12 passenv = TEST_QUICK TEST_KEYBOARD @@ -37,7 +37,7 @@ deps = commands = pytest {posargs: --strict-markers --verbose --durations=3} tests -[testenv:py311] +[testenv:py312] setenv = TEST_QUICK = {env:TEST_QUICK:0} TEST_KEYBOARD = {env:TEST_KEYBOARD:1}