diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b83b2f5..7e591d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,10 +7,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -23,11 +23,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["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 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0e67136..a815554 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,7 @@ Unreleased - Add Arial font name in addition to Helvetica for better font fallback on some systems. +- Drop support for Python < 3.8, and add testing for Python 3.11 and 3.12. 1.0.0 (2022-09-21) ------------------ diff --git a/scripts/qrbill b/scripts/qrbill index b886ece..c37930f 100644 --- a/scripts/qrbill +++ b/scripts/qrbill @@ -4,11 +4,7 @@ import argparse import sys import warnings from datetime import datetime -try: - from importlib import metadata -except ImportError: - # Running on pre-3.8 Python; use importlib-metadata package - import importlib_metadata as metadata +from importlib import metadata from qrbill import QRBill diff --git a/setup.cfg b/setup.cfg index cc79842..2dc7a47 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,7 +21,6 @@ install_requires = python-stdnum>=1.13 qrcode svgwrite - importlib-metadata ~= 1.0 ; python_version < "3.8" test_suite = tests [flake8]