Skip to content

Commit c9da5c5

Browse files
committed
update for Django 6.0
1 parent ce8697f commit c9da5c5

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
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
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/checkout@v4
5555
- uses: actions/setup-python@v4
5656
with:
57-
python-version: '3.10'
57+
python-version: '3.12'
5858
- name: Install system packages for Django's Python test dependencies
5959
run: |
6060
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def django_test_expected_failures(self):
161161
'bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields',
162162
'many_to_one.tests.ManyToOneTests.test_add_remove_set_by_pk_raises',
163163
'many_to_one.tests.ManyToOneTests.test_fk_to_smallautofield',
164-
'many_to_one.tests.ManyToOneTests.test_get_prefetch_queryset_reverse_warning',
165164
'many_to_one.tests.ManyToOneTests.test_get_prefetch_querysets_reverse_invalid_querysets_length',
166165
'migrations.test_operations.OperationTests.test_smallfield_autofield_foreignfield_growth',
167166
'migrations.test_operations.OperationTests.test_smallfield_bigautofield_foreignfield_growth',
@@ -187,6 +186,8 @@ def django_test_expected_failures(self):
187186
'aggregation.tests.AggregateTestCase.test_aggregation_default_expression',
188187
# ProgrammingError: VALUES types int and float cannot be matched
189188
'field_defaults.tests.DefaultTests.test_bulk_create_mixed_db_defaults_function',
189+
# CockroachDB returns incorrect order?
190+
"aggregation.tests.AggregateTestCase.test_distinct_on_stringagg",
190191
})
191192
if not self.is_cockroachdb_24_3:
192193
expected_failures.update({
@@ -201,6 +202,8 @@ def django_test_expected_failures(self):
201202
'migrations.test_operations.OperationTests.test_add_generated_field',
202203
# concat(): unknown signature: concat(string, int2) (desired <string>)
203204
'db_functions.text.test_concat.ConcatTests.test_concat_non_str',
205+
# unknown signature: concat(timestamptz, string)
206+
"aggregation.tests.AggregateTestCase.test_string_agg_order_by",
204207
})
205208
if self.is_cockroachdb_25_1:
206209
expected_failures.update({
@@ -264,6 +267,8 @@ def django_test_expected_failures(self):
264267
# incompatible COALESCE expressions: unsupported binary
265268
# operator: <decimal> / <float> (desired <decimal>)
266269
'aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate',
270+
# could not parse "@" as type timestamptz: parsing as type timestamp: empty or blank input
271+
"aggregation.tests.AggregateTestCase.test_string_agg_order_by",
267272
})
268273
if self.is_cockroachdb_24_3:
269274
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)