commit python-gear for openSUSE:Factory
Hello community, here is the log from the commit of package python-gear for openSUSE:Factory checked in at 2018-10-31 13:21:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gear (Old) and /work/SRC/openSUSE:Factory/.python-gear.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-gear" Wed Oct 31 13:21:29 2018 rev:2 rq:645603 version:0.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gear/python-gear.changes 2018-03-28 10:30:27.771027708 +0200 +++ /work/SRC/openSUSE:Factory/.python-gear.new/python-gear.changes 2018-10-31 13:22:08.555018088 +0100 @@ -1,0 +2,8 @@ +Tue Oct 30 21:44:06 UTC 2018 - Dirk Mueller <dmueller@suse.com> + +- update to 0.12.0: + * Add --listen-address flag to geard + * Build universal wheels + * Automatically send GRAB\_JOB after CAN\_DO + +------------------------------------------------------------------- Old: ---- gear-0.11.1.tar.gz New: ---- gear-0.12.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gear.spec ++++++ --- /var/tmp/diff_new_pack.gwGliE/_old 2018-10-31 13:22:08.943017726 +0100 +++ /var/tmp/diff_new_pack.gwGliE/_new 2018-10-31 13:22:08.947017722 +0100 @@ -12,13 +12,13 @@ # 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-gear -Version: 0.11.1 +Version: 0.12.0 Release: 0 Summary: Pure Python Async Gear Protocol Library License: Apache-2.0 @@ -58,8 +58,8 @@ %python_uninstall_alternative geard %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst ChangeLog LICENSE AUTHORS +%license LICENSE +%doc README.rst ChangeLog AUTHORS %{python_sitelib}/* %python_alternative %{_bindir}/geard ++++++ gear-0.11.1.tar.gz -> gear-0.12.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/ChangeLog new/gear-0.12.0/ChangeLog --- old/gear-0.11.1/ChangeLog 2018-02-01 21:55:58.000000000 +0100 +++ new/gear-0.12.0/ChangeLog 2018-04-19 18:13:52.000000000 +0200 @@ -1,6 +1,13 @@ CHANGES ======= +0.12.0 +------ + +* Add --listen-address flag to geard +* Build universal wheels +* Automatically send GRAB\_JOB after CAN\_DO + 0.11.1 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/PKG-INFO new/gear-0.12.0/PKG-INFO --- old/gear-0.11.1/PKG-INFO 2018-02-01 21:55:59.000000000 +0100 +++ new/gear-0.12.0/PKG-INFO 2018-04-19 18:13:53.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: gear -Version: 0.11.1 +Version: 0.12.0 Summary: Pure Python Async Gear Protocol Library Home-page: http://pypi.python.org/pypi/gear Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN -Description-Content-Type: UNKNOWN Description: python-gear =========== @@ -22,3 +21,7 @@ Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/gear/__init__.py new/gear-0.12.0/gear/__init__.py --- old/gear-0.11.1/gear/__init__.py 2018-02-01 21:54:58.000000000 +0100 +++ new/gear-0.12.0/gear/__init__.py 2018-04-19 18:12:43.000000000 +0200 @@ -1897,6 +1897,12 @@ else: self._sendCanDo(name) + connections = self.active_connections[:] + for connection in connections: + if connection.state == "SLEEP": + connection.changeState("IDLE") + self._updateStateMachines() + def unRegisterFunction(self, name): """Remove a function from Gearman's registry. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/gear/cmd/geard.py new/gear-0.12.0/gear/cmd/geard.py --- old/gear-0.11.1/gear/cmd/geard.py 2018-02-01 21:54:41.000000000 +0100 +++ new/gear-0.12.0/gear/cmd/geard.py 2018-04-19 18:12:43.000000000 +0200 @@ -47,6 +47,9 @@ help='do not run as a daemon') parser.add_argument('-p', dest='port', default=4730, help='port on which to listen') + parser.add_argument('--listen-address', dest='listen_address', + default=None, + help='IP address or domain name to listen on') parser.add_argument('--log-config', dest='log_config', help='logging config file') parser.add_argument('--pidfile', dest='pidfile', @@ -122,6 +125,7 @@ statsd_port, statsd_prefix, acl=acl, + host=self.args.listen_address, keepalive=self.args.keepalive, tcp_keepidle=self.args.tcp_keepidle, tcp_keepintvl=self.args.tcp_keepintvl, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/gear/tests/test_functional.py new/gear-0.12.0/gear/tests/test_functional.py --- old/gear-0.11.1/gear/tests/test_functional.py 2018-02-01 21:54:41.000000000 +0100 +++ new/gear-0.12.0/gear/tests/test_functional.py 2018-04-19 18:12:43.000000000 +0200 @@ -238,6 +238,36 @@ self.assertTrue(job.complete) self.assertEqual(job.exception, 'work failed') + def test_grab_job_after_register(self): + jobunique = uuid.uuid4().hex + job = gear.TextJob('test', 'testdata', unique=jobunique) + self.client.submitJob(job) + self.assertNotEqual(job.handle, None) + + def getJob(): + workerjob = self.worker.getJob() + workerjob.sendWorkComplete() + + jobthread = threading.Thread(target=getJob) + jobthread.daemon = True + jobthread.start() + + for count in iterate_timeout(30, "worker sleeping"): + if self.worker.active_connections[0].state == 'SLEEP': + break + self.assertEqual(1, len(self.server.normal_queue)) + self.assertFalse(job.complete) + + # When we register the function, the worker should send a + # grab_job packet and pick up the job and it should complete. + self.worker.registerFunction('test') + + for count in iterate_timeout(30, "job completion"): + if job.complete: + break + + self.assertEqual(0, len(self.server.normal_queue)) + def load_tests(loader, in_tests, pattern): return testscenarios.load_tests_apply_scenarios(loader, in_tests, pattern) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/gear.egg-info/PKG-INFO new/gear-0.12.0/gear.egg-info/PKG-INFO --- old/gear-0.11.1/gear.egg-info/PKG-INFO 2018-02-01 21:55:58.000000000 +0100 +++ new/gear-0.12.0/gear.egg-info/PKG-INFO 2018-04-19 18:13:52.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: gear -Version: 0.11.1 +Version: 0.12.0 Summary: Pure Python Async Gear Protocol Library Home-page: http://pypi.python.org/pypi/gear Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN -Description-Content-Type: UNKNOWN Description: python-gear =========== @@ -22,3 +21,7 @@ Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/gear.egg-info/pbr.json new/gear-0.12.0/gear.egg-info/pbr.json --- old/gear-0.11.1/gear.egg-info/pbr.json 2018-02-01 21:55:58.000000000 +0100 +++ new/gear-0.12.0/gear.egg-info/pbr.json 2018-04-19 18:13:52.000000000 +0200 @@ -1 +1 @@ -{"git_version": "da802f2", "is_release": true} \ No newline at end of file +{"git_version": "c00ca94", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gear-0.11.1/setup.cfg new/gear-0.12.0/setup.cfg --- old/gear-0.11.1/setup.cfg 2018-02-01 21:55:59.000000000 +0100 +++ new/gear-0.12.0/setup.cfg 2018-04-19 18:13:53.000000000 +0200 @@ -15,6 +15,10 @@ License :: OSI Approved :: Apache Software License Operating System :: OS Independent Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.5 [files] packages = @@ -24,6 +28,9 @@ console_scripts = geard = gear.cmd.geard:main +[bdist_wheel] +universal = 1 + [build_sphinx] all_files = 1 build-dir = doc/build
participants (1)
-
root