Skip to content

Commit

Permalink
Update to Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Feb 2, 2024
1 parent bc5d5ea commit 5fe0bfc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion django_snowflake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '5.0'
__version__ = '5.1a1'

# Check Django compatibility before other imports which may fail if the
# wrong version of Django is installed.
Expand Down
8 changes: 3 additions & 5 deletions django_snowflake/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fe0bfc

Please sign in to comment.