Hello community,

here is the log from the commit of package python-Ming for openSUSE:Factory 
checked in at 2019-07-26 17:33:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Ming (Old)
 and      /work/SRC/openSUSE:Factory/.python-Ming.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Ming"

Fri Jul 26 17:33:57 2019 rev:10 rq:718793 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Ming/python-Ming.changes  2015-04-13 
20:31:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-Ming.new.4126/python-Ming.changes        
2019-07-26 17:34:00.248094862 +0200
@@ -1,0 +2,14 @@
+Fri Jul 26 08:39:34 UTC 2019 - Marketa Calabkova <mcalabk...@suse.com>
+
+- rewrite to single-spec
+- update to 0.9.1
+  * Deprecation of make_safe for Ming Documents
+  * FormEncode is now an optional dependency only required for 
+    projects relying on ming.configure.
+  * Python 3.7 is now officially supported
+  * Support distinct() on cursors (already supported on collections)
+- patch 0001-disable_test_gridfs.patch still relevant probably due 
+  to too new pymongo, gridfs tests are still failing
+- Added patch pymongo-reqs.patch to unpin pymongo version
+
+-------------------------------------------------------------------

Old:
----
  Ming-0.5.1.tar.gz

New:
----
  Ming-0.9.1.tar.gz
  pymongo-reqs.patch

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

Other differences:
------------------
++++++ python-Ming.spec ++++++
--- /var/tmp/diff_new_pack.Qr3Ckl/_old  2019-07-26 17:34:00.940094589 +0200
+++ /var/tmp/diff_new_pack.Qr3Ckl/_new  2019-07-26 17:34:00.944094587 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Ming
 #
-# Copyright (c) 2015 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
@@ -12,41 +12,38 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Ming
-Version:        0.5.1
+Version:        0.9.1
 Release:        0
 Summary:        Bringing order to Mongo since 2009
 License:        MIT
 Group:          Development/Languages/Python
-Url:            http://merciless.sourceforge.net
-Source:         
https://pypi.python.org/packages/source/M/Ming/Ming-%version.tar.gz
-# PATCH-FIX-UPSTREAM 0001-disable_test_gridfs.patch sfal...@opensuse.org -- 
Patch disables failing build tests (sf#merciless/bugs/#27)
+URL:            http://merciless.sourceforge.net
+Source:         
https://files.pythonhosted.org/packages/source/M/Ming/Ming-%{version}.tar.gz
 Patch0:         0001-disable_test_gridfs.patch
-BuildRequires:  python-FormEncode >= 1.2.1
-BuildRequires:  python-WebOb
-BuildRequires:  python-WebTest
-BuildRequires:  python-devel
-BuildRequires:  python-mock >= 0.8.0
-BuildRequires:  python-nose
-BuildRequires:  python-pymongo >= 2.4
-BuildRequires:  python-pytz
-BuildRequires:  python-setuptools
-BuildRequires:  python-six >= 1.6.1
-Requires:       python-FormEncode >= 1.2.1
-Requires:       python-WebOb
-Requires:       python-pymongo >= 2.4
+Patch1:         pymongo-reqs.patch
+BuildRequires:  %{python_module FormEncode >= 1.2.1}
+BuildRequires:  %{python_module WebOb}
+BuildRequires:  %{python_module WebTest}
+BuildRequires:  %{python_module mock >= 0.8.0}
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pymongo >= 2.4}
+BuildRequires:  %{python_module pytz}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-pymongo >= 3.0
+Requires:       python-pytz
 Requires:       python-six >= 1.6.1
+Recommends:     python-FormEncode >= 1.2.1
 Recommends:     python-python-spidermonkey >= 0.0.10
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Database mapping layer for MongoDB on Python. Includes schema enforcement and 
some facilities for schema migration.
@@ -54,21 +51,21 @@
 %prep
 %setup -q -n Ming-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if 0%{?suse_version} > 1110
 %check
-python setup.py -q test
-%endif
+%python_exec setup.py -q test
 
-%files
-%defattr(-,root,root,-)
-%doc README
+%files %{python_files}
+%doc README.rst
+# no license available, neither in the tarball nor upstream
 %{python_sitelib}/*
 
 %changelog

++++++ 0001-disable_test_gridfs.patch ++++++
--- /var/tmp/diff_new_pack.Qr3Ckl/_old  2019-07-26 17:34:00.960094581 +0200
+++ /var/tmp/diff_new_pack.Qr3Ckl/_new  2019-07-26 17:34:00.960094581 +0200
@@ -1,8 +1,8 @@
-Index: Ming-0.5.1/ming/tests/test_gridfs.py
+Index: Ming-0.9.1/ming/tests/test_gridfs.py
 ===================================================================
---- Ming-0.5.1.orig/ming/tests/test_gridfs.py
-+++ Ming-0.5.1/ming/tests/test_gridfs.py
-@@ -31,63 +31,3 @@ class TestFS(TestCase):
+--- Ming-0.9.1.orig/ming/tests/test_gridfs.py
++++ Ming-0.9.1/ming/tests/test_gridfs.py
+@@ -32,63 +32,3 @@ class TestFS(TestCase):
  
      def tearDown(self):
          self.ds.bind.drop_all()
@@ -66,44 +66,4 @@
 -            'jumped over the lazy dog')
 -
 -
-Index: Ming-0.5.1/ming/tests/test_mim.py
-===================================================================
---- Ming-0.5.1.orig/ming/tests/test_mim.py
-+++ Ming-0.5.1/ming/tests/test_mim.py
-@@ -22,11 +22,6 @@ class TestDatastore(TestCase):
-         self.assertEqual(2, len(f({}).limit(2).all()))
-         self.assertEqual(4, len(f({}).limit(0).all()))
- 
--    def test_regex(self):
--        f = self.bind.db.rcoll.find
--        assert 4 == f(dict(_id=re.compile(r'r\d+'))).count()
--        assert 2 == f(dict(_id=re.compile(r'r[0-1]'))).count()
--
-     def test_eq(self):
-         f = self.bind.db.rcoll.find
-         assert 1 == f(dict(d={'$eq': 0})).count()
-@@ -576,11 +571,6 @@ class TestCollection(TestCase):
-                                                                               
new=True,
-                                                                               
upsert=True))
- 
--    def test_find_and_modify_with_remove(self):
--        self.bind.db.col.insert({'_id': 1})
--        self.assertEqual({'_id': 1}, self.bind.db.col.find_and_modify({'_id': 
1}, remove=True))
--        self.assertEqual(0, self.bind.db.col.count())
--
-     def test_hint_simple(self):
-         self.bind.db.coll.ensure_index([('myindex', 1)])
- 
-@@ -726,12 +716,6 @@ class TestMatch(TestCase):
-         doc = { 'a': [ { 'b': 1 }, { 'b': 2 } ] }
-         self.assertIsNotNone(mim.match( {'a.b': 1 }, doc))
- 
--    def test_regex_match(self):
--        doc = { 'a': 'bar', 'b': 'bat' }
--        regex = re.compile(r'ba[rz]')
--        self.assertIsNotNone(mim.match( {'a': regex}, doc))
--        self.assertIsNone(mim.match( {'b': regex}, doc))
--
-     def test_subdoc_partial(self):
-         doc = {'a': {'b': 1, 'c': 1}}
-         self.assertIsNotNone(mim.match({'a.b': 1}, doc))
+

++++++ Ming-0.5.1.tar.gz -> Ming-0.9.1.tar.gz ++++++
++++ 4167 lines of diff (skipped)

++++++ pymongo-reqs.patch ++++++
Index: Ming-0.9.1/Ming.egg-info/requires.txt
===================================================================
--- Ming-0.9.1.orig/Ming.egg-info/requires.txt
+++ Ming-0.9.1/Ming.egg-info/requires.txt
@@ -1,4 +1,4 @@
-pymongo<3.8,>=3.0
+pymongo>=3.0
 pytz
 six>=1.6.1
 
Index: Ming-0.9.1/setup.py
===================================================================
--- Ming-0.9.1.orig/setup.py
+++ Ming-0.9.1/setup.py
@@ -35,7 +35,7 @@ setup(name='Ming',
       include_package_data=True,
       zip_safe=True,
       install_requires=[
-        "pymongo>=3.0,<3.8",
+        "pymongo>=3.0",
         "pytz",
         "six>=1.6.1"
       ],

Reply via email to