update version to 3.11.3

This commit is contained in:
FFrog 2021-08-19 10:51:06 +08:00
parent 3948555110
commit 6d1c251c18
4 changed files with 16 additions and 16 deletions

View File

@ -1,14 +1,13 @@
diff --git a/pymongo/pool.py b/pymongo/pool.py diff --git a/pymongo/pool.py b/pymongo/pool.py
index 859d0e0..f55fd8e 100644 index 9aed758..be87816 100644
--- a/pymongo/pool.py --- a/pymongo/pool.py
+++ b/pymongo/pool.py +++ b/pymongo/pool.py
@@ -49,8 +49,7 @@ from pymongo.network import (command, @@ -61,7 +61,7 @@ from pymongo.read_preferences import ReadPreference
SocketChecker)
from pymongo.read_preferences import ReadPreference
from pymongo.server_type import SERVER_TYPE from pymongo.server_type import SERVER_TYPE
-# Always use our backport so we always have support for IP address matching from pymongo.socket_checker import SocketChecker
-from pymongo.ssl_match_hostname import match_hostname, CertificateError # Always use our backport so we always have support for IP address matching
+from ssl import match_hostname, CertificateError -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 # For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are
# not permitted for SNI hostname. # not permitted for SNI hostname.

Binary file not shown.

BIN
pymongo-3.11.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: python-pymongo Name: python-pymongo
Version: 3.9.0 Version: 3.11.3
Release: 5 Release: 1
License: Apache License 2.0 License: Apache License 2.0
Summary: PyMongo - the Python driver for MongoDB Summary: PyMongo - the Python driver for MongoDB
URL: https://github.com/mongodb/mongo-python-driver 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 Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -46,25 +46,23 @@ BuildArch: noarch
Summary: Development documents for python-pymongo Summary: Development documents for python-pymongo
%description help %description help
%{summary}. The PyMongo distribution contains tools for interacting with MongoDB database from Python.
%prep %prep
%autosetup -n mongo-python-driver-%{version} -p1 %autosetup -n pymongo-3.11.3 -p1
rm pymongo/ssl_match_hostname.py rm pymongo/ssl_match_hostname.py
%build %build
%py3_build %py3_build
pushd doc PYTHONPATH=${PYTHONPATH}:/usr/local/lib64/python3.8/site-packages:/usr/local/lib/python3.8/site-packages %{__python3} setup.py doc
make %{?_smp_mflags} html
popd
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
cp -arf doc/_build/html/* %{buildroot}/%{_pkgdocdir} cp -arf doc/_build/%{version}/* %{buildroot}/%{_pkgdocdir}
%check %check
python3 setup.py test python3 setup.py test
@ -87,6 +85,9 @@ python3 setup.py test
%{_pkgdocdir} %{_pkgdocdir}
%changelog %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 * Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 3.9.0-5
- Completing build dependencies - Completing build dependencies