Skip to content

Commit b50358d

Browse files
authored
PYTHON-3499 Changelog for 3.13 (#1102)
1 parent b6982e8 commit b50358d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

doc/changelog.rst

+11-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Changelog
44
Changes in Version 3.13.0
55
-------------------------
66

7+
Version 3.13 provides an upgrade path to PyMongo 4.x. Most of the API changes
8+
from PyMongo 4.0 have been backported in a backward compatible way, allowing
9+
applications to be written against PyMongo >= 3.13, rather then PyMongo 3.x or
10+
PyMongo 4.x. See the `PyMongo 4 Migration Guide`_ for detailed examples.
11+
712
Notable improvements
813
....................
914
- Added :attr:`pymongo.mongo_client.MongoClient.options` for read-only access
@@ -43,11 +48,11 @@ Deprecations
4348
- Deprecated :attr:`pymongo.mongo_client.MongoClient.retry_reads`.
4449
Use :attr:`~pymongo.mongo_client.options.retry_reads` instead.
4550
- Deprecated :attr:`pymongo.mongo_client.MongoClient.max_bson_size`,
46-
:attr:`pymongo.mongo_client.MongoClient.max_message_size`, and
47-
:attr:`pymongo.mongo_client.MongoClient.max_write_batch_size`. These helpers
48-
were incorrect when in ``loadBalanced=true mode`` and ambiguous in clusters
49-
with mixed versions. Use the `hello command`_ to get the authoritative
50-
value from the remote server instead. Code like this::
51+
:attr:`pymongo.mongo_client.MongoClient.max_message_size`, and
52+
:attr:`pymongo.mongo_client.MongoClient.max_write_batch_size`. These helpers
53+
were incorrect when in ``loadBalanced=true mode`` and ambiguous in clusters
54+
with mixed versions. Use the `hello command`_ to get the authoritative
55+
value from the remote server instead. Code like this::
5156

5257
max_bson_size = client.max_bson_size
5358
max_message_size = client.max_message_size
@@ -65,6 +70,7 @@ can be changed to this::
6570
See the `PyMongo 3.13.0 release notes in JIRA`_ for the list of resolved issues
6671
in this release.
6772

73+
.. _PyMongo 4 Migration Guide: https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html
6874
.. _PYTHON-3222: https://jira.mongodb.org/browse/PYTHON-3222
6975
.. _PyMongo 3.13.0 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=31570
7076

pymongo/collection.py

-2
Original file line numberDiff line numberDiff line change
@@ -2053,8 +2053,6 @@ def count(self, filter=None, session=None, **kwargs):
20532053
20542054
.. _$expr: https://docs.mongodb.com/manual/reference/operator/query/expr/
20552055
.. _$geoWithin: https://docs.mongodb.com/manual/reference/operator/query/geoWithin/
2056-
.. _$center: https://docs.mongodb.com/manual/reference/operator/query/center/#op._S_center
2057-
.. _$centerSphere: https://docs.mongodb.com/manual/reference/operator/query/centerSphere/#op._S_centerSphere
20582056
"""
20592057
warnings.warn(
20602058
"count is deprecated. Use estimated_document_count or "

pymongo/mongo_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,7 @@ def max_pool_size(self):
11571157
def min_pool_size(self):
11581158
"""**DEPRECATED**: The minimum required number of concurrent connections that the pool
11591159
will maintain to each connected server. Default is 0.
1160+
11601161
.. versionchanged:: 3.13
11611162
Deprecated.
11621163
"""

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def output_difference(self, example, got, optionflags):
200200
except:
201201
pass
202202

203-
sphinx_args = ["-E", "-b", mode, "doc", path]
203+
sphinx_args = ["-E", "-b", mode, "doc", path, "-W"]
204204

205205
# sphinx.main calls sys.exit when sphinx.build_main exists.
206206
# Call build_main directly so we can check status and print

0 commit comments

Comments
 (0)