diff --git a/.github/workflows/python-build-test.yml b/.github/workflows/python-build-test.yml index 50dfc9d..823dbf5 100644 --- a/.github/workflows/python-build-test.yml +++ b/.github/workflows/python-build-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: 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"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -22,6 +22,12 @@ jobs: run: | python -m pip install --upgrade pip pip install flake8 pytest + - name: Additional install for Python 3.12 or higher + if: ${{ matrix.python-version >= '3.12' }} + run: | + pip install setuptools + - name: Install smbus2 + run: | python setup.py install - name: Lint with flake8 run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 18799a6..2ef9cff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ Notable changes to the smbus2 project are recorded here. ## [Unreleased] -No changes since last release. +- Python 3.12 added. ## [0.4.3] - 2023-08-25 - Build pipeline and test updates only: diff --git a/setup.py b/setup.py index faa3117..2d64540 100644 --- a/setup.py +++ b/setup.py @@ -67,6 +67,7 @@ def find_version(*file_paths): "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11" + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12" ], )