Skip to content

Commit 6679706

Browse files
committed
Removed Python 3.8 specifics
1 parent 9ae7720 commit 6679706

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

kernel_tuner/searchspace.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import ast
42
import re
53
from pathlib import Path

kernel_tuner/util.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Module for kernel tuner utility functions."""
2-
from __future__ import annotations
3-
42
import errno
53
import json
64
import logging
@@ -1175,8 +1173,7 @@ def process_cache(cache, kernel_options, tuning_options, runner):
11751173

11761174

11771175
def correct_open_cache(cache, open_cache=True):
1178-
""" if cache file was not properly closed, pretend it was properly closed """
1179-
1176+
"""If cache file was not properly closed, pretend it was properly closed."""
11801177
with open(cache, "r") as cachefile:
11811178
filestr = cachefile.read().strip()
11821179

@@ -1197,7 +1194,6 @@ def correct_open_cache(cache, open_cache=True):
11971194

11981195
def read_cache(cache, open_cache=True):
11991196
"""Read the cachefile into a dictionary, if open_cache=True prepare the cachefile for appending."""
1200-
12011197
filestr = correct_open_cache(cache, open_cache)
12021198

12031199
error_configs = {

noxfile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,6 @@ def tests(session: Session) -> None:
209209
except Exception as error:
210210
session.log(error)
211211
session.warn(install_warning)
212-
if install_opencl and session.python == "3.8":
213-
# if we need to install the OpenCL extras, first install pyopencl seperately, reason:
214-
# it has `oldest-supported-numpy` as a build dependency which doesn't work with Poetry, but only for Python<3.9
215-
try:
216-
session.install("pyopencl") # Attention: if changed, check `pyopencl` in pyproject.toml as well
217-
except Exception as error:
218-
session.log(error)
219-
session.warn(install_warning)
220212

221213
# finally, install the dependencies, optional dependencies and the package itself
222214
poetry_env = Path(session.run_always("poetry", "env", "info", "--executable", silent=not verbose, external=True).splitlines()[-1].strip()).resolve()

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ generate-setup-file = false
5656

5757
# ATTENTION: if anything is changed here, run `poetry update`
5858
[tool.poetry.dependencies]
59-
python = ">=3.9,<3.13" # NOTE if we drop 3.8 support, remove "from __future__ import annotations" # NOTE when changing the supported Python versions, also change the test versions in the noxfile
60-
numpy = ">=1.26.0" # Python 3.12 requires numpy at least 1.26
59+
python = ">=3.9,<3.13" # NOTE when changing the supported Python versions, also change the test versions in the noxfile
60+
numpy = ">=1.26.0" # Python 3.12 requires numpy at least 1.26
6161
scipy = ">=1.11.0"
6262
packaging = "*" # required by file_utils
6363
jsonschema = "*"

0 commit comments

Comments
 (0)