Skip to content

Commit 9e259ae

Browse files
committed
Update Python versions supported to 3.10 - 3.13.
Signed-off-by: Govind Kamat <[email protected]>
1 parent 079bfa7 commit 9e259ae

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.ci/variables.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"python_versions": {
3-
"PY38": "3.8.12",
4-
"PY39": "3.9.10",
53
"PY310": "3.10.6",
64
"PY311": "3.11.1",
7-
"MIN_PY_VER": "3.8.12"
5+
"PY312": "3.12.11",
6+
"PY313": "3.13.7",
7+
"MIN_PY_VER": "3.10.6"
88
}
99
}

.github/workflows/integ-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
strategy:
66
matrix:
77
python-version:
8-
- "3.8"
9-
- "3.9"
108
- "3.10"
119
- "3.11"
10+
- "3.12"
11+
- "3.13"
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Install bz2 development package

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SHELL = /bin/bash
1919
PYTHON = python3
2020
PIP = pip3
2121
VERSIONS = $(shell jq -r '.python_versions | .[]' .ci/variables.json | sed '$$d')
22-
VERSION38 = $(shell jq -r '.python_versions | .[]' .ci/variables.json | sed '$$d' | grep 3\.8)
22+
VERSION310 = $(shell jq -r '.python_versions | .[]' .ci/variables.json | sed '$$d' | grep 3\.10)
2323
PYENV_ERROR = "\033[0;31mIMPORTANT\033[0m: Please install pyenv and run \033[0;31meval \"\$$(pyenv init -)\"\033[0m.\n"
2424

2525
all: develop
@@ -29,14 +29,14 @@ pyinst:
2929
@for i in $(VERSIONS); do pyenv install --skip-existing $$i; done
3030
pyenv local $(VERSIONS)
3131

32-
pyinst38:
32+
pyinst310:
3333
@which pyenv > /dev/null 2>&1 || { printf $(PYENV_ERROR); exit 1; }
34-
pyenv install --skip-existing $(VERSION38)
35-
pyenv local $(VERSION38)
34+
pyenv install --skip-existing $(VERSION310)
35+
pyenv local $(VERSION310)
3636

3737
check-pip:
3838
# Install pyenv if the Python environment is externally managed.
39-
@if ! $(PIP) > /dev/null 2>&1 || ! $(PIP) install pip > /dev/null 2>&1; then make pyinst38; fi
39+
@if ! $(PIP) > /dev/null 2>&1 || ! $(PIP) install pip > /dev/null 2>&1; then make pyinst310; fi
4040

4141
check-java:
4242
@if ! test "$(JAVA21_HOME)" || ! java --version > /dev/null 2>&1 || ! javadoc --help > /dev/null 2>&1; then \
@@ -52,7 +52,7 @@ install-deps: check-pip
5252

5353
# pylint does not work with Python versions >3.8:
5454
# Value 'Optional' is unsubscriptable (unsubscriptable-object)
55-
develop: pyinst38 install-deps
55+
develop: pyinst310 install-deps
5656
PIP_ONLY_BINARY=h5py $(PIP) install -e .[develop]
5757

5858
build: install-deps
@@ -88,7 +88,7 @@ it: pyinst check-java python-caches-clean tox-env-clean
8888
@which tox || $(PIP) install tox
8989
tox
9090

91-
it38 it39 it310 it311: pyinst check-java python-caches-clean tox-env-clean
91+
it310 it311 it312 it313: pyinst check-java python-caches-clean tox-env-clean
9292
@which tox || $(PIP) install tox
9393
tox -e $(@:it%=py%)
9494

@@ -106,4 +106,4 @@ release-checks:
106106
release: release-checks clean it
107107
./release.sh $(release_version) $(next_version)
108108

109-
.PHONY: install clean python-caches-clean tox-env-clean test it it38 benchmark coverage release release-checks pyinst
109+
.PHONY: install clean python-caches-clean tox-env-clean test it it310 benchmark coverage release release-checks pyinst

osbenchmark/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
def check_python_version():
8282
if sys.version_info.major != 3 or sys.version_info.minor < 8:
83-
raise RuntimeError("OSB requires at least Python 3.8 but you are using:\n\nPython %s" % str(sys.version))
83+
raise RuntimeError("OSB requires at least Python 3.10 but you are using:\n\nPython %s" % str(sys.version))
8484

8585

8686
def doc_link(path=None):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def str_from_file(name):
4444
long_description = str_from_file("README.md")
4545

4646
# tuples of (major, minor) of supported Python versions ordered from lowest to highest
47-
supported_python_versions = [(3, 8), (3, 9), (3, 10), (3, 11)]
47+
supported_python_versions = [(3, 10), (3, 11), (3, 13)]
4848

4949
################################################################################################
5050
#

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
###############################################################################
88
[tox]
99
envlist =
10-
py38,py39,py310,py311
10+
py310,py311,py312,py313
1111
platform =
1212
linux|darwin
1313

0 commit comments

Comments
 (0)