From 066b2bfa6156bd644044de5040c36eeb349f1c78 Mon Sep 17 00:00:00 2001 From: Lene Preuss Date: Wed, 4 Oct 2023 10:34:51 +0200 Subject: [PATCH] limit python to 3.11 to work arount setuptools bug --- .gitlab-ci.yml | 4 ++-- poetry.lock | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cac049c..12c003b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ bandit: extends: .test parallel: matrix: - - PY_VERSION: [ "latest" ] + - PY_VERSION: [ "3.11" ] script: - poetry run bandit -r duplicate_images @@ -95,7 +95,7 @@ RunAndCheckResults: RunWithArgs: stage: test - image: python:latest + image: python:3.11 rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event"' before_script: diff --git a/poetry.lock b/poetry.lock index 9f2fd5f..1e87f09 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1281,5 +1281,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = ">=3.9,<3.13" -content-hash = "49bb475ca510edbcd5a7b09b7f02326d09def4071927e1002365d1a6b571c7e4" +python-versions = ">=3.9,<3.12" +content-hash = "5f7902c5e4813ff940c45bc347788694c09c87c0fdb0947bb3f6d335b64da57c" diff --git a/pyproject.toml b/pyproject.toml index ac53efd..9824c72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ ] [tool.poetry.dependencies] -python = ">=3.9,<3.13" +python = ">=3.9,<3.12" Wand = "^0.6" pillow = "^10.0" imagehash = "^4.3"