Skip to content

Commit ce390e8

Browse files
committed
INTPYTHON-844 Drop support for MongoDB 6.0
1 parent 9c186c3 commit ce390e8

File tree

5 files changed

+10
-20
lines changed

5 files changed

+10
-20
lines changed

.evergreen/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ tasks:
6868
- func: "run unit tests"
6969

7070
buildvariants:
71-
- name: tests-6-noauth-nossl
72-
display_name: Run Tests 6.0 NoAuth NoSSL
71+
- name: tests-7-noauth-nossl
72+
display_name: Run Tests 7.0 NoAuth NoSSL
7373
run_on: rhel87-small
7474
expansions:
75-
MONGODB_VERSION: "6.0"
75+
MONGODB_VERSION: "7.0"
7676
TOPOLOGY: server
7777
AUTH: "noauth"
7878
SSL: "nossl"
7979
tasks:
8080
- name: run-tests
8181

82-
- name: tests-6-auth-ssl
83-
display_name: Run Tests 6.0 Auth SSL
82+
- name: tests-7-auth-ssl
83+
display_name: Run Tests 7.0 Auth SSL
8484
run_on: rhel87-small
8585
expansions:
86-
MONGODB_VERSION: "6.0"
86+
MONGODB_VERSION: "7.0"
8787
TOPOLOGY: server
8888
AUTH: "auth"
8989
SSL: "ssl"

.github/workflows/test-python-geo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Start MongoDB
5454
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # 1.12.1
5555
with:
56-
mongodb-version: 6.0
56+
mongodb-version: 7.0
5757
- name: Run tests
5858
run: python3 django_repo/tests/runtests_.py
5959
permissions:

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Start MongoDB
5353
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # 1.12.1
5454
with:
55-
mongodb-version: 6.0
55+
mongodb-version: 7.0
5656
- name: Run tests
5757
run: python3 django_repo/tests/runtests_.py
5858
permissions:

django_mongodb_backend/features.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class GISFeatures:
1212

1313

1414
class DatabaseFeatures(GISFeatures, BaseDatabaseFeatures):
15-
minimum_database_version = (6, 0)
15+
minimum_database_version = (7, 0)
1616
allow_sliced_subqueries_with_in = False
1717
allows_multiple_constraints_on_same_fields = False
1818
can_create_inline_fk = False
@@ -107,22 +107,11 @@ class DatabaseFeatures(GISFeatures, BaseDatabaseFeatures):
107107
"contenttypes_tests.test_order_with_respect_to.OrderWithRespectToGFKTests.test_bulk_create_respects_mixed_manual_order",
108108
"contenttypes_tests.test_order_with_respect_to.OrderWithRespectToGFKTests.test_bulk_create_with_existing_children",
109109
}
110-
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
111-
_django_test_expected_failures_bitwise = {
112-
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_and",
113-
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_or",
114-
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor",
115-
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor_null",
116-
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor_right_null",
117-
"expressions.tests.ExpressionOperatorTests.test_lefthand_transformed_field_bitwise_or",
118-
}
119110

120111
@cached_property
121112
def django_test_expected_failures(self):
122113
expected_failures = super().django_test_expected_failures
123114
expected_failures.update(self._django_test_expected_failures)
124-
if not self.is_mongodb_6_3:
125-
expected_failures.update(self._django_test_expected_failures_bitwise)
126115
return expected_failures
127116

128117
_django_test_skips = {

docs/releases/6.0.x.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ Backwards incompatible changes
1818

1919
- ``django_mongodb_backend.utils.parse_uri()`` is removed as per the
2020
:ref:`deprecation timeline <parse-uri-deprecation>`.
21+
- The minimum supported version of MongoDB is increased from 6.0 to 7.0.

0 commit comments

Comments
 (0)