commit
9b41b25fde
@ -1,14 +1,13 @@
|
||||
diff --git a/pymongo/pool.py b/pymongo/pool.py
|
||||
index 859d0e0..f55fd8e 100644
|
||||
index 9aed758..be87816 100644
|
||||
--- a/pymongo/pool.py
|
||||
+++ b/pymongo/pool.py
|
||||
@@ -49,8 +49,7 @@ from pymongo.network import (command,
|
||||
SocketChecker)
|
||||
from pymongo.read_preferences import ReadPreference
|
||||
@@ -61,7 +61,7 @@ from pymongo.read_preferences import ReadPreference
|
||||
from pymongo.server_type import SERVER_TYPE
|
||||
-# Always use our backport so we always have support for IP address matching
|
||||
-from pymongo.ssl_match_hostname import match_hostname, CertificateError
|
||||
+from ssl import match_hostname, CertificateError
|
||||
from pymongo.socket_checker import SocketChecker
|
||||
# Always use our backport so we always have support for IP address matching
|
||||
-from pymongo.ssl_match_hostname import match_hostname
|
||||
+from ssl import match_hostname
|
||||
|
||||
# For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are
|
||||
# not permitted for SNI hostname.
|
||||
|
||||
BIN
3.9.0.tar.gz
BIN
3.9.0.tar.gz
Binary file not shown.
BIN
pymongo-3.11.3.tar.gz
Normal file
BIN
pymongo-3.11.3.tar.gz
Normal file
Binary file not shown.
@ -1,10 +1,10 @@
|
||||
Name: python-pymongo
|
||||
Version: 3.9.0
|
||||
Release: 5
|
||||
Version: 3.11.3
|
||||
Release: 1
|
||||
License: Apache License 2.0
|
||||
Summary: PyMongo - the Python driver for MongoDB
|
||||
URL: https://github.com/mongodb/mongo-python-driver
|
||||
Source0: https://github.com/mongodb/mongo-python-driver/archive/%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/72/82/e7196f2f69318dd206db26db68fcfa0ff821d88fbca6d0f0c7b678ba0353/pymongo-3.11.3.tar.gz
|
||||
Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
|
||||
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
@ -46,25 +46,23 @@ BuildArch: noarch
|
||||
Summary: Development documents for python-pymongo
|
||||
|
||||
%description help
|
||||
%{summary}.
|
||||
The PyMongo distribution contains tools for interacting with MongoDB database from Python.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n mongo-python-driver-%{version} -p1
|
||||
%autosetup -n pymongo-3.11.3 -p1
|
||||
rm pymongo/ssl_match_hostname.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
pushd doc
|
||||
make %{?_smp_mflags} html
|
||||
popd
|
||||
PYTHONPATH=${PYTHONPATH}:/usr/local/lib64/python3.8/site-packages:/usr/local/lib/python3.8/site-packages %{__python3} setup.py doc
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
cp -arf doc/_build/html/* %{buildroot}/%{_pkgdocdir}
|
||||
cp -arf doc/_build/%{version}/* %{buildroot}/%{_pkgdocdir}
|
||||
|
||||
%check
|
||||
python3 setup.py test
|
||||
@ -87,6 +85,9 @@ python3 setup.py test
|
||||
%{_pkgdocdir}
|
||||
|
||||
%changelog
|
||||
* Fri Aug 06 2021 OpenStack_SIG <openstack@openeuler.org> - 3.11.3-1
|
||||
- Update version to 3.11.3
|
||||
|
||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 3.9.0-5
|
||||
- Completing build dependencies
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user