From 89ea885a5be21c6b7809cf9c69c50ed3ae1f80da Mon Sep 17 00:00:00 2001 From: fliiiix Date: Sun, 7 Jan 2024 19:52:29 +0100 Subject: [PATCH 1/2] Test for Python 3.12 support --- .github/workflows/main.yml | 14 +++++++------- README.md | 2 +- setup.py | 1 + tox.ini | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a26f20..78846fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false max-parallel: 8 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] os: [ubuntu-latest, windows-latest, macOS-latest] include: - os: ubuntu-18.04 @@ -19,9 +19,9 @@ jobs: python-version: 3.6 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Setup build and test environment @@ -58,12 +58,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.11 + - uses: actions/checkout@v4 + - name: Set up Python 3.12 if: startsWith(github.event.ref, 'refs/tags') - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: Build Package if: startsWith(github.event.ref, 'refs/tags') run: | diff --git a/README.md b/README.md index 814766e..fa3e70e 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ print(cf.red('你好')) ## Usage -**colorful** supports all major Python versions: *3.5*, *3.6* and *3.7*, *3.8*, *3.9*, *3.10*, *3.11*.
+**colorful** supports all major Python versions: *3.5*, *3.6* and *3.7*, *3.8*, *3.9*, *3.10*, *3.11*, *3.12*.
We recommend to use the latest version released on [PyPI](https://pypi.python.org/pypi/colorful): ```bash diff --git a/setup.py b/setup.py index 0ca256e..ef8b608 100644 --- a/setup.py +++ b/setup.py @@ -101,6 +101,7 @@ def read_version(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy' diff --git a/tox.ini b/tox.ini index 16e2b3b..f520544 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = flake8,pypy,py35,py36,py37,py38,py39,py310,py311 +envlist = flake8,pypy,py35,py36,py37,py38,py39,py310,py311,py312 skip_missing_interpreters = True [testenv] From 03162ce2f3e73ceaa48ef0f1b69a812e4807d40e Mon Sep 17 00:00:00 2001 From: fliiiix Date: Sun, 7 Jan 2024 19:53:23 +0100 Subject: [PATCH 2/2] Update outdated Ubuntu 18.04 runners --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78846fa..ef678a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,9 @@ jobs: python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12] os: [ubuntu-latest, windows-latest, macOS-latest] include: - - os: ubuntu-18.04 + - os: ubuntu-20.04 python-version: 3.5 - - os: ubuntu-18.04 + - os: ubuntu-20.04 python-version: 3.6 steps: