Skip to content

Commit

Permalink
Python 3.12 build and test (#105)
Browse files Browse the repository at this point in the history
* Python 3.12 build and test
* Cleaner setup.py
  • Loading branch information
kplindegaard authored Apr 4, 2024
1 parent a7bede7 commit 6724759
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ def find_version(*file_paths):

README = read_file('README.md')
version = find_version('smbus2', '__init__.py')
test_deps = [
'mock;python_version<"3.3"',
'nose'
]

setup(
name="smbus2",
Expand All @@ -50,8 +46,7 @@ def find_version(*file_paths):
],
'qa': [
'flake8'
],
'test': test_deps
]
},
classifiers=[
"Development Status :: 4 - Beta",
Expand All @@ -60,13 +55,12 @@ def find_version(*file_paths):
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"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.11",
"Programming Language :: Python :: 3.12"
],
)

0 comments on commit 6724759

Please sign in to comment.