django-cockroachdb 4.2__tar.gz → 5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. django-cockroachdb-5.0/CHANGELOG.md +5 -0
  2. {django-cockroachdb-4.2/django_cockroachdb.egg-info → django-cockroachdb-5.0}/PKG-INFO +6 -11
  3. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/README.md +3 -7
  4. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/__init__.py +1 -1
  5. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/features.py +7 -9
  6. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/operations.py +2 -2
  7. {django-cockroachdb-4.2 → django-cockroachdb-5.0/django_cockroachdb.egg-info}/PKG-INFO +6 -11
  8. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/features.py +1 -0
  9. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/setup.cfg +2 -3
  10. django-cockroachdb-4.2/CHANGELOG.md +0 -5
  11. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/LICENSE +0 -0
  12. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/MANIFEST.in +0 -0
  13. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/base.py +0 -0
  14. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/client.py +0 -0
  15. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/creation.py +0 -0
  16. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/functions.py +0 -0
  17. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/introspection.py +0 -0
  18. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/lookups.py +0 -0
  19. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/schema.py +0 -0
  20. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb/utils.py +0 -0
  21. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb.egg-info/SOURCES.txt +0 -0
  22. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb.egg-info/dependency_links.txt +0 -0
  23. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb.egg-info/top_level.txt +0 -0
  24. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/__init__.py +0 -0
  25. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/base.py +0 -0
  26. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/functions.py +0 -0
  27. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/introspection.py +0 -0
  28. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/operations.py +0 -0
  29. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/django_cockroachdb_gis/schema.py +0 -0
  30. {django-cockroachdb-4.2 → django-cockroachdb-5.0}/setup.py +0 -0
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 5.0 - 2023-12-11
4
+
5
+ Initial release for Django 5.0.x and CockroachDB 22.2.x and 23.1.x.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-cockroachdb
3
- Version: 4.2
3
+ Version: 5.0
4
4
  Summary: Django backend for CockroachDB
5
5
  Home-page: https://github.com/cockroachdb/django-cockroachdb
6
6
  Maintainer: Cockroach Labs
@@ -11,15 +11,14 @@ Project-URL: Tracker, https://github.com/cockroachdb/django-cockroachdb/issues
11
11
  Platform: UNKNOWN
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Framework :: Django
14
- Classifier: Framework :: Django :: 4.2
14
+ Classifier: Framework :: Django :: 5.0
15
15
  Classifier: License :: OSI Approved :: Apache Software License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
19
  Classifier: Programming Language :: Python :: 3.10
22
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
23
22
  Requires-Python: >=3.8
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
@@ -47,9 +46,9 @@ production it is advised to use the package built from sources.
47
46
  ## Install and usage
48
47
 
49
48
  Use the version of django-cockroachdb that corresponds to your version of
50
- Django. For example, to get the latest compatible release for Django 4.2.x:
49
+ Django. For example, to get the latest compatible release for Django 5.0.x:
51
50
 
52
- `pip install django-cockroachdb==4.2.*`
51
+ `pip install django-cockroachdb==5.0.*`
53
52
 
54
53
  The minor release number of Django doesn't correspond to the minor release
55
54
  number of django-cockroachdb. Use the latest minor release of each.
@@ -118,7 +117,7 @@ By default, CockroachDB sends the version of django-cockroachdb that you're
118
117
  using back to Cockroach Labs. To disable this, set
119
118
  `DISABLE_COCKROACHDB_TELEMETRY = True` in your Django settings.
120
119
 
121
- ## Known issues and limitations in CockroachDB 22.2.x and earlier
120
+ ## Known issues and limitations in CockroachDB 23.1.x and earlier
122
121
 
123
122
  - CockroachDB [can't disable constraint checking](https://github.com/cockroachdb/cockroach/issues/19444),
124
123
  which means certain things in Django like forward references in fixtures
@@ -171,8 +170,4 @@ using back to Cockroach Labs. To disable this, set
171
170
  overlaps_below (&>|)](https://github.com/cockroachdb/cockroach/issues/57098)
172
171
  - [strictly_above (|>>), strictly_below (<<|)](https://github.com/cockroachdb/cockroach/issues/57095)
173
172
 
174
- ## Known issues and limitations in CockroachDB 22.1.x and earlier
175
-
176
- - `QuerySet.select_for_update(skip_locked=True)` isn't supported.
177
-
178
173
 
@@ -21,9 +21,9 @@ production it is advised to use the package built from sources.
21
21
  ## Install and usage
22
22
 
23
23
  Use the version of django-cockroachdb that corresponds to your version of
24
- Django. For example, to get the latest compatible release for Django 4.2.x:
24
+ Django. For example, to get the latest compatible release for Django 5.0.x:
25
25
 
26
- `pip install django-cockroachdb==4.2.*`
26
+ `pip install django-cockroachdb==5.0.*`
27
27
 
28
28
  The minor release number of Django doesn't correspond to the minor release
29
29
  number of django-cockroachdb. Use the latest minor release of each.
@@ -92,7 +92,7 @@ By default, CockroachDB sends the version of django-cockroachdb that you're
92
92
  using back to Cockroach Labs. To disable this, set
93
93
  `DISABLE_COCKROACHDB_TELEMETRY = True` in your Django settings.
94
94
 
95
- ## Known issues and limitations in CockroachDB 22.2.x and earlier
95
+ ## Known issues and limitations in CockroachDB 23.1.x and earlier
96
96
 
97
97
  - CockroachDB [can't disable constraint checking](https://github.com/cockroachdb/cockroach/issues/19444),
98
98
  which means certain things in Django like forward references in fixtures
@@ -144,7 +144,3 @@ using back to Cockroach Labs. To disable this, set
144
144
  - [overlaps_left (&<), overlaps_right (&>), overlaps_above (&<|),
145
145
  overlaps_below (&>|)](https://github.com/cockroachdb/cockroach/issues/57098)
146
146
  - [strictly_above (|>>), strictly_below (<<|)](https://github.com/cockroachdb/cockroach/issues/57095)
147
-
148
- ## Known issues and limitations in CockroachDB 22.1.x and earlier
149
-
150
- - `QuerySet.select_for_update(skip_locked=True)` isn't supported.
@@ -1,4 +1,4 @@
1
- __version__ = '4.2'
1
+ __version__ = '5.0'
2
2
 
3
3
  # Check Django compatibility before other imports which may fail if the
4
4
  # wrong version of Django is installed.
@@ -1,5 +1,3 @@
1
- import operator
2
-
3
1
  from django.db.backends.postgresql.features import (
4
2
  DatabaseFeatures as PostgresDatabaseFeatures,
5
3
  )
@@ -13,9 +11,6 @@ class DatabaseFeatures(PostgresDatabaseFeatures):
13
11
  # https://github.com/cockroachdb/django-cockroachdb/issues/206
14
12
  can_clone_databases = False
15
13
 
16
- # Not supported: https://github.com/cockroachdb/cockroach/issues/40476
17
- has_select_for_update_skip_locked = property(operator.attrgetter('is_cockroachdb_22_2'))
18
-
19
14
  # Not supported: https://github.com/cockroachdb/cockroach/issues/31632
20
15
  can_defer_constraint_checks = False
21
16
 
@@ -76,12 +71,10 @@ class DatabaseFeatures(PostgresDatabaseFeatures):
76
71
  # https://github.com/cockroachdb/cockroach/issues/54817
77
72
  'non_default': 'sv',
78
73
  'swedish_ci': 'sv-x-icu',
74
+ # Not supported: https://github.com/cockroachdb/cockroach/issues/111091
75
+ 'virtual': None,
79
76
  }
80
77
 
81
- @cached_property
82
- def is_cockroachdb_22_2(self):
83
- return self.connection.cockroachdb_version >= (22, 2)
84
-
85
78
  @cached_property
86
79
  def django_test_expected_failures(self):
87
80
  expected_failures = super().django_test_expected_failures
@@ -157,6 +150,8 @@ class DatabaseFeatures(PostgresDatabaseFeatures):
157
150
  'bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields',
158
151
  'many_to_one.tests.ManyToOneTests.test_add_remove_set_by_pk_raises',
159
152
  'many_to_one.tests.ManyToOneTests.test_fk_to_smallautofield',
153
+ 'many_to_one.tests.ManyToOneTests.test_get_prefetch_queryset_reverse_warning',
154
+ 'many_to_one.tests.ManyToOneTests.test_get_prefetch_querysets_reverse_invalid_querysets_length',
160
155
  'migrations.test_operations.OperationTests.test_smallfield_autofield_foreignfield_growth',
161
156
  'migrations.test_operations.OperationTests.test_smallfield_bigautofield_foreignfield_growth',
162
157
  # unsupported comparison operator: <jsonb> > <string>:
@@ -191,6 +186,8 @@ class DatabaseFeatures(PostgresDatabaseFeatures):
191
186
  # of type decimal, found type float
192
187
  # https://github.com/cockroachdb/cockroach/issues/73587#issuecomment-988408190
193
188
  'aggregation.tests.AggregateTestCase.test_aggregation_default_using_decimal_from_database',
189
+ # ProgrammingError: VALUES types int and float cannot be matched
190
+ 'field_defaults.tests.DefaultTests.test_bulk_create_mixed_db_defaults_function',
194
191
  })
195
192
  if self.uses_server_side_binding:
196
193
  expected_failures.update({
@@ -232,6 +229,7 @@ class DatabaseFeatures(PostgresDatabaseFeatures):
232
229
  'queries.test_bulk_update.BulkUpdateTests.test_large_batch',
233
230
  'queries.test_bulk_update.BulkUpdateTests.test_updated_rows_when_passing_duplicates',
234
231
  'queries.test_q.QCheckTests.test_expression',
232
+ 'queries.test_qs_combinators.QuerySetSetOperationTests.test_union_multiple_models_with_values_list_and_annotations', # noqa
235
233
  # unsupported binary operator: <interval> / <decimal>
236
234
  'expressions.tests.FTimeDeltaTests.test_durationfield_multiply_divide',
237
235
  # InvalidParameterValue: unsupported binary operator: <int4> / <float>
@@ -1,6 +1,6 @@
1
1
  import time
2
+ from zoneinfo import ZoneInfo
2
3
 
3
- from django.db.backends.base.base import timezone_constructor
4
4
  from django.db.backends.postgresql.operations import (
5
5
  DatabaseOperations as PostgresDatabaseOperations,
6
6
  )
@@ -47,7 +47,7 @@ class DatabaseOperations(PostgresDatabaseOperations):
47
47
  """
48
48
  # getattr() guards against F() objects which don't have tzinfo.
49
49
  if value and getattr(value, 'tzinfo', '') is None and self.connection.timezone_name is not None:
50
- connection_timezone = timezone_constructor(self.connection.timezone_name)
50
+ connection_timezone = ZoneInfo(self.connection.timezone_name)
51
51
  value = value.replace(tzinfo=connection_timezone)
52
52
  return value
53
53
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-cockroachdb
3
- Version: 4.2
3
+ Version: 5.0
4
4
  Summary: Django backend for CockroachDB
5
5
  Home-page: https://github.com/cockroachdb/django-cockroachdb
6
6
  Maintainer: Cockroach Labs
@@ -11,15 +11,14 @@ Project-URL: Tracker, https://github.com/cockroachdb/django-cockroachdb/issues
11
11
  Platform: UNKNOWN
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Framework :: Django
14
- Classifier: Framework :: Django :: 4.2
14
+ Classifier: Framework :: Django :: 5.0
15
15
  Classifier: License :: OSI Approved :: Apache Software License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
19
  Classifier: Programming Language :: Python :: 3.10
22
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
23
22
  Requires-Python: >=3.8
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
@@ -47,9 +46,9 @@ production it is advised to use the package built from sources.
47
46
  ## Install and usage
48
47
 
49
48
  Use the version of django-cockroachdb that corresponds to your version of
50
- Django. For example, to get the latest compatible release for Django 4.2.x:
49
+ Django. For example, to get the latest compatible release for Django 5.0.x:
51
50
 
52
- `pip install django-cockroachdb==4.2.*`
51
+ `pip install django-cockroachdb==5.0.*`
53
52
 
54
53
  The minor release number of Django doesn't correspond to the minor release
55
54
  number of django-cockroachdb. Use the latest minor release of each.
@@ -118,7 +117,7 @@ By default, CockroachDB sends the version of django-cockroachdb that you're
118
117
  using back to Cockroach Labs. To disable this, set
119
118
  `DISABLE_COCKROACHDB_TELEMETRY = True` in your Django settings.
120
119
 
121
- ## Known issues and limitations in CockroachDB 22.2.x and earlier
120
+ ## Known issues and limitations in CockroachDB 23.1.x and earlier
122
121
 
123
122
  - CockroachDB [can't disable constraint checking](https://github.com/cockroachdb/cockroach/issues/19444),
124
123
  which means certain things in Django like forward references in fixtures
@@ -171,8 +170,4 @@ using back to Cockroach Labs. To disable this, set
171
170
  overlaps_below (&>|)](https://github.com/cockroachdb/cockroach/issues/57098)
172
171
  - [strictly_above (|>>), strictly_below (<<|)](https://github.com/cockroachdb/cockroach/issues/57095)
173
172
 
174
- ## Known issues and limitations in CockroachDB 22.1.x and earlier
175
-
176
- - `QuerySet.select_for_update(skip_locked=True)` isn't supported.
177
-
178
173
 
@@ -54,6 +54,7 @@ class DatabaseFeatures(CockroachFeatures, PostGISFeatures):
54
54
  # unknown function: st_3dextent()
55
55
  # https://github.com/cockroachdb/cockroach/issues/60864
56
56
  'gis_tests.geo3d.tests.Geo3DTest.test_extent',
57
+ 'gis_tests.geo3d.tests.Geo3DTest.test_extent3d_filter',
57
58
  # unknown signature: st_scale(geometry, decimal, decimal, decimal)
58
59
  # https://github.com/cockroachdb/cockroach/issues/49027
59
60
  'gis_tests.geo3d.tests.Geo3DFunctionsTests.test_scale',
@@ -11,15 +11,14 @@ long_description_content_type = text/markdown
11
11
  classifiers =
12
12
  Development Status :: 5 - Production/Stable
13
13
  Framework :: Django
14
- Framework :: Django :: 4.2
14
+ Framework :: Django :: 5.0
15
15
  License :: OSI Approved :: Apache Software License
16
16
  Operating System :: OS Independent
17
17
  Programming Language :: Python
18
18
  Programming Language :: Python :: 3
19
- Programming Language :: Python :: 3.8
20
- Programming Language :: Python :: 3.9
21
19
  Programming Language :: Python :: 3.10
22
20
  Programming Language :: Python :: 3.11
21
+ Programming Language :: Python :: 3.12
23
22
  project_urls =
24
23
  Source = https://github.com/cockroachdb/django-cockroachdb
25
24
  Tracker = https://github.com/cockroachdb/django-cockroachdb/issues
@@ -1,5 +0,0 @@
1
- # Changelog
2
-
3
- ## 4.2 - 2023-04-06
4
-
5
- Initial release for Django 4.2.x and CockroachDB 22.1.x and 22.2.x.