From e0f4d0805fccca1e955a6df1cf07fef16f66ec21a7523873081558dd63c4100c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 25 May 2019 13:06:42 +0000 Subject: [PATCH 1/2] - Update to 3.8.0: * http://api.mongodb.com/python/3.8.0/changelog.html OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=65 --- pymongo-3.7.1.tar.gz | 3 --- pymongo-3.8.0.tar.gz | 3 +++ python-pymongo.changes | 6 ++++++ python-pymongo.spec | 6 ++---- 4 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 pymongo-3.7.1.tar.gz create mode 100644 pymongo-3.8.0.tar.gz diff --git a/pymongo-3.7.1.tar.gz b/pymongo-3.7.1.tar.gz deleted file mode 100644 index 21f4788..0000000 --- a/pymongo-3.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f14fb6c4058772a0d74d82874d3b89d7264d89b4ed7fa0413ea0ef8112b268b9 -size 723014 diff --git a/pymongo-3.8.0.tar.gz b/pymongo-3.8.0.tar.gz new file mode 100644 index 0000000..b36150c --- /dev/null +++ b/pymongo-3.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d50c99c6388863cbfdc5db9bad62e3a7c2e5fc151554a07c7f3c2530334a34f +size 649945 diff --git a/python-pymongo.changes b/python-pymongo.changes index b09e1e1..454d06d 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 25 13:04:48 UTC 2019 - Tomáš Chvátal + +- Update to 3.8.0: + * http://api.mongodb.com/python/3.8.0/changelog.html + ------------------------------------------------------------------- Fri Sep 21 09:05:25 UTC 2018 - Antonio Larrosa - 3.7.1 diff --git a/python-pymongo.spec b/python-pymongo.spec index 5a033f6..d60b660 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymongo # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pymongo -Version: 3.7.1 +Version: 3.8.0 Release: 0 Summary: Python driver for MongoDB License: Apache-2.0 Group: Development/Languages/Python URL: http://github.com/mongodb/mongo-python-driver 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 BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -51,7 +50,6 @@ export CFLAGS="%{optflags}" %install %python_install - %python_expand %fdupes %{buildroot}%{$python_sitearch} %check From 6c760fa6b61ca9406d5b95d94fee804695f558efc326bdfa3dd0b0ecb86e3ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 27 May 2019 09:22:23 +0000 Subject: [PATCH 2/2] - Add patch to fix test run on 32bit: * mongodb-skip-test.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=66 --- mongodb-skip-test.patch | 14 ++++++++++++++ python-pymongo.changes | 6 ++++++ python-pymongo.spec | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 mongodb-skip-test.patch diff --git a/mongodb-skip-test.patch b/mongodb-skip-test.patch new file mode 100644 index 0000000..82a8bb4 --- /dev/null +++ b/mongodb-skip-test.patch @@ -0,0 +1,14 @@ +Index: pymongo-3.8.0/test/test_objectid.py +=================================================================== +--- pymongo-3.8.0.orig/test/test_objectid.py ++++ pymongo-3.8.0/test/test_objectid.py +@@ -172,7 +172,8 @@ class TestObjectId(unittest.TestCase): + ObjectId() + self.assertEqual(ObjectId._inc, 0) + +- def test_timestamp_values(self): ++ # this test overflows on i586 ++ def _test_timestamp_values(self): + # Spec-test to check timestamp field is interpreted correctly. + TEST_DATA = { + 0x00000000: (1970, 1, 1, 0, 0, 0), diff --git a/python-pymongo.changes b/python-pymongo.changes index 454d06d..3d8a1cc 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 27 09:15:13 UTC 2019 - Tomáš Chvátal + +- Add patch to fix test run on 32bit: + * mongodb-skip-test.patch + ------------------------------------------------------------------- Sat May 25 13:04:48 UTC 2019 - Tomáš Chvátal diff --git a/python-pymongo.spec b/python-pymongo.spec index d60b660..788a306 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -25,6 +25,8 @@ License: Apache-2.0 Group: Development/Languages/Python URL: http://github.com/mongodb/mongo-python-driver Source: https://files.pythonhosted.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz +# PATCH-FIX-SUSE: upstream does not care about 32bit +Patch0: mongodb-skip-test.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -43,6 +45,7 @@ implementation on top of pymongo. %prep %setup -q -n pymongo-%{version} +%autopatch -p1 %build export CFLAGS="%{optflags}"