Skip to content

Commit 882aaad

Browse files
committed
update for Django 6.0
1 parent 35604f8 commit 882aaad

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.10'
20+
python-version: '3.12'
2121
- run: python -m pip install flake8
2222
- name: flake8
2323
uses: liskin/gh-problem-matcher-wrap@v2
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Python
3434
uses: actions/setup-python@v4
3535
with:
36-
python-version: '3.10'
36+
python-version: '3.12'
3737
- run: python -m pip install isort
3838
- name: isort
3939
uses: liskin/gh-problem-matcher-wrap@v2

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: actions/setup-python@v4
6161
with:
62-
python-version: '3.10'
62+
python-version: '3.12'
6363
- name: Install system packages for Django's Python test dependencies
6464
run: |
6565
sudo apt-get update

django-test-suite/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VERSION=$1
77

88
# clone django into the repo.
99
rm -rf _django_repo
10-
git clone --depth 1 --single-branch --branch cockroach-5.2.x https://github.com/timgraham/django _django_repo
10+
git clone --depth 1 --single-branch --branch cockroach-6.0.x https://github.com/timgraham/django _django_repo
1111

1212
# install the django requirements.
1313
cd _django_repo/tests/

django_cockroachdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '5.2'
1+
__version__ = '6.0a0'
22

33
# Check Django compatibility before other imports which may fail if the
44
# wrong version of Django is installed.

django_cockroachdb/features.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def django_test_expected_failures(self):
165165
'bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields',
166166
'many_to_one.tests.ManyToOneTests.test_add_remove_set_by_pk_raises',
167167
'many_to_one.tests.ManyToOneTests.test_fk_to_smallautofield',
168-
'many_to_one.tests.ManyToOneTests.test_get_prefetch_queryset_reverse_warning',
169168
'many_to_one.tests.ManyToOneTests.test_get_prefetch_querysets_reverse_invalid_querysets_length',
170169
'migrations.test_operations.OperationTests.test_smallfield_autofield_foreignfield_growth',
171170
'migrations.test_operations.OperationTests.test_smallfield_bigautofield_foreignfield_growth',
@@ -205,6 +204,8 @@ def django_test_expected_failures(self):
205204
'migrations.test_operations.OperationTests.test_add_generated_field',
206205
# concat(): unknown signature: concat(string, int2) (desired <string>)
207206
'db_functions.text.test_concat.ConcatTests.test_concat_non_str',
207+
# unknown signature: concat(timestamptz, string)
208+
"aggregation.tests.AggregateTestCase.test_string_agg_order_by",
208209
})
209210
if self.is_cockroachdb_25_1:
210211
expected_failures.update({
@@ -231,9 +232,7 @@ def django_test_expected_failures(self):
231232
'expressions_case.tests.CaseExpressionTests.test_annotate_with_aggregation_in_predicate',
232233
'expressions_case.tests.CaseExpressionTests.test_annotate_with_annotation_in_condition',
233234
'expressions_case.tests.CaseExpressionTests.test_annotate_with_annotation_in_predicate',
234-
'expressions_case.tests.CaseExpressionTests.test_annotate_with_empty_when',
235235
'expressions_case.tests.CaseExpressionTests.test_annotate_with_expression_as_condition',
236-
'expressions_case.tests.CaseExpressionTests.test_annotate_with_full_when',
237236
'expressions_case.tests.CaseExpressionTests.test_annotate_with_join_in_condition',
238237
'expressions_case.tests.CaseExpressionTests.test_annotate_with_join_in_predicate',
239238
'expressions_case.tests.CaseExpressionTests.test_case_reuse',
@@ -244,6 +243,7 @@ def django_test_expected_failures(self):
244243
'lookup.tests.LookupQueryingTests.test_conditional_expression',
245244
'ordering.tests.OrderingTests.test_order_by_constant_value',
246245
'queries.test_bulk_update.BulkUpdateNoteTests.test_batch_size',
246+
'queries.test_bulk_update.BulkUpdateNoteTests.test_max_batch_size',
247247
'queries.test_bulk_update.BulkUpdateNoteTests.test_multiple_fields',
248248
'queries.test_bulk_update.BulkUpdateNoteTests.test_simple',
249249
'queries.test_bulk_update.BulkUpdateTests.test_custom_pk',
@@ -268,6 +268,8 @@ def django_test_expected_failures(self):
268268
# incompatible COALESCE expressions: unsupported binary
269269
# operator: <decimal> / <float> (desired <decimal>)
270270
'aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate',
271+
# could not parse "@" as type timestamptz: parsing as type timestamp: empty or blank input
272+
"aggregation.tests.AggregateTestCase.test_string_agg_order_by",
271273
})
272274
if self.is_cockroachdb_24_3:
273275
expected_failures.update({

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ classifiers =
1616
Operating System :: OS Independent
1717
Programming Language :: Python
1818
Programming Language :: Python :: 3
19-
Programming Language :: Python :: 3.10
20-
Programming Language :: Python :: 3.11
2119
Programming Language :: Python :: 3.12
2220
Programming Language :: Python :: 3.13
2321
project_urls =
@@ -28,7 +26,7 @@ project_urls =
2826
python_requires = >=3.10
2927
packages = find:
3028
install_requires =
31-
django >= 5.2, < 6.0
29+
# django >= 6.0, < 6.1
3230

3331
[flake8]
3432
max-line-length = 119

0 commit comments

Comments
 (0)