Julius Park
0fa86c8ee1
Removed directConnection workaround in SRV spec tests ( #727 )
2021-09-15 12:04:34 -07:00
Julius Park
e3771587c3
PYTHON-1949 CodecOptions and JSONOptions should have the same default value for tz_aware ( #720 )
2021-09-14 16:54:11 -07:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) ( #724 )
...
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Julius Park
3b8961a76e
PYTHON-2679 Auto discover replica sets by default ( #716 )
2021-09-14 14:00:13 -07:00
Bernie Hackett
b76c523a60
Make sure we use the correct pip
2021-09-14 13:15:35 -07:00
Bernie Hackett
f64c5aa940
PYTHON-2904 Further language modernization
2021-09-14 12:24:06 -07:00
Bernie Hackett
ad4315134c
PYTHON-2803 Get rid of most uses of 'master'
...
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Bernie Hackett
146179db53
PYTHON-2803 Eliminate the use of 'slave'
2021-09-13 12:47:24 -07:00
Bernie Hackett
992761568d
PYHON-2437 PYTHON-2873 venv improvements
2021-09-11 21:00:27 -07:00
Bernie Hackett
d8b6e01690
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.
2021-09-10 12:05:46 -07:00
Bernie Hackett
64ae5c6544
PYTHON-2898 Update Max Staleness spec tests
2021-09-10 12:05:46 -07:00
Shane Harvey
afa3997bb2
PYTHON-2680 Breaking changes to DBRef BSON+JSON decoding ( #722 )
...
Implement DBRef spec version 1.0 tests.
2021-09-10 11:03:25 -07:00
Shane Harvey
90d4c6f19f
PYTHON-2820 Test serialization of BSON with embedded null bytes in strings ( #723 )
2021-09-10 10:23:27 -07:00
Julius Park
7a4b617b5d
PYTHON-2883 Regex decoding error tests in top.json have unexpected, invalid syntax ( #721 )
2021-09-09 18:32:53 -07:00
Shane Harvey
fb38fbe35e
PYTHON-2046 Change default JSONMode and dumps output from LEGACY to RELAXED ( #711 )
2021-09-08 11:33:41 -07:00
Shane Harvey
d9e5666336
PYTHON-2875 Require hint with min/max queries ( #712 )
2021-09-08 11:32:14 -07:00
Julius Park
88e86f6f5a
PYTHON-2057 Make 'name' a required argument for DriverInfo class ( #718 )
2021-09-08 11:24:10 -07:00
Shane Harvey
6913738b0a
PYTHON-2808 Use Invoke-WebRequest instead certifi to workaround FLE test issue ( #714 )
2021-09-01 13:44:58 -04:00
Shane Harvey
2eb0df812c
PYTHON-2879 Fix get_ssl_context for CSFLE and ocsptest.py ( #713 )
2021-08-24 13:36:37 -04:00
henrifroese
fa9531b4bf
PYTHON-2824 Make GridOut implement full io.IOBase spec ( #677 )
...
Make GridOut inherit from io.IOBase to be a fully "file-like" object (https://docs.python.org/3/glossary.html#term-file-like-object ). Implement missing methods `readlines`, `writelines`,
`writable`, `fileno`, `flush`, `isatty`, `truncate`,
and property `closed`, following the spec
(https://docs.python.org/3/library/io.html#io.IOBase.writable ).
Iterating over GridOut previously returned chunks, but IOBase specifies
that lines should be returned. Thus, the `GridOutIterator` returning chunks is removed
and GridOut simply uses the existing IOBase iterator implementation (returning `self`
in `__iter__` and using `readline` in `__next__`).
Additionally, iterating over GridOut previously did not move the "file pointer" along, i.e.
`next(iter(some_grid_out_object))` always gave the same result (the first chunk of the file)
as it would create a new iterator starting at the top of the file. This is now fixed as well, so
a first call to `next(iter(some_grid_out_object))` gives the first line, and subsequent calls return
the subsequent lines.
2021-08-23 11:45:34 -04:00
Prashant Mital
9055bb09e6
PYTHON-2702 Remove deprecated URI options ( #710 )
2021-08-20 10:17:06 -07:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options ( #706 )
2021-08-19 14:58:31 -07:00
Shane Harvey
f9bfd11290
PYTHON-2870 Add support for man/text/latex/etc.. docs output ( #708 )
...
Regenerate sphinx makefile with sphinx-quickstart 3.5.4.
Remove problematic mongodoc sphinx extension.
2021-08-19 13:31:46 -07:00
Shane Harvey
69c69a6bfb
PYTHON-2862 Remove versionchanged info for PyMongo <3.0 ( #709 )
2021-08-19 10:39:26 -07:00
Shane Harvey
09aef81b4a
DRIVERS-1864 Resync SDAM spec tests ( #707 )
2021-08-17 14:53:11 -07:00
Prashant Mital
3c8b78348d
PYTHON-2866 Setting tlsDisableOCSPEndpointCheck=false must enable OCSP endpoint check
...
(cherry picked from commit fe1d19dea4 )
2021-08-16 12:18:12 -07:00
Shane Harvey
6a18027db8
PYTHON-2534 Avoid race in test_pool_paused_error_is_retryable ( #704 )
2021-08-16 10:27:37 -07:00
Shane Harvey
65aa7c86d5
PYTHON-2850 Remove map_reduce/inline_map_reduce ( #703 )
2021-08-12 09:44:52 -07:00
Shane Harvey
71a1656be0
PYTHON-2038 Remove pymongo.errors.CertificateError ( #705 )
2021-08-12 09:29:30 -07:00
Shane Harvey
10002fad1c
PYTHON-2857 Remove the socketKeepAlive option ( #702 )
2021-08-10 14:00:41 -07:00
Shane Harvey
e1b068d37a
PYTHON-2525 Remove Collection.count and Cursor.count ( #700 )
2021-08-10 13:52:29 -07:00
Shane Harvey
c663fb69cc
PYTHON-2856 Properly assert 0 events in snapshot reads tests ( #697 )
...
expectEvents must be non-empty if present.
2021-08-09 12:50:15 -07:00
Shane Harvey
e3a61b9ff7
PYTHON-1840 Remove waitQueueMultiple and ExceededMaxWaiters ( #699 )
2021-08-09 10:53:28 -07:00
Shane Harvey
be47e4ca14
PYTHON-2532 Remove modifiers option for find methods ( #696 )
2021-08-09 10:02:36 -07:00
Shane Harvey
5fd175c0d8
PYTHON-2529 Remove UUIDLegacy ( #698 )
2021-08-06 16:52:41 -07:00
Shane Harvey
369d175993
PYTHON-2430 Remove all helpers in the message module ( #695 )
2021-08-06 13:33:21 -07:00
Shane Harvey
9bc27c9c0b
PYTHON-2797 Update docs for 5.0 support
...
Add changelog entries for 3.11.2, 3.11.3, and 3.12.0.
2021-08-06 13:29:11 -07:00
Shane Harvey
93a042f2e8
PYTHON-2235 Remove pymongo.GEOHAYSTACK ( #694 )
2021-08-06 13:13:23 -07:00
Shane Harvey
edda903b5b
PYTHON-2711 Remove profile command helpers ( #693 )
2021-08-06 12:54:52 -07:00
Shane Harvey
3e02957998
PYTHON-2288 Finish removing IsMaster from docs
2021-08-06 12:33:26 -07:00
Shane Harvey
69dee51b90
PYTHON-1318 Remove initialize_unordered_bulk_op and initialize_ordered_bulk_op ( #692 )
...
PYTHON-2436 Unskip test_large_inserts_ordered on MongoDB 5.0.
2021-08-05 17:58:15 -07:00
Shane Harvey
a28b05bf24
PYTHON-1410 Remove "safe" legacy messages
2021-08-04 11:29:16 -07:00
Shane Harvey
3513ab72b0
PYTHON-2528 Remove Database.current_op
2021-08-04 11:14:50 -07:00
Shane Harvey
568205135e
PYTHON-2855 Update mock server filename for KMS testing
2021-08-04 10:35:37 -07:00
Shane Harvey
f541e7731c
PYTHON-2602 Test that pool paused errors are retryable ( #681 )
...
Allow client_knobs to be used as a decorator.
2021-07-30 17:56:01 -07:00
Shane Harvey
97a84e199e
PYTHON-2697 Fix races in various CMAP spec tests ( #685 )
2021-07-29 17:25:15 -07:00
Prashant Mital
f86b2c6bf8
PYTHON-2827 Versioned API migration example for ecosystem docs ( #687 )
2021-07-29 17:17:22 -07:00
Prashant Mital
f3486d7ad7
PYTHON-2842 Integration tests for observeSensitiveCommands field ( #684 )
2021-07-29 15:32:53 -07:00
Prashant Mital
3f8c104157
PYTHON-2288 Remove IsMaster ( #690 )
2021-07-29 10:32:51 -07:00
Prashant Mital
0209e4a4a4
PYTHON-2571 Remove NotMasterError ( #688 )
2021-07-28 16:01:32 -07:00