Skip to content

Commit d650ce9

Browse files
committed
Bump python version
Signed-off-by: Dushyant Behl <[email protected]>
1 parent 2a9faec commit d650ce9

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

.github/workflows/build-and-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
strategy:
2525
matrix:
2626
python-version:
27-
- setup: "3.11"
28-
tox: "py311"
27+
- setup: "3.12"
28+
tox: "py312"
2929

3030
environment:
3131
name: pypi

.github/workflows/coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.11
13+
- name: Set up Python 3.12
1414
uses: actions/setup-python@v4
1515
with:
16-
python-version: 3.11
16+
python-version: 3.12
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
28-
- name: Set up Python 3.9
28+
- name: Set up Python 3.12
2929
uses: actions/setup-python@v4
3030
with:
31-
python-version: 3.9
31+
python-version: 3.12
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip

.github/workflows/test.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14-
- setup: "3.9"
15-
tox: "py39"
16-
- setup: "3.10"
17-
tox: "py310"
18-
- setup: "3.11"
19-
tox: "py311"
14+
- setup: "3.12"
15+
tox: "py312"
2016
steps:
2117
- uses: actions/checkout@v4
2218
- name: Install dependencies

build/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ARG BASE_UBI_IMAGE_TAG=latest
1818
ARG USER=tuning
1919
ARG USER_UID=1000
20-
ARG PYTHON_VERSION=3.11
20+
ARG PYTHON_VERSION=3.12
2121
ARG WHEEL_VERSION=""
2222
## Enable Aimstack or MLflow if requested via ENABLE_AIM/MLFLOW set to "true"
2323
ARG ENABLE_AIM=false
@@ -31,7 +31,7 @@ ARG PYTHON_VERSION
3131
ARG USER
3232
ARG USER_UID
3333

34-
# Note this works for 3.9, 3.11, 3.12
34+
# Note this is tested to be working for version 3.12
3535
RUN dnf remove -y --disableplugin=subscription-manager \
3636
subscription-manager \
3737
&& dnf install -y python${PYTHON_VERSION} procps g++ python${PYTHON_VERSION}-devel \
@@ -51,7 +51,7 @@ RUN useradd -u $USER_UID ${USER} -m -g 0 --system && \
5151
## Used as base of the Release stage to removed unrelated the packages and CVEs
5252
FROM base AS release-base
5353

54-
# Removes the python3.9 code to eliminate possible CVEs. Also removes dnf
54+
# Removes the python code to eliminate possible CVEs. Also removes dnf
5555
RUN rpm -e $(dnf repoquery python3-* -q --installed) dnf python3 yum crypto-policies-scripts
5656

5757

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ authors = [
1515
]
1616
license = {text = "Apache-2.0"}
1717
readme = "README.md"
18-
requires-python = "~=3.9"
18+
requires-python = ">=3.12"
1919
keywords = ['fms-hf-tuning', 'python', 'tuning']
2020
classifiers=[
2121
"License :: OSI Approved :: Apache Software License",
2222
"Development Status :: 4 - Beta",
23-
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.9",
25-
"Programming Language :: Python :: 3.10",
26-
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12"
2724
]
2825
dependencies = [
2926
"numpy>=1.26.4,<2.0",

0 commit comments

Comments
 (0)