Skip to content

Commit

Permalink
Merge pull request #1054 from NicolasT/python3.12
Browse files Browse the repository at this point in the history
gptsum: support Python 3.12
  • Loading branch information
NicolasT committed Jun 17, 2024
2 parents 3791904 + 2d5b230 commit 97ee08a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Upgrade pip
run: |
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Build docs
run: |
nox --force-color --python="3.11" --session docs
nox --force-color --python="3.12" --session docs
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
Expand Down
41 changes: 22 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,38 @@ jobs:
fail-fast: false
matrix:
include:
- { python-version: "3.11", session: "flake8" }
- { python-version: "3.11", session: "flake8", runs-on: "macos-12" }
- { python-version: "3.11", session: "flake8", runs-on: "windows-2022" }
- { python-version: "3.11", session: "safety" }
- { python-version: "3.12", session: "flake8" }
- { python-version: "3.12", session: "flake8", runs-on: "macos-12" }
- { python-version: "3.12", session: "flake8", runs-on: "windows-2022" }
- { python-version: "3.12", session: "safety" }
- { python-version: "3.12", session: "pylint" }
- { python-version: "3.12", session: "pylint", runs-on: "macos-12" }
- { python-version: "3.12", session: "pylint", runs-on: "windows-2022" }
- { python-version: "3.11", session: "pylint" }
- { python-version: "3.11", session: "pylint", runs-on: "macos-12" }
- { python-version: "3.11", session: "pylint", runs-on: "windows-2022" }
- { python-version: "3.10", session: "pylint" }
- { python-version: "3.9", session: "pylint" }
- { python-version: "3.8", session: "pylint" }
- { python-version: "3.12", session: "mypy" }
- { python-version: "3.12", session: "mypy", runs-on: "macos-12" }
- { python-version: "3.12", session: "mypy", runs-on: "windows-2022" }
- { python-version: "3.11", session: "mypy" }
- { python-version: "3.11", session: "mypy", runs-on: "macos-12" }
- { python-version: "3.11", session: "mypy", runs-on: "windows-2022" }
- { python-version: "3.10", session: "mypy" }
- { python-version: "3.9", session: "mypy" }
- { python-version: "3.8", session: "mypy" }
- { python-version: "3.12", session: "tests" }
- { python-version: "3.12", session: "tests", runs-on: "macos-12" }
- { python-version: "3.12", session: "tests", runs-on: "windows-2022" }
- { python-version: "3.11", session: "tests" }
- { python-version: "3.11", session: "tests", runs-on: "macos-12" }
- { python-version: "3.11", session: "tests", runs-on: "windows-2022" }
- { python-version: "3.10", session: "tests" }
- { python-version: "3.9", session: "tests" }
- { python-version: "3.8", session: "tests" }
- { python-version: "3.11", session: "typeguard" }
- { python-version: "3.11", session: "typeguard", runs-on: "macos-12" }
- { python-version: "3.11", session: "typeguard", runs-on: "windows-2022" }
- { python-version: "3.11", session: "xdoctest" }
- { python-version: "3.11", session: "xdoctest", runs-on: "macos-12" }
- { python-version: "3.11", session: "xdoctest", runs-on: "windows-2022" }
- { python-version: "3.11", session: "docs" }
- { python-version: "3.12", session: "typeguard" }
- { python-version: "3.12", session: "typeguard", runs-on: "macos-12" }
- { python-version: "3.12", session: "typeguard", runs-on: "windows-2022" }
- { python-version: "3.12", session: "xdoctest" }
- { python-version: "3.12", session: "xdoctest", runs-on: "macos-12" }
- { python-version: "3.12", session: "xdoctest", runs-on: "windows-2022" }
- { python-version: "3.12", session: "docs" }

env:
NOXSESSION: "${{ matrix.session }}"
Expand Down Expand Up @@ -98,10 +101,10 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Upgrade pip
run: |
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"3.9",
"3.10",
"3.11",
"3.12",
]

SOURCES = [
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System",
"Topic :: System :: Software Distribution",
"Typing :: Typed",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test__posix_fadvise_sequential(
# Make mypy happy
assert hasattr(os, "POSIX_FADV_SEQUENTIAL")

assert mocked.called_with(
mocked.assert_called_with(
fd.fileno(),
0,
os.fstat(fd.fileno()).st_size,
Expand Down

0 comments on commit 97ee08a

Please sign in to comment.