From ada6c5022c91b011beef2cd189d3d9cb401f9ef7958330e7a140f8ce8899c321 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 23 Mar 2018 15:01:32 +0000 Subject: [PATCH] - update to 0.11.1: * Make workers admin command py3 safe * server: make stats more efficient * Add a send lock to the base Connection class * Server: support background jobs * Fix exception setter * Provide TextJob and TextWorker for convenience * Uncap pbr dependency * Update hacking dependency * Replace assertEquals with assertEqual * Make Job.name assume utf-8 * Ignore E129 * Move py27 after py34 and py35 * Re-enable flake8 * Add py35 to tox.ini default envs * Move other-requirements.txt to bindep.txt * Remove discover from test-requirements * Add test for AdminRequest.isComplete * Parse admin requests 2880 times faster * Geard: Handle connections closed while sending * Support TCP keepalives in geard * List system dependencies for running common tests * Do not encode the type (b) in the job name * Bump version requirement for pbr * Remove vestigal hook entry from setup.cfg * Remove py26 from tox.ini * Switch to six for configparser * Do not change object size when iterating * Allow setting a timeout for Client.waitForServer() * Remove shebang as the script is managed by an entry\_point OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gear?expand=0&rev=2 --- gear-0.11.1.tar.gz | 3 +++ gear-0.5.8.tar.gz | 3 --- python-gear.changes | 39 +++++++++++++++++++++++++++++++++++++++ python-gear.spec | 35 +++++++++++++++++++++++++---------- 4 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 gear-0.11.1.tar.gz delete mode 100644 gear-0.5.8.tar.gz diff --git a/gear-0.11.1.tar.gz b/gear-0.11.1.tar.gz new file mode 100644 index 0000000..fa0dd3e --- /dev/null +++ b/gear-0.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aba934718ade0a27785e381b78665174fed9b6854fe3d05da176a0650c988c5e +size 46593 diff --git a/gear-0.5.8.tar.gz b/gear-0.5.8.tar.gz deleted file mode 100644 index a611d4a..0000000 --- a/gear-0.5.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfa343b291f962f31dea84bb91617003d9be9c6164cd90f0b47181a0cef82051 -size 42410 diff --git a/python-gear.changes b/python-gear.changes index b086d39..c5ef837 100644 --- a/python-gear.changes +++ b/python-gear.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Fri Mar 23 14:55:46 UTC 2018 - tbechtold@suse.com + +- update to 0.11.1: + * Make workers admin command py3 safe + * server: make stats more efficient + * Add a send lock to the base Connection class + * Server: support background jobs + * Fix exception setter + * Provide TextJob and TextWorker for convenience + * Uncap pbr dependency + * Update hacking dependency + * Replace assertEquals with assertEqual + * Make Job.name assume utf-8 + * Ignore E129 + * Move py27 after py34 and py35 + * Re-enable flake8 + * Add py35 to tox.ini default envs + * Move other-requirements.txt to bindep.txt + * Remove discover from test-requirements + * Add test for AdminRequest.isComplete + * Parse admin requests 2880 times faster + * Geard: Handle connections closed while sending + * Support TCP keepalives in geard + * List system dependencies for running common tests + * Do not encode the type (b) in the job name + * Bump version requirement for pbr + * Remove vestigal hook entry from setup.cfg + * Remove py26 from tox.ini + * Switch to six for configparser + * Do not change object size when iterating + * Allow setting a timeout for Client.waitForServer() + * Remove shebang as the script is managed by an entry\_point + * Guard against double shutdown in client + * Remove argparse from requirements + * Deprecated tox -downloadcache option removed + * Add a test for worker termination +- Switch to singlespec + ------------------------------------------------------------------- Mon Dec 7 14:44:52 UTC 2015 - tbechtold@suse.com diff --git a/python-gear.spec b/python-gear.spec index 3fe2a26..d7b3a92 100644 --- a/python-gear.spec +++ b/python-gear.spec @@ -1,7 +1,7 @@ # # spec file for package python-gear # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -13,23 +13,31 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gear -Version: 0.5.8 +Version: 0.11.1 Release: 0 -License: Apache-2.0 Summary: Pure Python Async Gear Protocol Library -Url: http://pypi.python.org/pypi/gear +License: Apache-2.0 Group: Development/Languages/Python +Url: http://pypi.python.org/pypi/gear Source: https://pypi.python.org/packages/source/g/gear/gear-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-pbr +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pbr} +BuildRequires: python-rpm-macros Requires: python-extras Requires: python-python-daemon >= 2.0.4 +Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +%python_subpackages + %description A pure-Python asynchronous library to interface with Gearman. @@ -37,15 +45,22 @@ A pure-Python asynchronous library to interface with Gearman. %setup -q -n gear-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/geard -%files +%post +%python_install_alternative geard + +%postun +%python_uninstall_alternative geard + +%files %{python_files} %defattr(-,root,root,-) %doc README.rst ChangeLog LICENSE AUTHORS %{python_sitelib}/* -%{_bindir}/geard +%python_alternative %{_bindir}/geard %changelog