Skip to content

Commit d8b6e01

Browse files
committed
PYTHON-2833 MongoDB 3.6 is the minimum supported version
This change drops support for server versions older than 3.6. If you still need support for older server versions the 3.x branch of PyMongo will receive bug fixes for at least a year after the release of PyMongo 4.0.
1 parent 64ae5c6 commit d8b6e01

File tree

4 files changed

+8
-166
lines changed

4 files changed

+8
-166
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -968,114 +968,6 @@ tasks:
968968
TOPOLOGY: "server"
969969
- func: "run doctests"
970970

971-
- name: "test-2.6-standalone"
972-
tags: ["2.6", "standalone"]
973-
commands:
974-
- func: "bootstrap mongo-orchestration"
975-
vars:
976-
VERSION: "2.6"
977-
TOPOLOGY: "server"
978-
- func: "run tests"
979-
980-
- name: "test-2.6-replica_set"
981-
tags: ["2.6", "replica_set"]
982-
commands:
983-
- func: "bootstrap mongo-orchestration"
984-
vars:
985-
VERSION: "2.6"
986-
TOPOLOGY: "replica_set"
987-
- func: "run tests"
988-
989-
- name: "test-2.6-sharded_cluster"
990-
tags: ["2.6", "sharded_cluster"]
991-
commands:
992-
- func: "bootstrap mongo-orchestration"
993-
vars:
994-
VERSION: "2.6"
995-
TOPOLOGY: "sharded_cluster"
996-
- func: "run tests"
997-
998-
- name: "test-3.0-standalone"
999-
tags: ["3.0", "standalone"]
1000-
commands:
1001-
- func: "bootstrap mongo-orchestration"
1002-
vars:
1003-
VERSION: "3.0"
1004-
TOPOLOGY: "server"
1005-
- func: "run tests"
1006-
1007-
- name: "test-3.0-replica_set"
1008-
tags: ["3.0", "replica_set"]
1009-
commands:
1010-
- func: "bootstrap mongo-orchestration"
1011-
vars:
1012-
VERSION: "3.0"
1013-
TOPOLOGY: "replica_set"
1014-
- func: "run tests"
1015-
1016-
- name: "test-3.0-sharded_cluster"
1017-
tags: ["3.0", "sharded_cluster"]
1018-
commands:
1019-
- func: "bootstrap mongo-orchestration"
1020-
vars:
1021-
VERSION: "3.0"
1022-
TOPOLOGY: "sharded_cluster"
1023-
- func: "run tests"
1024-
1025-
- name: "test-3.2-standalone"
1026-
tags: ["3.2", "standalone"]
1027-
commands:
1028-
- func: "bootstrap mongo-orchestration"
1029-
vars:
1030-
VERSION: "3.2"
1031-
TOPOLOGY: "server"
1032-
- func: "run tests"
1033-
1034-
- name: "test-3.2-replica_set"
1035-
tags: ["3.2", "replica_set"]
1036-
commands:
1037-
- func: "bootstrap mongo-orchestration"
1038-
vars:
1039-
VERSION: "3.2"
1040-
TOPOLOGY: "replica_set"
1041-
- func: "run tests"
1042-
1043-
- name: "test-3.2-sharded_cluster"
1044-
tags: ["3.2", "sharded_cluster"]
1045-
commands:
1046-
- func: "bootstrap mongo-orchestration"
1047-
vars:
1048-
VERSION: "3.2"
1049-
TOPOLOGY: "sharded_cluster"
1050-
- func: "run tests"
1051-
1052-
- name: "test-3.4-standalone"
1053-
tags: ["3.4", "standalone"]
1054-
commands:
1055-
- func: "bootstrap mongo-orchestration"
1056-
vars:
1057-
VERSION: "3.4"
1058-
TOPOLOGY: "server"
1059-
- func: "run tests"
1060-
1061-
- name: "test-3.4-replica_set"
1062-
tags: ["3.4", "replica_set"]
1063-
commands:
1064-
- func: "bootstrap mongo-orchestration"
1065-
vars:
1066-
VERSION: "3.4"
1067-
TOPOLOGY: "replica_set"
1068-
- func: "run tests"
1069-
1070-
- name: "test-3.4-sharded_cluster"
1071-
tags: ["3.4", "sharded_cluster"]
1072-
commands:
1073-
- func: "bootstrap mongo-orchestration"
1074-
vars:
1075-
VERSION: "3.4"
1076-
TOPOLOGY: "sharded_cluster"
1077-
- func: "run tests"
1078-
1079971
- name: "test-3.6-standalone"
1080972
tags: ["3.6", "standalone"]
1081973
commands:
@@ -1843,22 +1735,6 @@ axes:
18431735
- id: mongodb-version
18441736
display_name: "MongoDB"
18451737
values:
1846-
- id: "2.6"
1847-
display_name: "MongoDB 2.6"
1848-
variables:
1849-
VERSION: "2.6"
1850-
- id: "3.0"
1851-
display_name: "MongoDB 3.0"
1852-
variables:
1853-
VERSION: "3.0"
1854-
- id: "3.2"
1855-
display_name: "MongoDB 3.2"
1856-
variables:
1857-
VERSION: "3.2"
1858-
- id: "3.4"
1859-
display_name: "MongoDB 3.4"
1860-
variables:
1861-
VERSION: "3.4"
18621738
- id: "3.6"
18631739
display_name: "MongoDB 3.6"
18641740
variables:
@@ -2018,10 +1894,6 @@ axes:
20181894
display_name: MMAPv1
20191895
variables:
20201896
STORAGE_ENGINE: "mmapv1"
2021-
- id: wiredtiger
2022-
display_name: WiredTiger
2023-
variables:
2024-
STORAGE_ENGINE: "wiredtiger"
20251897
- id: inmemory
20261898
display_name: InMemory
20271899
variables:
@@ -2123,10 +1995,6 @@ buildvariants:
21231995
- ".4.2"
21241996
- ".4.0"
21251997
- ".3.6"
2126-
- ".3.4"
2127-
- ".3.2"
2128-
- ".3.0"
2129-
- ".2.6"
21301998

21311999
- matrix_name: "tests-all-encryption"
21322000
matrix_spec:
@@ -2142,7 +2010,6 @@ buildvariants:
21422010
- ".4.4"
21432011
- ".4.2"
21442012
- ".4.0"
2145-
- ".2.6"
21462013

21472014
- matrix_name: "tests-archlinux"
21482015
matrix_spec:
@@ -2156,10 +2023,6 @@ buildvariants:
21562023
tasks:
21572024
- ".4.0"
21582025
- ".3.6"
2159-
- ".3.4"
2160-
- ".3.2"
2161-
- ".3.0"
2162-
- ".2.6"
21632026

21642027
- matrix_name: "test-macos"
21652028
matrix_spec:
@@ -2182,17 +2045,6 @@ buildvariants:
21822045
- ".4.2"
21832046
- ".4.0"
21842047
- ".3.6"
2185-
- ".3.4"
2186-
- ".3.2"
2187-
rules:
2188-
- if:
2189-
platform: macos-1014
2190-
auth: "*"
2191-
ssl: "nossl"
2192-
then:
2193-
add_tasks:
2194-
- ".3.0"
2195-
- ".2.6"
21962048

21972049
- matrix_name: "test-macos-encryption"
21982050
matrix_spec:
@@ -2252,7 +2104,7 @@ buildvariants:
22522104
pyopenssl: "*"
22532105
display_name: "PyOpenSSL ${platform} ${python-version} ${auth}"
22542106
tasks:
2255-
- '.replica_set !.2.6 !.3.0'
2107+
- '.replica_set'
22562108
# Test standalone and sharded only on 5.0 and later.
22572109
- '.5.0'
22582110

@@ -2265,7 +2117,7 @@ buildvariants:
22652117
pyopenssl: "*"
22662118
display_name: "PyOpenSSL ${platform} ${python-version} ${auth}"
22672119
tasks:
2268-
- '.replica_set !.2.6 !.3.0 !.3.2 !.3.4'
2120+
- '.replica_set'
22692121
# Test standalone and sharded only on 5.0 and later.
22702122
- '.5.0'
22712123

@@ -2277,7 +2129,7 @@ buildvariants:
22772129
pyopenssl: "*"
22782130
display_name: "PyOpenSSL ${platform} ${auth}"
22792131
tasks:
2280-
- '.replica_set !.2.6 !.3.0'
2132+
- '.replica_set'
22812133

22822134
- matrix_name: "tests-pyopenssl-windows"
22832135
matrix_spec:
@@ -2432,8 +2284,6 @@ buildvariants:
24322284
- "test-4.2-standalone"
24332285
- "test-4.0-standalone"
24342286
- "test-3.6-standalone"
2435-
- "test-3.4-standalone"
2436-
- "test-3.2-standalone"
24372287
- if:
24382288
# MongoDB 4.2 drops support for MMAPv1
24392289
platform: awslinux
@@ -2445,16 +2295,6 @@ buildvariants:
24452295
- "test-4.0-replica_set"
24462296
- "test-3.6-standalone"
24472297
- "test-3.6-replica_set"
2448-
- "test-3.4-standalone"
2449-
- "test-3.2-standalone"
2450-
- if:
2451-
# No need to test this on later server versions as it becomes the default
2452-
platform: awslinux
2453-
storage-engine: ["wiredtiger"]
2454-
python-version: "*"
2455-
then:
2456-
add_tasks:
2457-
- "test-3.0-standalone"
24582298

24592299
# enableTestCommands=0 tests on Amazon1 (x86_64) with Python 3.6.
24602300
- matrix_name: "test-disableTestCommands"

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ is a `gridfs
1717
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_
1818
implementation on top of ``pymongo``.
1919

20-
PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, 3.6, 4.0, 4.2, 4.4, and 5.0.
20+
PyMongo supports MongoDB 3.6, 4.0, 4.2, 4.4, and 5.0.
2121

2222
Support / Feedback
2323
==================

doc/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Changes in Version 4.0
66

77
.. warning:: PyMongo 4.0 drops support for Python 2.7, 3.4, and 3.5.
88

9+
.. warning:: PyMongo 4.0 drops support for MongoDB 2.6, 3.0, 3.2, and 3.4.
10+
911
PyMongo 4.0 brings a number of improvements as well as some backward breaking
1012
changes. For example, all APIs deprecated in PyMongo 3.X have been removed.
1113
Be sure to read the changes listed below and the :doc:`migrate-to-pymongo4`

pymongo/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
MAX_WRITE_BATCH_SIZE = 1000
4848

4949
# What this version of PyMongo supports.
50-
MIN_SUPPORTED_SERVER_VERSION = "2.6"
51-
MIN_SUPPORTED_WIRE_VERSION = 2
50+
MIN_SUPPORTED_SERVER_VERSION = "3.6"
51+
MIN_SUPPORTED_WIRE_VERSION = 6
5252
MAX_SUPPORTED_WIRE_VERSION = 13
5353

5454
# Frequency to call ismaster on servers, in seconds.

0 commit comments

Comments
 (0)