Hello community,

here is the log from the commit of package python-pymongo for openSUSE:Factory 
checked in at 2017-05-17 17:18:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymongo (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymongo.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymongo"

Wed May 17 17:18:16 2017 rev:23 rq:492315 version:3.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymongo/python-pymongo.changes    
2016-02-23 16:59:26.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-pymongo.new/python-pymongo.changes       
2017-05-17 17:18:26.248370293 +0200
@@ -1,0 +2,48 @@
+Wed Apr 26 15:36:48 UTC 2017 - [email protected]
+
+- Update to Version3.4
+  * Complete support for MongoDB 3.4
+  * Improved support for logging server discovery and monitoring events. See
+    :mod:`~pymongo.monitoring` for examples.
+  * Support for matching iPAddress subjectAltName values for TLS certificate
+    verification.
+  * TLS compression is now explicitly disabled when possible.
+  * The Server Name Indication (SNI) TLS extension is used when possible.
+  * Finer control over JSON encoding/decoding with
+    :class:`~bson.json_util.JSONOptions`.
+  * Allow :class:`~bson.code.Code` objects to have a scope of ``None``,
+    signifying no scope. Also allow encoding Code objects with an empty scope
+  (i.e. ``{}``).
+- Update to Version3.3
+  * C extensions support on big endian systems.
+  * Kerberos authentication support on Windows using `WinKerberos
+    <https://pypi.python.org/pypi/winkerberos>`_.
+  * A new ``ssl_clrfile`` option to support certificate revocation lists.
+  * A new ``ssl_pem_passphrase`` option to support encrypted key files.
+  * Support for publishing server discovery and monitoring events. See
+    :mod:`~pymongo.monitoring` for details.
+  * New connection pool options ``minPoolSize`` and ``maxIdleTimeMS``.
+  * New ``heartbeatFrequencyMS`` option controls the rate at which background
+    monitoring threads re-check servers. Default is once every 10 seconds.
+- Update to Version3.2.2
+  * Version 3.2.2 fixes a few issues reported since the release of 3.2.1, 
including
+    a fix for using the `connect` option in the MongoDB URI and support for 
setting
+    the batch size for a query to 1 when using MongoDB 3.2+.
+    Changes in Version 3.2.1
+  * Version 3.2.1 fixes a few issues reported since the release of 3.2, 
including
+     running the mapreduce command twice when calling the
+    :meth:`~pymongo.collection.Collection.inline_map_reduce` method and a
+    :exc:`TypeError` being raised when calling
+    :meth:`~gridfs.GridFSBucket.download_to_stream`. This release also
+    improves error messaging around BSON decoding.
+- Update to Version3.2
+  + Version 3.2 implements the new server features introduced in MongoDB 3.2.
+  + Highlights include:
+    - Full support for MongoDB 3.2
+    - Support for reading and writing raw BSON with
+      :class:`~bson.raw_bson.RawBSONDocument`
+- Add tests_should_pass_without_MongoDB_running.patch
+- Fix source URL
+- Implement single-spec version
+
+-------------------------------------------------------------------

Old:
----
  pymongo-3.1.1.tar.gz

New:
----
  pymongo-3.4.0.tar.gz
  tests_should_pass_without_MongoDB_running.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pymongo.spec ++++++
--- /var/tmp/diff_new_pack.fAwA8j/_old  2017-05-17 17:18:27.184238319 +0200
+++ /var/tmp/diff_new_pack.fAwA8j/_new  2017-05-17 17:18:27.188237754 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pymongo
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,26 @@
 #
 
 
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pymongo
-Version:        3.1.1
+Version:        3.4.0
 Release:        0
 Url:            http://github.com/mongodb/mongo-python-driver
 Summary:        Python driver for MongoDB
 License:        Apache-2.0
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
+# PATCH-FIX-UPSTREAm -- tests_should_pass_without_MongoDB_running.patch -- 
https://jira.mongodb.org/browse/PYTHON-1216
+Patch0:         tests_should_pass_without_MongoDB_running.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRequires:  python-unittest2
-%if 0%{?suse_version}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 Suggests:       mongodb
-%endif
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%endif
+%python_subpackages
 
 %description
 The PyMongo distribution contains tools for interacting with MongoDB
@@ -44,17 +46,27 @@
 
 %prep
 %setup -q -n pymongo-%{version}
+%patch0 -p1
 
 %build
-CFLAGS="%{optflags}" python setup.py build
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
+%ifarch %{ix86} x86_64 %{arm} aarch64 ppc64le
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%else
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%if %{with tests}
 %check
-python setup.py test
+%python_exec setup.py test
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE README.rst
 %ifarch %{ix86} x86_64 %{arm} aarch64 ppc64le

++++++ pymongo-3.1.1.tar.gz -> pymongo-3.4.0.tar.gz ++++++
++++ 47283 lines of diff (skipped)

++++++ tests_should_pass_without_MongoDB_running.patch ++++++
>From 6142f761e7ad7807eba0c5fcdbad78bfe364b01a Mon Sep 17 00:00:00 2001
From: Shane Harvey <[email protected]>
Date: Mon, 23 Jan 2017 13:59:01 -0800
Subject: [PATCH] PYTHON-1216 Tests should pass without MongoDB running

---
 test/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/__init__.py b/test/__init__.py
index be0eea8..d012334 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -259,6 +259,8 @@ def pair(self):
 
     @property
     def has_secondaries(self):
+        if not self.client:
+            return False
         return bool(len(self.client.secondaries))
 
     def _check_user_provided(self):
@@ -375,7 +377,7 @@ def require_secondaries_count(self, count):
         """Run a test only if the client is connected to a replica set that has
         `count` secondaries.
         """
-        sec_count = len(self.client.secondaries)
+        sec_count = 0 if not self.client else len(self.client.secondaries)
         return self._require(sec_count >= count,
                              "Need %d secondaries, %d available"
                              % (count, sec_count))

Reply via email to