Skip to content

Commit 3617b5c

Browse files
authored
PYTHON-4507 pip>=21.3 is required for editable installs (mongodb#1712)
1 parent ffa6555 commit 3617b5c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

doc/changelog.rst

+10-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,20 @@ PyMongo 4.8 brings a number of improvements including:
2626

2727
- The handshake metadata for "os.name" on Windows has been simplified to "Windows" to improve import time.
2828
- The repr of ``bson.binary.Binary`` is now redacted when the subtype is SENSITIVE_SUBTYPE(8).
29+
- Secure Software Development Life Cycle automation for release process.
30+
GitHub Releases now include a Software Bill of Materials, and signature
31+
files corresponding to the distribution files released on PyPI.
32+
- Fixed a bug in change streams where both ``startAtOperationTime`` and ``resumeToken``
33+
could be added to a retry attempt, which caused the retry to fail.
34+
- Fallback to stdlib ``ssl`` module when ``pyopenssl`` import fails with AttributeError.
35+
- Improved performance of MongoClient operations, especially when many operations are being run concurrently.
2936

3037
Unavoidable breaking changes
3138
............................
3239

33-
- Since we are now using ``hatch`` as our build backend, we no longer have a ``setup.py`` file
34-
and require installation using ``pip``.
40+
- Since we are now using ``hatch`` as our build backend, we no longer have a usable ``setup.py`` file
41+
and require installation using ``pip``. Attempts to invoke the ``setup.py`` file will raise an exception.
42+
Additionally, ``pip`` >= 21.3 is now required for editable installs.
3543

3644
Issues Resolved
3745
...............

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from __future__ import annotations
22

3-
msg = "PyMongo>=4.8 no longer supports building via setup.py, use python -m pip install <path/to/pymongo> instead"
3+
msg = (
4+
"PyMongo>=4.8 no longer supports building via setup.py, use python -m pip install <path/to/pymongo> instead. If "
5+
"this is an editable install (-e) please upgrade to pip>=21.3 first: python -m pip install --upgrade pip"
6+
)
47

58
raise RuntimeError(msg)

0 commit comments

Comments
 (0)