From 62431e645b48bfde2ac94f4ea491bfb36fb7369fb7940c51f3c768db463cd432 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 25 Aug 2017 10:22:47 +0000 Subject: [PATCH] Accepting request 518703 from home:tbechtold:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update to 1.1.0: * Set socket timeout unconditionally on ``TSocket`` * Add new ‘0.98’ compatibility mode * Add support for reversed scanners * From now on this library uses a semantic versioning scheme. HappyBase is a mature library, but always used 0.x version numbers for no good reason. This has now changed. * Finally, Python 3 support. Thanks to all the people who contributed! * Switch to thriftpy as the underlying Thrift library, which is a much nicer and better maintained library. * Enable building universal wheels - convert to singlespec - split -doc package OBS-URL: https://build.opensuse.org/request/show/518703 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-happybase?expand=0&rev=16 --- happybase-0.9.tar.gz | 3 --- happybase-1.1.0.tar.gz | 3 +++ python-happybase.changes | 17 +++++++++++++ python-happybase.spec | 52 ++++++++++++++++++++++++---------------- 4 files changed, 52 insertions(+), 23 deletions(-) delete mode 100644 happybase-0.9.tar.gz create mode 100644 happybase-1.1.0.tar.gz diff --git a/happybase-0.9.tar.gz b/happybase-0.9.tar.gz deleted file mode 100644 index 43512c5..0000000 --- a/happybase-0.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:744e342936f6c9e384b203435c38ff21a339626a0d7c11aa177988b5e164ef2a -size 62934 diff --git a/happybase-1.1.0.tar.gz b/happybase-1.1.0.tar.gz new file mode 100644 index 0000000..e4d13e4 --- /dev/null +++ b/happybase-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e20376e2e32291798d2226502994134c1c4e175136d8375b3c517a234fa22481 +size 40633 diff --git a/python-happybase.changes b/python-happybase.changes index d0973e9..b6e5bd1 100644 --- a/python-happybase.changes +++ b/python-happybase.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Fri Aug 25 10:09:26 UTC 2017 - tbechtold@suse.com + +- update to 1.1.0: + * Set socket timeout unconditionally on ``TSocket`` + * Add new ‘0.98’ compatibility mode + * Add support for reversed scanners + * From now on this library uses a semantic versioning scheme. + HappyBase is a mature library, but always used 0.x version numbers + for no good reason. This has now changed. + * Finally, Python 3 support. Thanks to all the people who contributed! + * Switch to thriftpy as the underlying Thrift library, which is a much + nicer and better maintained library. + * Enable building universal wheels +- convert to singlespec +- split -doc package + ------------------------------------------------------------------- Wed May 6 14:14:33 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-happybase.spec b/python-happybase.spec index 3e90cda..572539a 100644 --- a/python-happybase.spec +++ b/python-happybase.spec @@ -1,7 +1,7 @@ # # spec file for package python-happybase # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,47 +16,59 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-happybase -Version: 0.9 +Version: 1.1.0 Release: 0 Summary: A developer-friendly Python library to interact with Apache HBase License: MIT Group: Development/Languages/Python Url: https://github.com/wbolster/happybase -Source: https://pypi.python.org/packages/source/h/happybase/happybase-%{version}.tar.gz -BuildRequires: python-Sphinx -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-thrift -Requires: python-thrift +Source: https://files.pythonhosted.org/packages/source/h/happybase/happybase-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module thriftpy} +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx +Requires: python-six +Requires: python-thriftpy >= 0.3.8 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description HappyBase is a developer-friendly Python library to interact with Apache HBase. +%package -n python-happybase-doc +Summary: Documentation for %{name} +Group: Documentation/Other +Provides: %{python_module happybase-doc = %{version}} + +%description -n python-happybase-doc +HappyBase is a developer-friendly Python library to interact with Apache HBase. + +This package contains the documentation. + %prep %setup -q -n happybase-%{version} %build -python setup.py build -python setup.py build_sphinx -# Remove hidden file generated by Sphinx -rm doc/build/html/.buildinfo +%python_build +sphinx-build -b html doc docs/build/html %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE.rst NEWS.rst README.rst TODO.rst doc/build/html +%doc LICENSE.rst NEWS.rst README.rst TODO.rst %{python_sitelib}/* +%files -n python-happybase-doc +%doc LICENSE.rst docs/build/html + %changelog