15
0
forked from pool/python-gear

- 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
This commit is contained in:
2018-03-23 15:01:32 +00:00
committed by Git OBS Bridge
parent c5929281bd
commit ada6c5022c
4 changed files with 67 additions and 13 deletions

View File

@@ -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