Skip to content

Commit 7d131ee

Browse files
committed
Update .gitlab-ci.yml file
1 parent 97dd73c commit 7d131ee

File tree

4 files changed

+100
-114
lines changed

4 files changed

+100
-114
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222

2323
- name: Install the project
24-
run: uv sync --locked --all-extras --dev
24+
run: uv sync --reinstall --locked --all-extras --dev
2525

2626
- name: Run unit tests
2727
run: uv run pytest -m "not slow" --cov=compressai -s tests/

.gitlab-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ uv-install:
4343
- docker
4444

4545
wheel:
46-
image: python:$PYTHON_VERSION-buster
46+
image: python:$PYTHON_VERSION
4747
stage: build
4848
before_script:
4949
# - export UV_PYTHON="$PYTHON_VERSION"
@@ -56,7 +56,7 @@ wheel:
5656
expire_in: 1 day
5757
parallel:
5858
matrix:
59-
- PYTHON_VERSION: ['3.8', '3.9', '3.10']
59+
- PYTHON_VERSION: ['3.8', '3.9', '3.10', '3.11', '3.12']
6060
tags:
6161
- docker
6262

@@ -117,6 +117,10 @@ test:
117117
CUDA_VERSION_NAME=cu118
118118
TORCH_VERSION=2.2.0+cu118
119119
TORCHVISION_VERSION=0.17.0+cu118
120+
elif [ "$PYTORCH_IMAGE" == "2.7.1-cuda12.8-cudnn9-devel" ]; then
121+
CUDA_VERSION_NAME=cu128
122+
TORCH_VERSION=2.7.1+cu128
123+
TORCHVISION_VERSION=0.22.0+cu128
120124
fi
121125
- |
122126
cat <<EOF >> pyproject.toml.delta

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [
33
"setuptools>=68",
44
"wheel",
55
"pybind11>=2.6.0",
6-
"tomli; python_version < '3.11'",
6+
"tomli; python_version < '3.14'",
77
]
88
build-backend = "setuptools.build_meta"
99

@@ -15,7 +15,7 @@ authors = [
1515
{ name = "InterDigital AI Lab", email = "[email protected]" },
1616
]
1717
readme = "Readme.md"
18-
requires-python = ">=3.8"
18+
requires-python = ">=3.8,<14"
1919
urls = { Homepage = "https://github.com/InterDigitalInc/CompressAI" }
2020
classifiers = [
2121
"Development Status :: 3 - Alpha",
@@ -31,10 +31,9 @@ classifiers = [
3131
dependencies = [
3232
"einops",
3333
"matplotlib",
34-
"numpy >= 1.24.4,<2.0; python_version < '3.10'",
35-
"numpy >= 2.2.4; python_version >= '3.10'",
36-
"Pandas >= 2.0; python_version < '3.10'",
37-
"Pandas >= 2.2.0; python_version >= '3.10'",
34+
"numpy >= 1.24.4,<2.0",
35+
"Pandas >= 2.0.3; python_version < '3.9'",
36+
"Pandas >= 2.3.2; python_version >= '3.9'",
3837
"pybind11>=2.6.0; python_version < '3.10'", # For --no-build-isolation.
3938
"pybind11>=2.12.0; python_version >= '3.10'", # For --no-build-isolation.
4039
"pytorch-msssim",
@@ -43,7 +42,8 @@ dependencies = [
4342
"tomli>=2.2.1",
4443
"torch-geometric>=2.3.0",
4544
"torch>=1.13.1",
46-
"torchvision",
45+
"torchvision>=0.14.1,<0.20; python_version < '3.9'",
46+
"torchvision>=0.17.0; python_version >= '3.9'",
4747
"tqdm",
4848
"typing-extensions>=4.0.0",
4949
"wheel>=0.32.0", # For --no-build-isolation.
@@ -118,7 +118,7 @@ exclude = ["tests"]
118118

119119
[tool.black]
120120
line-length = 88
121-
target-version = ['py38', 'py39', 'py310']
121+
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
122122
include = '\.pyi?$'
123123
exclude = '''
124124
/(

0 commit comments

Comments
 (0)