Skip to content

Commit

Permalink
Bump python version
Browse files Browse the repository at this point in the history
Signed-off-by: Dushyant Behl <dushyantbehl@in.ibm.com>
  • Loading branch information
dushyantbehl committed Jan 24, 2025
1 parent 2a9faec commit d650ce9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
strategy:
matrix:
python-version:
- setup: "3.11"
tox: "py311"
- setup: "3.12"
tox: "py312"

environment:
name: pypi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ jobs:
strategy:
matrix:
python-version:
- setup: "3.9"
tox: "py39"
- setup: "3.10"
tox: "py310"
- setup: "3.11"
tox: "py311"
- setup: "3.12"
tox: "py312"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ARG BASE_UBI_IMAGE_TAG=latest
ARG USER=tuning
ARG USER_UID=1000
ARG PYTHON_VERSION=3.11
ARG PYTHON_VERSION=3.12
ARG WHEEL_VERSION=""
## Enable Aimstack or MLflow if requested via ENABLE_AIM/MLFLOW set to "true"
ARG ENABLE_AIM=false
Expand All @@ -31,7 +31,7 @@ ARG PYTHON_VERSION
ARG USER
ARG USER_UID

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

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


Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ authors = [
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = "~=3.9"
requires-python = ">=3.12"
keywords = ['fms-hf-tuning', 'python', 'tuning']
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [
"numpy>=1.26.4,<2.0",
Expand Down

0 comments on commit d650ce9

Please sign in to comment.