From 47f45cab7c36654ac3b3b6b73b9bb95a03619728 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 31 Jan 2024 19:21:34 -0500 Subject: [PATCH] Update to Django 5.1 --- .github/workflows/tests.yml | 2 +- django_snowflake/__init__.py | 2 +- django_snowflake/features.py | 8 +++----- setup.cfg | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8d87b58..d546d34 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 with: repository: 'timgraham/django' - ref: 'snowflake-5.0.x' + ref: 'snowflake-5.1.x' path: 'django_repo' - name: Install system packages for Django's Python test dependencies run: | diff --git a/django_snowflake/__init__.py b/django_snowflake/__init__.py index 1d580be..9da4b81 100644 --- a/django_snowflake/__init__.py +++ b/django_snowflake/__init__.py @@ -1,4 +1,4 @@ -__version__ = '5.0.1' +__version__ = '5.1a1' # Check Django compatibility before other imports which may fail if the # wrong version of Django is installed. diff --git a/django_snowflake/features.py b/django_snowflake/features.py index a3dacaa..bb94326 100644 --- a/django_snowflake/features.py +++ b/django_snowflake/features.py @@ -155,6 +155,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): # Zero pk validation not added yet. 'backends.tests.MySQLPKZeroTests.test_zero_as_autoval', 'bulk_create.tests.BulkCreateTests.test_zero_as_autoval', + # Snowflake returns 'The Name::42.00000'. + 'db_functions.text.test_concat.ConcatTests.test_concat_non_str', } django_test_skips = { @@ -185,21 +187,16 @@ class DatabaseFeatures(BaseDatabaseFeatures): 'introspection.tests.IntrospectionTests.test_get_constraints_index_types', 'migrations.test_operations.OperationTests.test_add_index', 'migrations.test_operations.OperationTests.test_alter_field_with_index', - 'migrations.test_operations.OperationTests.test_alter_index_together', 'migrations.test_operations.OperationTests.test_remove_index', 'migrations.test_operations.OperationTests.test_rename_index', - 'migrations.test_operations.OperationTests.test_rename_index_unnamed_index', 'schema.tests.SchemaTests.test_add_remove_index', 'schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield', - 'schema.tests.SchemaTests.test_create_index_together', 'schema.tests.SchemaTests.test_index_together', - 'schema.tests.SchemaTests.test_index_together_with_fk', 'schema.tests.SchemaTests.test_indexes', 'schema.tests.SchemaTests.test_order_index', 'schema.tests.SchemaTests.test_remove_constraints_capital_letters', 'schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes', 'schema.tests.SchemaTests.test_remove_field_unique_does_not_remove_meta_constraints', - 'schema.tests.SchemaTests.test_remove_index_together_does_not_remove_meta_indexes', 'schema.tests.SchemaTests.test_remove_unique_together_does_not_remove_meta_constraints', 'schema.tests.SchemaTests.test_text_field_with_db_index', }, @@ -252,6 +249,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): 'expressions.tests.BasicExpressionsTests.test_nested_subquery_outer_ref_2', 'expressions.tests.BasicExpressionsTests.test_nested_subquery_outer_ref_with_autofield', 'expressions.tests.BasicExpressionsTests.test_order_by_exists', + 'expressions.tests.BasicExpressionsTests.test_slicing_of_outerref', 'expressions.tests.BasicExpressionsTests.test_subquery', 'expressions.tests.BasicExpressionsTests.test_subquery_filter_by_lazy', 'expressions.tests.BasicExpressionsTests.test_subquery_in_filter', diff --git a/setup.cfg b/setup.cfg index db7fa75..6047429 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,7 @@ long_description_content_type = text/markdown classifiers = Development Status :: 5 - Production/Stable Framework :: Django - Framework :: Django :: 5.0 + Framework :: Django :: 5.1 License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python