Hello community,

here is the log from the commit of package python-oslo.db for openSUSE:Factory 
checked in at 2016-01-05 21:55:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.db (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslo.db.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslo.db"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.db/python-oslo.db.changes    
2015-12-21 12:03:50.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-oslo.db.new/python-oslo.db.changes       
2016-01-05 21:55:44.000000000 +0100
@@ -1,0 +2,10 @@
+Tue Dec 15 14:06:48 UTC 2015 - [email protected]
+
+- update to 4.1.0:
+  * Refactor deps to use extras and env markers
+  * Added allow_async property
+  * Updated from global requirements
+  * Remove python 2.6 classifier
+  * Remove python 2.6 and cleanup tox.ini
+
+-------------------------------------------------------------------

Old:
----
  oslo.db-3.2.0.tar.gz

New:
----
  oslo.db-4.1.0.tar.gz

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

Other differences:
------------------
++++++ python-oslo.db.spec ++++++
--- /var/tmp/diff_new_pack.WLBYzn/_old  2016-01-05 21:55:45.000000000 +0100
+++ /var/tmp/diff_new_pack.WLBYzn/_new  2016-01-05 21:55:45.000000000 +0100
@@ -18,7 +18,7 @@
 
 %define component oslo_db
 Name:           python-oslo.db
-Version:        3.2.0
+Version:        4.1.0
 Release:        0
 Url:            https://launchpad.net/oslo/
 Summary:        OpenStack DB API
@@ -36,10 +36,10 @@
 Requires:       python-SQLAlchemy >= 0.9.9
 Requires:       python-alembic >= 0.8.0
 Requires:       python-iso8601 >= 0.1.9
-Requires:       python-oslo.config >= 2.6.0
+Requires:       python-oslo.config >= 2.7.0
 Requires:       python-oslo.context >= 0.2.0
 Requires:       python-oslo.i18n >= 1.5.0
-Requires:       python-oslo.utils >= 2.4.0
+Requires:       python-oslo.utils >= 2.8.0
 Requires:       python-psycopg2 >= 2.5
 Requires:       python-six >= 1.9.0
 Requires:       python-sqlalchemy-migrate >= 0.9.6

++++++ oslo.db-3.2.0.tar.gz -> oslo.db-4.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/AUTHORS new/oslo.db-4.1.0/AUTHORS
--- old/oslo.db-3.2.0/AUTHORS   2015-11-16 21:31:59.000000000 +0100
+++ new/oslo.db-4.1.0/AUTHORS   2015-12-07 20:25:56.000000000 +0100
@@ -78,9 +78,11 @@
 Nikita Konovalov <[email protected]>
 Noorul Islam K M <[email protected]>
 Oleksii Chuprykov <[email protected]>
+Pavel Kholkin <[email protected]>
 Pekelny Ilya <[email protected]>
 Petr Blaho <[email protected]>
 Rajaram Mallya <[email protected]>
+Robert Collins <[email protected]>
 Roman Podoliaka <[email protected]>
 Roman Podolyaka <[email protected]>
 Roman Vasilets <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/ChangeLog new/oslo.db-4.1.0/ChangeLog
--- old/oslo.db-3.2.0/ChangeLog 2015-11-16 21:31:59.000000000 +0100
+++ new/oslo.db-4.1.0/ChangeLog 2015-12-07 20:25:56.000000000 +0100
@@ -1,6 +1,19 @@
 CHANGES
 =======
 
+4.1.0
+-----
+
+* Refactor deps to use extras and env markers
+* Added allow_async property
+
+4.0.0
+-----
+
+* Updated from global requirements
+* Remove python 2.6 classifier
+* Remove python 2.6 and cleanup tox.ini
+
 3.2.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/PKG-INFO new/oslo.db-4.1.0/PKG-INFO
--- old/oslo.db-3.2.0/PKG-INFO  2015-11-16 21:32:00.000000000 +0100
+++ new/oslo.db-4.1.0/PKG-INFO  2015-12-07 20:25:56.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: oslo.db
-Version: 3.2.0
+Version: 4.1.0
 Summary: Oslo Database library
 Home-page: http://wiki.openstack.org/wiki/Oslo#oslo.db
 Author: OpenStack
@@ -37,6 +37,5 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/oslo.db.egg-info/PKG-INFO 
new/oslo.db-4.1.0/oslo.db.egg-info/PKG-INFO
--- old/oslo.db-3.2.0/oslo.db.egg-info/PKG-INFO 2015-11-16 21:31:59.000000000 
+0100
+++ new/oslo.db-4.1.0/oslo.db.egg-info/PKG-INFO 2015-12-07 20:25:56.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: oslo.db
-Version: 3.2.0
+Version: 4.1.0
 Summary: Oslo Database library
 Home-page: http://wiki.openstack.org/wiki/Oslo#oslo.db
 Author: OpenStack
@@ -37,6 +37,5 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/oslo.db.egg-info/SOURCES.txt 
new/oslo.db-4.1.0/oslo.db.egg-info/SOURCES.txt
--- old/oslo.db-3.2.0/oslo.db.egg-info/SOURCES.txt      2015-11-16 
21:32:00.000000000 +0100
+++ new/oslo.db-4.1.0/oslo.db.egg-info/SOURCES.txt      2015-12-07 
20:25:56.000000000 +0100
@@ -12,7 +12,6 @@
 requirements.txt
 setup.cfg
 setup.py
-test-requirements.txt
 tox.ini
 doc/source/conf.py
 doc/source/contributing.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/oslo.db.egg-info/pbr.json 
new/oslo.db-4.1.0/oslo.db.egg-info/pbr.json
--- old/oslo.db-3.2.0/oslo.db.egg-info/pbr.json 2015-11-16 21:31:59.000000000 
+0100
+++ new/oslo.db-4.1.0/oslo.db.egg-info/pbr.json 2015-12-07 20:25:56.000000000 
+0100
@@ -1 +1 @@
-{"git_version": "52d5764", "is_release": true}
\ No newline at end of file
+{"git_version": "01359ef", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/oslo.db.egg-info/requires.txt 
new/oslo.db-4.1.0/oslo.db.egg-info/requires.txt
--- old/oslo.db-3.2.0/oslo.db.egg-info/requires.txt     2015-11-16 
21:31:59.000000000 +0100
+++ new/oslo.db-4.1.0/oslo.db.egg-info/requires.txt     2015-12-07 
20:25:56.000000000 +0100
@@ -3,9 +3,9 @@
 Babel>=1.3
 iso8601>=0.1.9
 oslo.i18n>=1.5.0
-oslo.config>=2.6.0
+oslo.config>=2.7.0
 oslo.context>=0.2.0
-oslo.utils!=2.6.0,>=2.4.0
+oslo.utils>=2.8.0
 SQLAlchemy<1.1.0,>=0.9.9
 sqlalchemy-migrate>=0.9.6
 stevedore>=1.5.0
@@ -14,3 +14,28 @@
 [fixtures]
 testresources>=0.2.4
 testscenarios>=0.4
+
+[mysql]
+PyMySQL>=0.6.2 # MIT License
+
+[mysql-c:(python_version=='2.7')]
+MySQL-python
+
+[postgresql]
+psycopg2>=2.5
+
+[test]
+hacking<0.11,>=0.10.0
+coverage>=3.6
+discover
+doc8 # Apache-2.0
+eventlet>=0.17.4
+fixtures>=1.3.1
+mock>=1.2
+python-subunit>=0.0.18
+sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
+oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
+oslotest>=1.10.0 # Apache-2.0
+testrepository>=0.0.18
+testtools>=1.4.0
+tempest-lib>=0.10.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/oslo_db/sqlalchemy/enginefacade.py 
new/oslo.db-4.1.0/oslo_db/sqlalchemy/enginefacade.py
--- old/oslo.db-3.2.0/oslo_db/sqlalchemy/enginefacade.py        2015-11-16 
21:31:00.000000000 +0100
+++ new/oslo.db-4.1.0/oslo_db/sqlalchemy/enginefacade.py        2015-12-07 
20:25:00.000000000 +0100
@@ -528,13 +528,13 @@
         else:
             transaction.rollback()
 
-    def _produce_block(self, mode, connection, savepoint):
+    def _produce_block(self, mode, connection, savepoint, allow_async=False):
         if mode is _WRITER:
             self._writer()
         elif mode is _ASYNC_READER:
             self._async_reader()
         else:
-            self._reader()
+            self._reader(allow_async)
         if connection:
             return self._connection(savepoint)
         else:
@@ -552,10 +552,10 @@
                 "Can't upgrade an ASYNC_READER transaction "
                 "to a WRITER mid-transaction")
 
-    def _reader(self):
+    def _reader(self, allow_async=False):
         if self.mode is None:
             self.mode = _READER
-        elif self.mode is _ASYNC_READER:
+        elif self.mode is _ASYNC_READER and not allow_async:
             raise TypeError(
                 "Can't upgrade an ASYNC_READER transaction "
                 "to a READER mid-transaction")
@@ -589,7 +589,8 @@
             savepoint=False,
             connection=False,
             replace_global_factory=None,
-            _is_global_manager=False):
+            _is_global_manager=False,
+            allow_async=False):
 
         if root is None:
             self._root = self
@@ -606,6 +607,7 @@
             raise TypeError(
                 "setting savepoint and independent makes no sense.")
         self._connection = connection
+        self._allow_async = allow_async
 
     @property
     def _factory(self):
@@ -649,6 +651,27 @@
         return self._clone(mode=_READER)
 
     @property
+    def allow_async(self):
+        """Modifier to allow async operations
+
+        Allows async operations if asynchronous session is already
+        started in this context. Marking DB API methods with READER would make
+        it impossible to use them in ASYNC_READER transactions, and marking
+        them with ASYNC_READER would require a modification of all the places
+        these DB API methods are called to force READER mode, where the latest
+        DB state is required.
+
+        In Nova DB API methods should have a 'safe' default (i.e. READER),
+        so that they can start sessions on their own, but it would also be
+        useful for them to be able to participate in an existing ASYNC_READER
+        session, if one was started up the stack.
+        """
+
+        if self._mode is _WRITER:
+            raise TypeError("Setting async on a WRITER makes no sense")
+        return self._clone(allow_async=True)
+
+    @property
     def independent(self):
         """Modifier to start a transaction independent from any enclosing."""
         return self._clone(independent=True)
@@ -732,7 +755,8 @@
                 with current._produce_block(
                     mode=self._mode,
                     connection=self._connection,
-                    savepoint=self._savepoint) as resource:
+                    savepoint=self._savepoint,
+                    allow_async=self._allow_async) as resource:
                     yield resource
             else:
                 yield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/oslo.db-3.2.0/oslo_db/tests/sqlalchemy/test_enginefacade.py 
new/oslo.db-4.1.0/oslo_db/tests/sqlalchemy/test_enginefacade.py
--- old/oslo.db-3.2.0/oslo_db/tests/sqlalchemy/test_enginefacade.py     
2015-11-16 21:31:00.000000000 +0100
+++ new/oslo.db-4.1.0/oslo_db/tests/sqlalchemy/test_enginefacade.py     
2015-12-07 20:25:00.000000000 +0100
@@ -583,6 +583,60 @@
             exc.args[0]
         )
 
+    def test_reader_allow_async_nested_in_async_reader(self):
+        context = oslo_context.RequestContext()
+
+        @enginefacade.reader.async
+        def go1(context):
+            context.session.execute("test1")
+            go2(context)
+
+        @enginefacade.reader.allow_async
+        def go2(context):
+            context.session.execute("test2")
+
+        go1(context)
+
+        with self._assert_engines() as engines:
+            with self._assert_makers(engines) as makers:
+                with self._assert_async_reader_session(makers) as session:
+                    session.execute("test1")
+                    session.execute("test2")
+
+    def test_reader_allow_async_nested_in_reader(self):
+        context = oslo_context.RequestContext()
+
+        @enginefacade.reader.reader
+        def go1(context):
+            context.session.execute("test1")
+            go2(context)
+
+        @enginefacade.reader.allow_async
+        def go2(context):
+            context.session.execute("test2")
+
+        go1(context)
+
+        with self._assert_engines() as engines:
+            with self._assert_makers(engines) as makers:
+                with self._assert_reader_session(makers) as session:
+                    session.execute("test1")
+                    session.execute("test2")
+
+    def test_reader_allow_async_is_reader_by_default(self):
+        context = oslo_context.RequestContext()
+
+        @enginefacade.reader.allow_async
+        def go1(context):
+            context.session.execute("test1")
+
+        go1(context)
+
+        with self._assert_engines() as engines:
+            with self._assert_makers(engines) as makers:
+                with self._assert_reader_session(makers) as session:
+                    session.execute("test1")
+
     def test_writer_nested_in_async_reader_raises(self):
         context = oslo_context.RequestContext()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/requirements.txt 
new/oslo.db-4.1.0/requirements.txt
--- old/oslo.db-3.2.0/requirements.txt  2015-11-16 21:31:00.000000000 +0100
+++ new/oslo.db-4.1.0/requirements.txt  2015-12-07 20:25:00.000000000 +0100
@@ -7,9 +7,9 @@
 Babel>=1.3
 iso8601>=0.1.9
 oslo.i18n>=1.5.0 # Apache-2.0
-oslo.config>=2.6.0 # Apache-2.0
+oslo.config>=2.7.0 # Apache-2.0
 oslo.context>=0.2.0 # Apache-2.0
-oslo.utils!=2.6.0,>=2.4.0 # Apache-2.0
+oslo.utils>=2.8.0 # Apache-2.0
 SQLAlchemy<1.1.0,>=0.9.9
 sqlalchemy-migrate>=0.9.6
 stevedore>=1.5.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/setup.cfg new/oslo.db-4.1.0/setup.cfg
--- old/oslo.db-3.2.0/setup.cfg 2015-11-16 21:32:00.000000000 +0100
+++ new/oslo.db-4.1.0/setup.cfg 2015-12-07 20:25:56.000000000 +0100
@@ -15,10 +15,35 @@
        Programming Language :: Python
        Programming Language :: Python :: 2
        Programming Language :: Python :: 2.7
-       Programming Language :: Python :: 2.6
        Programming Language :: Python :: 3
        Programming Language :: Python :: 3.4
 
+[extras]
+mysql = 
+       PyMySQL>=0.6.2 # MIT License
+mysql-c = 
+       MySQL-python:python_version=='2.7'
+postgresql = 
+       psycopg2>=2.5
+test = 
+       hacking<0.11,>=0.10.0
+       coverage>=3.6
+       discover
+       doc8 # Apache-2.0
+       eventlet>=0.17.4
+       fixtures>=1.3.1
+       mock>=1.2
+       python-subunit>=0.0.18
+       sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
+       oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
+       oslotest>=1.10.0 # Apache-2.0
+       testrepository>=0.0.18
+       testtools>=1.4.0
+       tempest-lib>=0.10.0
+fixtures = 
+       testresources>=0.2.4
+       testscenarios>=0.4
+
 [files]
 packages = 
        oslo_db
@@ -56,11 +81,6 @@
 mapping_file = babel.cfg
 output_file = oslo.db/locale/oslo.db.pot
 
-[extras]
-fixtures = 
-       testresources>=0.2.4
-       testscenarios>=0.4
-
 [pbr]
 warnerrors = True
 autodoc_index_modules = True
@@ -68,7 +88,7 @@
        oslo_db.tests.*
 
 [egg_info]
+tag_build = 
 tag_svn_revision = 0
 tag_date = 0
-tag_build = 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/test-requirements.txt 
new/oslo.db-4.1.0/test-requirements.txt
--- old/oslo.db-3.2.0/test-requirements.txt     2015-11-16 21:31:00.000000000 
+0100
+++ new/oslo.db-4.1.0/test-requirements.txt     1970-01-01 01:00:00.000000000 
+0100
@@ -1,21 +0,0 @@
-# The order of packages is significant, because pip processes them in the order
-# of appearance. Changing the order has an impact on the overall integration
-# process, which may cause wedges in the gate later.
-
-hacking<0.11,>=0.10.0
-
-coverage>=3.6
-discover
-doc8 # Apache-2.0
-eventlet>=0.17.4
-fixtures>=1.3.1
-mock>=1.2
-PyMySQL>=0.6.2 # MIT License
-psycopg2>=2.5
-python-subunit>=0.0.18
-sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
-oslosphinx>=2.5.0 # Apache-2.0
-oslotest>=1.10.0 # Apache-2.0
-testrepository>=0.0.18
-testtools>=1.4.0
-tempest-lib>=0.10.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.db-3.2.0/tox.ini new/oslo.db-4.1.0/tox.ini
--- old/oslo.db-3.2.0/tox.ini   2015-11-16 21:31:00.000000000 +0100
+++ new/oslo.db-4.1.0/tox.ini   2015-12-07 20:25:00.000000000 +0100
@@ -1,21 +1,13 @@
 [tox]
 minversion = 1.6
-envlist = py26,py27,py34,pep8,pip-missing-reqs
-# NOTE(dhellmann): We cannot set skipdist=True
-# for oslo libraries because of the namespace package.
-#skipsdist = True
+envlist = py27,py34,pep8,pip-missing-reqs
 
 [testenv]
-# NOTE(dhellmann): We cannot set usedevelop=True
-# for oslo libraries because of the namespace package.
-#usedevelop = True
 whitelist_externals = bash
                       env
-install_command = pip install -U {opts} {packages}
 setenv =
    VIRTUAL_ENV={envdir}
-deps = .[fixtures]
-       -r{toxinidir}/test-requirements.txt
+deps = .[test,fixtures,mysql,postgresql]
 commands = bash tools/pretty_tox.sh '{posargs}'
 
 [testenv:sqla_09]
@@ -28,11 +20,10 @@
     env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}'
 
 [testenv:mysql-python]
+deps = .[mysql-c,postgresql,test,fixtures]
 setenv =
    {[testenv]setenv}
    
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
-commands = pip install MySQL-python
-           python setup.py testr --slowest --testr-args='{posargs}'
 
 [testenv:pep8]
 commands = flake8



Reply via email to