Skip to content

Commit 0ac0b74

Browse files
committed
chore(ci): upgrade python requirement to 3.13
- Update pyproject.toml to require python >= 3.13 - Update tox.ini to test py313 - Remove legacy CUDA dependencies (11.8, 12.1) incompatible with PyTorch 2.5+ - Fix numpy array formatting issue in inferencer tests for Py3.13 compatibility
1 parent 101e2bc commit 0ac0b74

File tree

78 files changed

+321
-10655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+321
-10655
lines changed

.github/workflows/_reusable-artifact-builder.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - Retention configuration
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for building (default: "3.10")
30+
# - python-version: Python version for building (default: "3.11")
3131
# - verify-package: Enable package verification (default: true)
3232
#
3333
# Outputs:
@@ -46,7 +46,7 @@
4646
# build:
4747
# uses: ./.github/workflows/_reusable-artifact-builder.yaml
4848
# with:
49-
# python-version: "3.10"
49+
# python-version: "3.11"
5050
# verify-package: true
5151
#
5252
# Note: Requires proper Python project structure and build configuration
@@ -59,7 +59,7 @@ on:
5959
python-version:
6060
description: "Python version for building"
6161
type: string
62-
default: "3.10"
62+
default: "3.11"
6363
verify-package:
6464
description: "Run package verification"
6565
type: boolean

.github/workflows/_reusable-code-quality.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - Status updates
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for checks (default: "3.10")
30+
# - python-version: Python version for checks (default: "3.13")
3131
#
3232
# Example Usage:
3333
# 1. Default Configuration:
@@ -40,7 +40,7 @@
4040
# quality:
4141
# uses: ./.github/workflows/_reusable-code-quality.yaml
4242
# with:
43-
# python-version: "3.11"
43+
# python-version: "3.13"
4444
#
4545
# Note: Requires configured pre-commit hooks in repository
4646

@@ -52,7 +52,7 @@ on:
5252
python-version:
5353
description: "Python version for checks"
5454
type: string
55-
default: "3.10"
55+
default: "3.13"
5656

5757
permissions:
5858
contents: read

.github/workflows/_reusable-pr-title-check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# - Detailed feedback
2525
#
2626
# Required Inputs:
27-
# - python-version: Python version for validation (default: "3.10")
27+
# - python-version: Python version for validation (default: "3.11")
2828
#
2929
# Example Usage:
3030
# 1. Basic Validation:
@@ -37,7 +37,7 @@
3737
# pr-title-check:
3838
# uses: ./.github/workflows/_reusable-pr-title-check.yaml
3939
# with:
40-
# python-version: "3.11"
40+
# python-version: "3.13"
4141
#
4242
# Note: Requires Commitizen configuration in pyproject.toml
4343

@@ -49,7 +49,7 @@ on:
4949
python-version:
5050
description: "Python version for validation"
5151
type: string
52-
default: "3.10"
52+
default: "3.13"
5353

5454
permissions:
5555
contents: read

.github/workflows/_reusable-release-validation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# uses: ./.github/workflows/_reusable-release-validation.yaml
5959
# with:
6060
# version: "v1.2.3"
61-
# python-version: "3.10"
61+
# python-version: "3.11"
6262
# secrets:
6363
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
6464
#
@@ -68,7 +68,7 @@
6868
# uses: ./.github/workflows/_reusable-release-validation.yaml
6969
# with:
7070
# version: "v1.2.3-rc1"
71-
# python-version: "3.10"
71+
# python-version: "3.11"
7272
# allow-prerelease: true
7373
# secrets:
7474
# codecov-token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/_reusable-test-suite.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# test:
5353
# uses: ./.github/workflows/_reusable-test-suite.yaml
5454
# with:
55-
# python-version: "3.11"
55+
# python-version: "3.13"
5656
# test-type: "unit"
5757
# timeout: 30
5858
# secrets:
@@ -68,7 +68,7 @@ on:
6868
python-version:
6969
description: "Python version to use for tests"
7070
type: string
71-
default: "3.10"
71+
default: "3.13"
7272
test-type:
7373
description: "Type of test to run (unit/integration/e2e)"
7474
type: string

.github/workflows/_reusable-version-bump.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - PR creation
2828
#
2929
# Required Inputs:
30-
# - python-version: Python version for bumping (default: "3.10")
30+
# - python-version: Python version for bumping (default: "3.11")
3131
# - create-pr: Whether to create a PR (default: true)
3232
# - target-branch: Target branch for PR (default: "main")
3333
#
@@ -66,7 +66,7 @@ on:
6666
python-version:
6767
description: "Python version for version bumping"
6868
type: string
69-
default: "3.10"
69+
default: "3.11"
7070
create-pr:
7171
description: "Whether to create a pull request"
7272
type: boolean

.github/workflows/pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ jobs:
7272
if: github.event_name == 'pull_request'
7373
uses: ./.github/workflows/_reusable-pr-title-check.yaml
7474
with:
75-
python-version: "3.10"
75+
python-version: "3.13"
7676

7777
# Code quality job using reusable workflow
7878
quality:
7979
if: github.event.pull_request.draft != true
8080
uses: ./.github/workflows/_reusable-code-quality.yaml
8181
with:
82-
python-version: "3.10"
82+
python-version: "3.13"
8383

8484
# Test suite job using reusable workflow
8585
unit-tests:

.github/workflows/pre_merge.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
3232
with:
33-
python-version: "3.10"
33+
python-version: "3.13"
3434
- name: Install Tox
3535
run: pip install tox
3636
- name: Code quality checks
@@ -43,8 +43,8 @@ jobs:
4343
max-parallel: 1
4444
matrix:
4545
include:
46-
- python-version: "3.10"
47-
tox-env: "py310"
46+
- python-version: "3.13"
47+
tox-env: "py313"
4848
steps:
4949
- name: Checkout repository
5050
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
contents: read
8686
with:
8787
version: ${{ github.event_name == 'push' && github.ref_name || inputs.version }}
88-
python-version: "3.10"
88+
python-version: "3.11"
8989
verify-package: true
9090
dry-run: ${{ github.event.inputs.dry_run || false }}
9191
allow-prerelease: true

docs/source/markdown/guides/developer/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Set up your development environment to start contributing. This involves install
1818
1. Create and activate a new Conda environment:
1919

2020
```bash
21-
conda create -n anomalib_dev python=3.10
21+
conda create -n anomalib_dev python>=3.11
2222
conda activate anomalib_dev
2323
```
2424

0 commit comments

Comments
 (0)