Skip to content

Commit

Permalink
Python 3.12 build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
kplindegaard committed Mar 16, 2024
1 parent 00e8909 commit 8385189
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/python-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
)

0 comments on commit 8385189

Please sign in to comment.