Hello community,

here is the log from the commit of package python-futurist for openSUSE:Factory 
checked in at 2015-09-11 09:04:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-futurist (Old)
 and      /work/SRC/openSUSE:Factory/.python-futurist.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-futurist"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-futurist/python-futurist.changes  
2015-08-27 08:55:22.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-futurist.new/python-futurist.changes     
2015-09-11 09:04:38.000000000 +0200
@@ -1,0 +2,8 @@
+Wed Sep  9 07:01:25 UTC 2015 - [email protected]
+
+- update to 0.5.0:
+  * Updated from global requirements
+  * Provide a thread differentiation attribute on executors
+- Adjust Requires according to requirements.txt
+
+-------------------------------------------------------------------

Old:
----
  futurist-0.3.0.tar.gz

New:
----
  futurist-0.5.0.tar.gz

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

Other differences:
------------------
++++++ python-futurist.spec ++++++
--- /var/tmp/diff_new_pack.f0o4Nh/_old  2015-09-11 09:04:38.000000000 +0200
+++ /var/tmp/diff_new_pack.f0o4Nh/_new  2015-09-11 09:04:38.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-futurist
-Version:        0.3.0
+Version:        0.5.0
 Release:        0
 Summary:        Useful additions to futures, from the future
 License:        Apache-2.0
@@ -29,7 +29,7 @@
 BuildRequires:  python-setuptools
 Requires:       python-contextlib2 >= 0.4.0
 Requires:       python-futures >= 3.0
-Requires:       python-monotonic >= 0.1
+Requires:       python-monotonic >= 0.3
 Requires:       python-six >= 1.9.0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110

++++++ futurist-0.3.0.tar.gz -> futurist-0.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/ChangeLog new/futurist-0.5.0/ChangeLog
--- old/futurist-0.3.0/ChangeLog        2015-08-03 19:19:42.000000000 +0200
+++ new/futurist-0.5.0/ChangeLog        2015-09-08 17:31:59.000000000 +0200
@@ -1,6 +1,18 @@
 CHANGES
 =======
 
+0.5.0
+-----
+
+* Updated from global requirements
+
+0.4.0
+-----
+
+* Updated from global requirements
+* Updated from global requirements
+* Provide a thread differentiation attribute on executors
+
 0.3.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/PKG-INFO new/futurist-0.5.0/PKG-INFO
--- old/futurist-0.3.0/PKG-INFO 2015-08-03 19:19:42.000000000 +0200
+++ new/futurist-0.5.0/PKG-INFO 2015-09-08 17:31:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: futurist
-Version: 0.3.0
+Version: 0.5.0
 Summary: Useful additions to futures, from the future.
 Home-page: http://www.openstack.org/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/futurist/_futures.py 
new/futurist-0.5.0/futurist/_futures.py
--- old/futurist-0.3.0/futurist/_futures.py     2015-08-03 19:19:22.000000000 
+0200
+++ new/futurist-0.5.0/futurist/_futures.py     2015-09-08 17:31:37.000000000 
+0200
@@ -44,11 +44,29 @@
 Future = _futures.Future
 
 
+class _Threading(object):
+
+    @staticmethod
+    def event_object(*args, **kwargs):
+        return threading.Event(*args, **kwargs)
+
+    @staticmethod
+    def lock_object(*args, **kwargs):
+        return threading.Lock(*args, **kwargs)
+
+    @staticmethod
+    def rlock_object(*args, **kwargs):
+        return threading.RLock(*args, **kwargs)
+
+    @staticmethod
+    def condition_object(*args, **kwargs):
+        return threading.Condition(*args, **kwargs)
+
+
 class _Gatherer(object):
-    def __init__(self, submit_func,
-                 lock_cls=threading.Lock, start_before_submit=False):
+    def __init__(self, submit_func, lock_factory, start_before_submit=False):
         self._submit_func = submit_func
-        self._stats_lock = lock_cls()
+        self._stats_lock = lock_factory()
         self._stats = ExecutorStatistics()
         self._start_before_submit = start_before_submit
 
@@ -112,6 +130,9 @@
 
     See: https://docs.python.org/dev/library/concurrent.futures.html
     """
+
+    threading = _Threading()
+
     def __init__(self, max_workers=None, check_and_reject=None):
         """Initializes a thread pool executor.
 
@@ -145,7 +166,8 @@
             # Since our submit will use this gatherer we have to reference
             # the parent submit, bound to this instance (which is what we
             # really want to use anyway).
-            super(ThreadPoolExecutor, self).submit)
+            super(ThreadPoolExecutor, self).submit,
+            self.threading.lock_object)
 
     @property
     def statistics(self):
@@ -174,6 +196,9 @@
 
     See: https://docs.python.org/dev/library/concurrent.futures.html
     """
+
+    threading = _Threading()
+
     def __init__(self, max_workers=None):
         if max_workers is None:
             max_workers = _utils.get_optimal_thread_count()
@@ -184,7 +209,8 @@
             # Since our submit will use this gatherer we have to reference
             # the parent submit, bound to this instance (which is what we
             # really want to use anyway).
-            super(ProcessPoolExecutor, self).submit)
+            super(ProcessPoolExecutor, self).submit,
+            self.threading.lock_object)
 
     @property
     def alive(self):
@@ -226,6 +252,31 @@
             self.future.set_result(result)
 
 
+if _utils.EVENTLET_AVAILABLE:
+
+    class _GreenThreading(object):
+
+        @staticmethod
+        def event_object(*args, **kwargs):
+            return greenthreading.Event(*args, **kwargs)
+
+        @staticmethod
+        def lock_object(*args, **kwargs):
+            return greenthreading.Lock(*args, **kwargs)
+
+        @staticmethod
+        def rlock_object(*args, **kwargs):
+            return greenthreading.RLock(*args, **kwargs)
+
+        @staticmethod
+        def condition_object(*args, **kwargs):
+            return greenthreading.Condition(*args, **kwargs)
+
+    _green_threading = _GreenThreading()
+else:
+    _green_threading = None
+
+
 class SynchronousExecutor(_futures.Executor):
     """Executor that uses the caller to execute calls synchronously.
 
@@ -237,6 +288,8 @@
     It gathers statistics about the submissions executed for post-analysis...
     """
 
+    threading = _Threading()
+
     def __init__(self, green=False):
         """Synchronous executor constructor.
 
@@ -250,14 +303,13 @@
                                ' synchronous executor')
         self._shutoff = False
         if green:
-            lock_cls = greenthreading.Lock
+            self.threading = _green_threading
             self._future_cls = GreenFuture
         else:
-            lock_cls = threading.Lock
             self._future_cls = Future
         self._gatherer = _Gatherer(self._submit,
-                                   start_before_submit=True,
-                                   lock_cls=lock_cls)
+                                   self.threading.lock_object,
+                                   start_before_submit=True)
 
     @property
     def alive(self):
@@ -347,6 +399,8 @@
     It gathers statistics about the submissions executed for post-analysis...
     """
 
+    threading = _green_threading
+
     def __init__(self, max_workers=1000, check_and_reject=None):
         """Initializes a green thread pool executor.
 
@@ -376,7 +430,7 @@
         self._shutdown_lock = greenthreading.Lock()
         self._shutdown = False
         self._gatherer = _Gatherer(self._submit,
-                                   lock_cls=greenthreading.Lock)
+                                   self.threading.lock_object)
 
     @property
     def alive(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/futurist.egg-info/PKG-INFO 
new/futurist-0.5.0/futurist.egg-info/PKG-INFO
--- old/futurist-0.3.0/futurist.egg-info/PKG-INFO       2015-08-03 
19:19:42.000000000 +0200
+++ new/futurist-0.5.0/futurist.egg-info/PKG-INFO       2015-09-08 
17:31:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: futurist
-Version: 0.3.0
+Version: 0.5.0
 Summary: Useful additions to futures, from the future.
 Home-page: http://www.openstack.org/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/futurist.egg-info/pbr.json 
new/futurist-0.5.0/futurist.egg-info/pbr.json
--- old/futurist-0.3.0/futurist.egg-info/pbr.json       2015-08-03 
19:19:42.000000000 +0200
+++ new/futurist-0.5.0/futurist.egg-info/pbr.json       2015-09-08 
17:31:59.000000000 +0200
@@ -1 +1 @@
-{"is_release": true, "git_version": "d03cc4f"}
\ No newline at end of file
+{"is_release": true, "git_version": "27772ae"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/futurist.egg-info/requires.txt 
new/futurist-0.5.0/futurist.egg-info/requires.txt
--- old/futurist-0.3.0/futurist.egg-info/requires.txt   2015-08-03 
19:19:42.000000000 +0200
+++ new/futurist-0.5.0/futurist.egg-info/requires.txt   2015-09-08 
17:31:59.000000000 +0200
@@ -1,7 +1,7 @@
-pbr<2.0,>=1.3
+pbr<2.0,>=1.6
 six>=1.9.0
-monotonic>=0.1 # Apache-2.0
-contextlib2>=0.4.0 # PSF License
+monotonic>=0.3
+contextlib2>=0.4.0
 
 [:(python_version=='2.7' or python_version=='2.6')]
 futures>=3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/requirements.txt 
new/futurist-0.5.0/requirements.txt
--- old/futurist-0.3.0/requirements.txt 2015-08-03 19:19:22.000000000 +0200
+++ new/futurist-0.5.0/requirements.txt 2015-09-08 17:31:37.000000000 +0200
@@ -2,8 +2,8 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 
-pbr<2.0,>=1.3
+pbr<2.0,>=1.6
 six>=1.9.0
-monotonic>=0.1 # Apache-2.0
+monotonic>=0.3 # Apache-2.0
 futures>=3.0;python_version=='2.7' or python_version=='2.6'
 contextlib2>=0.4.0 # PSF License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/setup.cfg new/futurist-0.5.0/setup.cfg
--- old/futurist-0.3.0/setup.cfg        2015-08-03 19:19:42.000000000 +0200
+++ new/futurist-0.5.0/setup.cfg        2015-09-08 17:31:59.000000000 +0200
@@ -49,6 +49,6 @@
 
 [egg_info]
 tag_build = 
-tag_svn_revision = 0
 tag_date = 0
+tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/futurist-0.3.0/test-requirements.txt 
new/futurist-0.5.0/test-requirements.txt
--- old/futurist-0.3.0/test-requirements.txt    2015-08-03 19:19:22.000000000 
+0200
+++ new/futurist-0.5.0/test-requirements.txt    2015-09-08 17:31:37.000000000 
+0200
@@ -13,7 +13,7 @@
 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.9.0 # Apache-2.0
+oslotest>=1.10.0 # Apache-2.0
 testrepository>=0.0.18
 testscenarios>=0.4
 testtools>=1.4.0


Reply via email to