From fa59166068c0e9cda712c076e20f872feed04de3 Mon Sep 17 00:00:00 2001 From: Leif Gehrmann Date: Sun, 22 Oct 2023 17:30:49 +0100 Subject: [PATCH] Drop support for Python 3.6 and 3.7 + Upgrade dependencies in GitHub actions (#31) --- .github/workflows/build.yml | 4 ++-- .github/workflows/coverage.yml | 6 +++--- .github/workflows/lint.yml | 4 ++-- docs/overview.rst | 2 +- setup.cfg | 6 +++--- tox.ini | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c07ace7..bceb44d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,10 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 30a126c..8c3d116 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 56b0b13..a5e9853 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/docs/overview.rst b/docs/overview.rst index 8cfc735..629c7cf 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -26,7 +26,7 @@ Install with pip_:: .. _pip: https://pip.pypa.io/ -Note: Python versions < 3.6 are not supported. +Note: Python versions < 3.8 are not supported. Importing pangocairocffi ------------------------ diff --git a/setup.cfg b/setup.cfg index 5dd8520..631d8d9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,11 +18,11 @@ classifiers = Intended Audience :: Developers Natural Language :: English Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Multimedia :: Graphics Topic :: Text Processing :: Fonts project_urls = @@ -37,7 +37,7 @@ install_requires = cffi >= 1.1.0 cairocffi >= 1.0.2 pangocffi >= 0.11.0 -python_requires = >= 3.6 +python_requires = >= 3.8 [options.package_data] pangocairocffi = VERSION, *.txt diff --git a/tox.ini b/tox.ini index 87deaf4..abb198a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,16 @@ [tox] -envlist = py36, py37, py38, py39, py310 +envlist = py38, py39, py310, py311, py312 [gh-actions] python = - 3.6: py36 - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 + 3.11: py311 + 3.12: py312 [testenv] -passenv = TOXENV CI +passenv = TOXENV,CI deps = -rrequirements.txt commands = coverage run --source pangocairocffi -m pytest -s