Skip to content

Commit 6a076d9

Browse files
committed
Added support for Python 3.12
1 parent da35b69 commit 6a076d9

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/build-test-python-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- name: Lint with ruff
3434
run: |
3535
# stop the build if there are Python syntax errors or undefined names
36-
ruff --output-format=github --select=E9,F63,F7,F82 --config=pyproject.toml .
36+
ruff check --output-format=github --select=E9,F63,F7,F82 --config=pyproject.toml .
3737
# default set of ruff rules with GitHub Annotations
38-
ruff --output-format=github --config=pyproject.toml .
38+
ruff check --output-format=github --config=pyproject.toml .
3939
- name: Test with pytest
4040
run: |
4141
pytest

noxfile.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Be careful that the general setup of tests is left to pyproject.toml.
66
"""
77

8-
98
import nox
109

1110
# set the test parameters
@@ -17,11 +16,11 @@
1716
def lint(session: nox.Session) -> None:
1817
"""Ensure the code is formatted as expected."""
1918
session.install("ruff")
20-
session.run("ruff", "--output-format=github", "--config=pyproject.toml", ".")
19+
session.run("ruff", "check", "--output-format=github", "--config=pyproject.toml", ".")
2120

2221

2322
# @nox.session # uncomment this line to only run on the current python interpreter
24-
@nox.session(python=["3.9", "3.10", "3.11"]) # missing versions can be installed with `pyenv install ...`
23+
@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) # missing versions can be installed with `pyenv install ...`
2524
# do not forget check / set the versions with `pyenv global`, or `pyenv local` in case of virtual environment
2625
def tests(session: nox.Session) -> None:
2726
"""Run the tests for the specified Python versions."""

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
44

55
[project] # https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
66
name = "autotuning_methodology"
7-
version = "1.0.0b4"
7+
version = "1.0.0b5"
88
authors = [{ name = "Floris-Jan Willemsen", email = "fjwillemsen97@gmail.com" }]
99
description = "Software package easing implementation of the guidelines of the 2024 paper 'A Methodology for Comparing Auto-Tuning Optimization Algorithms'."
1010
keywords = ["autotuning", "auto-tuning", "methodology", "scientific"]
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2223
] # https://pypi.org/classifiers/
2324
dependencies = [
2425
"numpy >= 1.22.4",
@@ -29,7 +30,7 @@ dependencies = [
2930
"progressbar2 >= 4.2.0",
3031
"jsonschema >= 4.17.3",
3132
"nonconformist >= 2.1.0",
32-
"kernel_tuner >= 1.0.0b5",
33+
"kernel_tuner >= 1.0.1",
3334
]
3435

3536
[project.optional-dependencies]
@@ -73,11 +74,12 @@ line-length = 120
7374
src = ["src"]
7475
respect-gitignore = true
7576
exclude = ["extra", "UML", "tests/autotuning_methodology/*mockfiles*"]
77+
# target-version = "py310" # inferred from project.requires-python
78+
[tool.ruff.lint]
7679
select = [
7780
"E", # pycodestyle
7881
"F", # pyflakes,
7982
"D", # pydocstyle,
8083
]
81-
# target-version = "py310" # inferred from project.requires-python
82-
[tool.ruff.pydocstyle]
84+
[tool.ruff.lint.pydocstyle]
8385
convention = "google"

0 commit comments

Comments
 (0)