From 3e942c4f42e7711be713edb08dd24fd571c33f52 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 28 Aug 2024 20:39:28 -0400 Subject: [PATCH] Remove Python 3.10 from test matrix, update classifiers, deprecations --- .github/workflows/main.yml | 2 +- arches_references/migrations/0001_initial.py | 2 +- arches_references/models.py | 2 +- pyproject.toml | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7b129b..bedd7db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,7 +63,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/arches_references/migrations/0001_initial.py b/arches_references/migrations/0001_initial.py index f316b9f..f3676fc 100644 --- a/arches_references/migrations/0001_initial.py +++ b/arches_references/migrations/0001_initial.py @@ -309,7 +309,7 @@ def remove_view_plugin(apps, schema_editor): migrations.AddConstraint( model_name="listitemvalue", constraint=models.CheckConstraint( - check=models.Q( + condition=models.Q( ("language_id__isnull", False), ("valuetype", "image"), _connector="OR", diff --git a/arches_references/models.py b/arches_references/models.py index b0d2c2c..9b17030 100644 --- a/arches_references/models.py +++ b/arches_references/models.py @@ -252,7 +252,7 @@ class Meta: ), ), models.CheckConstraint( - check=Q(language_id__isnull=False) | Q(valuetype="image"), + condition=Q(language_id__isnull=False) | Q(valuetype="image"), name="only_images_nullable_language", violation_error_message=_( "Item values must be associated with a language." diff --git a/pyproject.toml b/pyproject.toml index 608cb4a..98a6279 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,10 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Framework :: Django", - "Framework :: Django :: 4.2", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: Information Technology",