forked from pool/python-pymongo
Accepting request 491272 from home:TheBlackCat:branches:devel:languages:python
- Update to Version3.4 - Implement single-spec version - Fix source URL. OBS-URL: https://build.opensuse.org/request/show/491272 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=47
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:98f550d27481cb841c0f5de023df644e7a3beb235b8a22a091e6dafd39c6a82a
|
||||
size 462020
|
3
pymongo-3.4.0.tar.gz
Normal file
3
pymongo-3.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d359349c6c9ff9f482805f89e66e476846317dc7b1eea979d7da9c0857ee2721
|
||||
size 583303
|
@@ -1,3 +1,51 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 26 15:36:48 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 18 13:24:49 UTC 2016 - eshmarnev@suse.com
|
||||
|
||||
|
@@ -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 @@ implementation on top of pymongo.
|
||||
|
||||
%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
|
||||
|
31
tests_should_pass_without_MongoDB_running.patch
Normal file
31
tests_should_pass_without_MongoDB_running.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From 6142f761e7ad7807eba0c5fcdbad78bfe364b01a Mon Sep 17 00:00:00 2001
|
||||
From: Shane Harvey <shane.harvey@mongodb.com>
|
||||
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))
|
Reference in New Issue
Block a user