Skip to content

Commit

Permalink
Updated supported Python version to 3.12
Browse files Browse the repository at this point in the history
Dropped Python 3.7 support
Fixed test dependencies
  • Loading branch information
PatrickBaus committed Dec 7, 2023
1 parent 3303a09 commit b3b669b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/.pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ jobs:

strategy:
matrix:
python-version: [ "3.10" ]
python-version: [ "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Checkout source repository
uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/[email protected]
- name: Install dependencies for testing
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[test]
- name: Run pre-commit
uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.10" ]
python-version: [ "3.12" ]

steps:
- name: Checkout source repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.10" ]
python-version: [ "3.12" ]

steps:
- name: Checkout source repository
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ permissions:

jobs:
build:
name: Run Pylint

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ "3.10", "3.11" ]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout source repository
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 for testing
Expand All @@ -32,4 +32,4 @@ jobs:
- name: Run Pylint
run: |
# stop the build if there are Python syntax errors or undefined names
pylint --reports n async_gpib
pylint --reports n prologix_gpib_async
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ license = { text="GNU General Public License v3 (GPLv3)" }
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"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",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
Expand Down

0 comments on commit b3b669b

Please sign in to comment.