Skip to content

Commit

Permalink
Add support for Python 3.12 and drop for 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazuki-TAKEDA committed Oct 13, 2023
1 parent 2a8ea56 commit 8020df0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -34,10 +34,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- python-version: "3.7"
python-identifier: "cp37-*"
- python-version: "3.8"
python-identifier: "cp38-*"
- python-version: "3.9"
Expand All @@ -46,6 +44,8 @@ jobs:
python-identifier: "cp310-*"
- python-version: "3.11"
python-identifier: "cp311-*"
- python-version: "3.12"
python-identifier: "cp312-*"
steps:
- uses: actions/checkout@v3

Expand All @@ -56,7 +56,7 @@ jobs:
if: runner.os == 'Linux'

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.0
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/py-plinkio/tests"
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi_experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3

Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311}-test,flake8,black,pylint
envlist = py{38,39,310,311,312}-test,flake8,black,pylint
skip_missing_interpreters = true

[base]
Expand All @@ -12,7 +12,7 @@ setenv =
deps =
pytest == 7.1.2

[testenv:py{37,38,39,310,311}-test]
[testenv:py{38,39,310,311,312}-test]
usedevelop = true
setenv =
{[base]setenv}
Expand All @@ -33,7 +33,7 @@ skip_install = true
setenv =
{[base]setenv}
deps =
flake8 == 4.0.1
flake8 == 6.1.0
commands =
flake8 --ignore=E231,W503 {env:PLINKIO_ROOT} {env:TESTS_ROOT}

Expand Down Expand Up @@ -88,8 +88,8 @@ source = py-plinkio/src/plinkio

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

0 comments on commit 8020df0

Please sign in to comment.