Hello community,
here is the log from the commit of package python-zaqarclient for openSUSE:Factory checked in at 2018-09-07 15:39:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zaqarclient (Old)
and /work/SRC/openSUSE:Factory/.python-zaqarclient.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zaqarclient"
Fri Sep 7 15:39:43 2018 rev:8 rq:633126 version:1.10.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zaqarclient/python-zaqarclient.changes 2018-03-19 23:37:08.736021284 +0100
+++ /work/SRC/openSUSE:Factory/.python-zaqarclient.new/python-zaqarclient.changes 2018-09-07 15:39:44.770514112 +0200
@@ -1,0 +2,19 @@
+Sat Sep 1 09:04:11 UTC 2018 - cloud-devel@suse.de
+
+- update to version 1.10.0
+ - Support client of bp support-md5-of-body
+ - Add checksum to message __init__()
+ - fix tox python3 overrides
+ - fix README.rst format error
+ - Change wrong url for zaqarclient
+ - Update reno for stable/queens
+ - Trivial: Update pypi url to new url
+ - Fix doc CI failure
+ - Fix zuul check failure at legacy-zaqarclient-dsvm-functional
+ - Fix the old or invalid links in docs
+ - Cleanup test-requirements
+ - Follow the new PTI for document build
+ - Updated from global requirements
+ - add lower-constraints job
+
+-------------------------------------------------------------------
Old:
----
python-zaqarclient-1.9.0.tar.gz
New:
----
python-zaqarclient-1.10.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zaqarclient.spec ++++++
--- /var/tmp/diff_new_pack.XwMhKN/_old 2018-09-07 15:39:45.166513687 +0200
+++ /var/tmp/diff_new_pack.XwMhKN/_new 2018-09-07 15:39:45.170513683 +0200
@@ -18,36 +18,36 @@
%global sname zaqarclient
Name: python-zaqarclient
-Version: 1.9.0
+Version: 1.10.0
Release: 0
Summary: Client Library for OpenStack Zaqar Queueing API
License: Apache-2.0
Group: Development/Languages/Python
-Url: http://launchpad.net/%{sname}
+URL: https://launchpad.net/%{sname}
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRequires: openstack-macros
-BuildRequires: python-ddt >= 1.0.1
+BuildRequires: python-ddt
BuildRequires: python-devel
-BuildRequires: python-fixtures >= 3.0.0
+BuildRequires: python-fixtures
BuildRequires: python-jsonschema >= 2.6.0
-BuildRequires: python-keystoneauth1 >= 3.3.0
-BuildRequires: python-mock >= 2.0.0
-BuildRequires: python-nose >= 1.3.7
-BuildRequires: python-nose-exclude >= 0.3.0
-BuildRequires: python-os-client-config >= 1.28.0
+BuildRequires: python-keystoneauth1 >= 3.4.0
+BuildRequires: python-mock
+BuildRequires: python-nose
+BuildRequires: python-nose-exclude
+BuildRequires: python-os-client-config
BuildRequires: python-osc-lib >= 1.8.0
BuildRequires: python-oslo.i18n >= 3.15.3
BuildRequires: python-oslo.log >= 3.36.0
BuildRequires: python-pbr >= 2.0.0
-BuildRequires: python-python-subunit >= 1.0.0
+BuildRequires: python-python-subunit
BuildRequires: python-requests >= 2.14.2
-BuildRequires: python-requests-mock >= 1.1.0
-BuildRequires: python-setuptools >= 16.0
-BuildRequires: python-testrepository >= 0.0.18
-BuildRequires: python-testscenarios >= 0.4
-BuildRequires: python-testtools >= 2.2.0
+BuildRequires: python-requests-mock
+BuildRequires: python-setuptools
+BuildRequires: python-testrepository
+BuildRequires: python-testscenarios
+BuildRequires: python-testtools
Requires: python-jsonschema >= 2.6.0
-Requires: python-keystoneauth1 >= 3.3.0
+Requires: python-keystoneauth1 >= 3.4.0
Requires: python-osc-lib >= 1.8.0
Requires: python-oslo.i18n >= 3.15.3
Requires: python-oslo.log >= 3.36.0
@@ -65,7 +65,7 @@
Summary: Documentation for OpenStack Zaqar Queueing API
Group: Documentation/HTML
BuildRequires: python-Sphinx
-BuildRequires: python-openstackdocstheme >= 1.18.1
+BuildRequires: python-openstackdocstheme
%description doc
Documentation for the client library for interacting with Openstack
@@ -80,7 +80,7 @@
%py2_build
# Build HTML docs and man page
-%{__python2} setup.py build_sphinx
+PBR_VERSION=%{version} sphinx-build -b html doc/source doc/build/html
%install
%py2_install
++++++ _service ++++++
--- /var/tmp/diff_new_pack.XwMhKN/_old 2018-09-07 15:39:45.202513649 +0200
+++ /var/tmp/diff_new_pack.XwMhKN/_new 2018-09-07 15:39:45.202513649 +0200
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/queens/open...</param>
+ <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/rocky/opens...</param>
<param name="output-name">python-zaqarclient.spec</param>
- <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/queens/requ...</param>
+ <param name="requirements">https://raw.githubusercontent.com/openstack/python-zaqarclient/stable/rocky/...</param>
<param name="changelog-email">cloud-devel@suse.de</param>
<param name="changelog-provider">gh,openstack,python-zaqarclient</param>
</service>
++++++ python-zaqarclient-1.9.0.tar.gz -> python-zaqarclient-1.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/.zuul.yaml new/python-zaqarclient-1.10.0/.zuul.yaml
--- old/python-zaqarclient-1.9.0/.zuul.yaml 1970-01-01 01:00:00.000000000 +0100
+++ new/python-zaqarclient-1.10.0/.zuul.yaml 2018-07-23 17:52:57.000000000 +0200
@@ -0,0 +1,7 @@
+- project:
+ check:
+ jobs:
+ - openstack-tox-lower-constraints
+ gate:
+ jobs:
+ - openstack-tox-lower-constraints
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/AUTHORS new/python-zaqarclient-1.10.0/AUTHORS
--- old/python-zaqarclient-1.9.0/AUTHORS 2018-01-29 19:05:12.000000000 +0100
+++ new/python-zaqarclient-1.10.0/AUTHORS 2018-07-23 17:56:42.000000000 +0200
@@ -35,6 +35,7 @@
MD NADEEM
Md Nadeem
Muharem Hrnjadovic
+Nguyen Hai
Oleksii Chuprykov
Ondřej Nový
OpenStack Release Bot
@@ -47,6 +48,7 @@
Sergey Lukjanov
Shaifali Agrawal
Shane Wang
+ShangXiao
Shuquan Huang
Sriram Madapusi Vasudevan
Steve Martinelli
@@ -58,13 +60,16 @@
Thomas Herve
Tony Breeds
Tony Xu
+Tovin Seven
Victoria Martinez de la Cruz
Victoria Martínez de la Cruz
+Yuanbin.Chen
Yuuichi Fujioka
ZhaoBo
Zhi Yan Liu
Zuul
avnish
+caishan
daohanli
digambar
dynarro
@@ -75,6 +80,7 @@
kgriffs
lingyongxu
liusheng
+melissaml
miaohb
rabi
rajat29
@@ -85,6 +91,7 @@
wanghao
wangxiyuan
xianming mao
+xywang <233652566@qq.com>
yangzhenyu
yanyanhu
zengjianfang
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/ChangeLog new/python-zaqarclient-1.10.0/ChangeLog
--- old/python-zaqarclient-1.9.0/ChangeLog 2018-01-29 19:05:12.000000000 +0100
+++ new/python-zaqarclient-1.10.0/ChangeLog 2018-07-23 17:56:42.000000000 +0200
@@ -1,10 +1,29 @@
CHANGES
=======
+1.10.0
+------
+
+* fix tox python3 overrides
+* Fix doc CI failure
+* Trivial: Update pypi url to new url
+* Follow the new PTI for document build
+* add lower-constraints job
+* Fix the old or invalid links in docs
+* Updated from global requirements
+* Fix zuul check failure at legacy-zaqarclient-dsvm-functional
+* Support client of bp support-md5-of-body
+* Add checksum to message \_\_init\_\_()
+* Update reno for stable/queens
+* Updated from global requirements
+* fix README.rst format error
+* Cleanup test-requirements
+
1.9.0
-----
* Support client for delayed queues
+* Change wrong url for zaqarclient
* Update queue metadata test
1.8.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/HACKING.rst new/python-zaqarclient-1.10.0/HACKING.rst
--- old/python-zaqarclient-1.9.0/HACKING.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/HACKING.rst 2018-07-23 17:52:57.000000000 +0200
@@ -273,7 +273,7 @@
These modules are "incubating" in openstack-common and are kept in sync
with the help of openstack-common's update.py script. See:
- http://wiki.openstack.org/CommonLibrary#Incubation
+ https://wiki.openstack.org/wiki/CommonLibrary#Incubation
The copy of the code should never be directly modified here. Please
always update openstack-common first and then run the script to copy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/PKG-INFO new/python-zaqarclient-1.10.0/PKG-INFO
--- old/python-zaqarclient-1.9.0/PKG-INFO 2018-01-29 19:05:13.000000000 +0100
+++ new/python-zaqarclient-1.10.0/PKG-INFO 2018-07-23 17:56:42.000000000 +0200
@@ -1,31 +1,29 @@
Metadata-Version: 1.1
Name: python-zaqarclient
-Version: 1.9.0
+Version: 1.10.0
Summary: Client Library for OpenStack Zaqar Messaging API
-Home-page: https://docs.openstack.org/zaqar/latest/
+Home-page: https://docs.openstack.org/python-zaqarclient/latest/
Author: OpenStack
Author-email: openstack-dev@lists.openstack.org
License: UNKNOWN
-Description-Content-Type: UNKNOWN
Description: ========================
Team and repository tags
========================
- .. image:: http://governance.openstack.org/badges/python-zaqarclient.svg
- :target: http://governance.openstack.org/reference/tags/index.html
+ .. image:: http://governance.openstack.org/tc/badges/python-zaqarclient.svg
+ :target: http://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
- *******************
Python Zaqar Client
- *******************
+ ===================
.. image:: https://img.shields.io/pypi/v/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Downloads
:Wiki: `Zaqar Wiki`_
@@ -36,16 +34,8 @@
Welcome to the `Zaqar`_ Python Client project!
- **Table of Contents**
-
- .. contents::
- :local:
- :depth: 2
- :backlinks: none
-
- ============
Installation
- ============
+ ------------
The latest stable release can be installed from PyPI::
@@ -56,19 +46,16 @@
pip install git+https://git.openstack.org/openstack/python-zaqarclient.git
- =================
What's in the box
- =================
+ -----------------
By installing python-zaqarclient you get programmatic access to the Zaqar v1.0
API library. Plus, it installs a plugin to python-openstackclient that allows
you to perform simple queue operations.
- ==========
How to use
==========
- -------------
Python client
-------------
@@ -77,7 +64,6 @@
.. _Python Client Wiki: https://wiki.openstack.org/wiki/Zaqar/PythonClient
- ----------------------
Command line interface
----------------------
@@ -95,7 +81,6 @@
.. _`OpenStack Client`: https://git.openstack.org/cgit/openstack/python-openstackclient
.. _`OpenStack Client Readme`: https://git.openstack.org/cgit/openstack/python-openstackclient/tree/README....
- ============
Contributing
============
@@ -117,7 +102,7 @@
* `Bugs`_ - issue tracking
* `Source`_
- .. _PyPi: https://pypi.python.org/pypi/python-zaqarclient
+ .. _PyPi: https://pypi.org/project/python-zaqarclient
.. _Bugs: https://bugs.launchpad.net/python-zaqarclient
.. _Source: https://git.openstack.org/cgit/openstack/python-zaqarclient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/README.rst new/python-zaqarclient-1.10.0/README.rst
--- old/python-zaqarclient-1.9.0/README.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/README.rst 2018-07-23 17:52:57.000000000 +0200
@@ -2,21 +2,20 @@
Team and repository tags
========================
-.. image:: http://governance.openstack.org/badges/python-zaqarclient.svg
- :target: http://governance.openstack.org/reference/tags/index.html
+.. image:: http://governance.openstack.org/tc/badges/python-zaqarclient.svg
+ :target: http://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
-*******************
Python Zaqar Client
-*******************
+===================
.. image:: https://img.shields.io/pypi/v/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Downloads
:Wiki: `Zaqar Wiki`_
@@ -27,16 +26,8 @@
Welcome to the `Zaqar`_ Python Client project!
-**Table of Contents**
-
-.. contents::
- :local:
- :depth: 2
- :backlinks: none
-
-============
Installation
-============
+------------
The latest stable release can be installed from PyPI::
@@ -47,19 +38,16 @@
pip install git+https://git.openstack.org/openstack/python-zaqarclient.git
-=================
What's in the box
-=================
+-----------------
By installing python-zaqarclient you get programmatic access to the Zaqar v1.0
API library. Plus, it installs a plugin to python-openstackclient that allows
you to perform simple queue operations.
-==========
How to use
==========
--------------
Python client
-------------
@@ -68,7 +56,6 @@
.. _Python Client Wiki: https://wiki.openstack.org/wiki/Zaqar/PythonClient
-----------------------
Command line interface
----------------------
@@ -86,7 +73,6 @@
.. _`OpenStack Client`: https://git.openstack.org/cgit/openstack/python-openstackclient
.. _`OpenStack Client Readme`: https://git.openstack.org/cgit/openstack/python-openstackclient/tree/README....
-============
Contributing
============
@@ -108,7 +94,7 @@
* `Bugs`_ - issue tracking
* `Source`_
-.. _PyPi: https://pypi.python.org/pypi/python-zaqarclient
+.. _PyPi: https://pypi.org/project/python-zaqarclient
.. _Bugs: https://bugs.launchpad.net/python-zaqarclient
.. _Source: https://git.openstack.org/cgit/openstack/python-zaqarclient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/requirements.txt new/python-zaqarclient-1.10.0/doc/requirements.txt
--- old/python-zaqarclient-1.9.0/doc/requirements.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/requirements.txt 2018-07-23 17:52:57.000000000 +0200
@@ -0,0 +1,8 @@
+# The order of packages is significant, because pip processes them in the order
+# of appearance. Changing the order has an impact on the overall integration
+# process, which may cause wedges in the gate later.
+sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
+os-client-config>=1.28.0 # Apache-2.0
+openstackdocstheme>=1.18.1 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
+requests-mock>=1.2.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/source/command/claim.rst new/python-zaqarclient-1.10.0/doc/source/command/claim.rst
--- old/python-zaqarclient-1.9.0/doc/source/command/claim.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/source/command/claim.rst 2018-07-23 17:52:57.000000000 +0200
@@ -55,7 +55,7 @@
.. _openstack_messaging_claim_create:
openstack messaging claim create
-----------------------
+--------------------------------
.. code-block:: console
@@ -109,7 +109,7 @@
.. _openstack_messaging_claim_query:
openstack messaging claim query
----------------------
+-------------------------------
.. code-block:: console
@@ -151,7 +151,7 @@
.. _openstack_messaging_claim_release:
openstack messaging claim release
------------------------
+---------------------------------
.. code-block:: console
@@ -184,7 +184,7 @@
**Positional arguments:**
-`` ``
+````
Name of the claimed queue.
````
@@ -201,7 +201,7 @@
.. _openstack_messaging_claim_renew:
openstack messaging claim renew
----------------------
+-------------------------------
.. code-block:: console
@@ -215,7 +215,7 @@
**Positional arguments:**
-`` ``
+````
Name of the claimed queue.
````
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/source/command/pool.rst new/python-zaqarclient-1.10.0/doc/source/command/pool.rst
--- old/python-zaqarclient-1.9.0/doc/source/command/pool.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/source/command/pool.rst 2018-07-23 17:52:57.000000000 +0200
@@ -60,7 +60,7 @@
.. _openstack_messaging_pool_create:
openstack messaging pool create
----------------------
+-------------------------------
.. code-block:: console
@@ -111,7 +111,7 @@
.. _openstack_messaging_pool_delete:
openstack messaging pool delete
----------------------
+-------------------------------
.. code-block:: console
@@ -153,7 +153,7 @@
.. _openstack_messaging_pool_list:
openstack messaging pool list
--------------------
+-----------------------------
.. code-block:: console
@@ -198,7 +198,7 @@
.. _openstack_messaging_pool_show:
openstack messaging pool show
--------------------
+-----------------------------
.. code-block:: console
@@ -254,7 +254,7 @@
.. _openstack_messaging_pool_update:
openstack messaging pool update
----------------------
+-------------------------------
.. code-block:: console
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/source/command/queue.rst new/python-zaqarclient-1.10.0/doc/source/command/queue.rst
--- old/python-zaqarclient-1.9.0/doc/source/command/queue.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/source/command/queue.rst 2018-07-23 17:52:57.000000000 +0200
@@ -48,7 +48,7 @@
.. _openstack_messaging_queue_create:
openstack messaging queue create
-----------------------
+--------------------------------
.. code-block:: console
@@ -83,7 +83,7 @@
.. _openstack_messaging_queue_delete:
openstack messaging queue delete
-----------------------
+--------------------------------
.. code-block:: console
@@ -118,7 +118,7 @@
.. _openstack_messaging_queue_get_metadata:
openstack messaging queue get metadata
-----------------------------
+--------------------------------------
.. code-block:: console
@@ -163,7 +163,7 @@
.. _openstack_messaging_queue_list:
openstack messaging queue list
---------------------
+------------------------------
.. code-block:: console
@@ -208,7 +208,7 @@
.. _openstack_messaging_queue_set_metadata:
openstack messaging queue set metadata
-----------------------------
+--------------------------------------
.. code-block:: console
@@ -264,7 +264,7 @@
.. _openstack_messaging_queue_signed_url:
openstack messaging queue signed url
---------------------------
+------------------------------------
.. code-block:: console
@@ -319,7 +319,7 @@
.. _openstack_messaging_queue_stats:
openstack messaging queue stats
----------------------
+-------------------------------
.. code-block:: console
@@ -357,13 +357,13 @@
**Optional arguments:**
-``--resource_types `
+``--resource_types ``
Resource types want to be purged. Support ``messages`` and ``subscriptions``.
.. _openstack_messaging_queue_purge:
openstack messaging queue purge
----------------------
+-------------------------------
.. code-block:: console
@@ -382,5 +382,5 @@
**Optional arguments:**
-``--resource_types `
+``--resource_types ``
Resource types want to be purged. Support ``messages`` and ``subscriptions``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/source/command/subscription.rst new/python-zaqarclient-1.10.0/doc/source/command/subscription.rst
--- old/python-zaqarclient-1.9.0/doc/source/command/subscription.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/source/command/subscription.rst 2018-07-23 17:52:57.000000000 +0200
@@ -51,7 +51,7 @@
.. _openstack_messaging_subscription_create:
openstack messaging subscription create
------------------------------
+---------------------------------------
.. code-block:: console
@@ -96,7 +96,7 @@
.. _openstack_messaging_subscription_delete:
openstack messaging subscription delete
------------------------------
+---------------------------------------
.. code-block:: console
@@ -137,7 +137,7 @@
.. _openstack_messaging_subscription_list:
openstack messaging subscription list
----------------------------
+-------------------------------------
.. code-block:: console
@@ -181,7 +181,7 @@
.. _openstack_messaging_subscription_show:
openstack messaging subscription show
----------------------------
+-------------------------------------
.. code-block:: console
@@ -238,7 +238,7 @@
.. _openstack_messaging_subscription_update:
openstack messaging subscription update
------------------------------
+---------------------------------------
.. code-block:: console
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/doc/source/index.rst new/python-zaqarclient-1.10.0/doc/source/index.rst
--- old/python-zaqarclient-1.9.0/doc/source/index.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/doc/source/index.rst 2018-07-23 17:52:57.000000000 +0200
@@ -32,8 +32,8 @@
be found on the `OpenStack Wiki`_, as well as in the user guides found on `docs.openstack.org`_.
.. _`Zaqar`: https://wiki.openstack.org/wiki/Zaqar
-.. _`OpenStack Wiki`: http://wiki.openstack.org
-.. _`docs.openstack.org`: http://docs.openstack.org
+.. _`OpenStack Wiki`: https://wiki.openstack.org/wiki/Main_Page
+.. _`docs.openstack.org`: https://docs.openstack.org
Contents
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/lower-constraints.txt new/python-zaqarclient-1.10.0/lower-constraints.txt
--- old/python-zaqarclient-1.9.0/lower-constraints.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/python-zaqarclient-1.10.0/lower-constraints.txt 2018-07-23 17:52:57.000000000 +0200
@@ -0,0 +1,79 @@
+alabaster==0.7.10
+appdirs==1.3.0
+Babel==2.3.4
+cliff==2.8.0
+cmd2==0.8.0
+colorama==0.3.9
+coverage==4.0
+ddt==1.0.1
+debtcollector==1.2.0
+decorator==3.4.0
+deprecation==1.0
+docutils==0.11
+dogpile.cache==0.6.2
+dulwich==0.15.0
+extras==1.0.0
+fixtures==3.0.0
+flake8==2.5.5
+hacking==0.12.0
+imagesize==0.7.1
+iso8601==0.1.11
+Jinja2==2.10
+jmespath==0.9.0
+jsonpatch==1.16
+jsonpointer==1.13
+jsonschema==2.6.0
+keystoneauth1==3.4.0
+linecache2==1.0.0
+MarkupSafe==1.0
+mccabe==0.2.1
+mock==2.0.0
+monotonic==0.6
+msgpack-python==0.4.0
+munch==2.1.0
+netaddr==0.7.18
+netifaces==0.10.4
+nose==1.3.7
+nose-exclude==0.3.0
+openstack.nose-plugin==0.7
+openstackdocstheme==1.18.1
+openstacksdk==0.11.2
+os-client-config==1.28.0
+os-service-types==1.2.0
+osc-lib==1.8.0
+oslo.config==5.2.0
+oslo.context==2.19.2
+oslo.i18n==3.15.3
+oslo.log==3.36.0
+oslo.serialization==2.18.0
+oslo.utils==3.33.0
+pbr==2.0.0
+pep8==1.5.7
+prettytable==0.7.2
+pyflakes==0.8.1
+Pygments==2.2.0
+pyinotify==0.9.6
+pyparsing==2.1.0
+pyperclip==1.5.27
+python-dateutil==2.5.3
+python-mimeparse==1.6.0
+python-subunit==1.0.0
+pytz==2013.6
+PyYAML==3.12
+reno==2.5.0
+requests==2.14.2
+requests-mock==1.1.0
+requestsexceptions==1.2.0
+rfc3986==0.3.1
+simplejson==3.5.1
+six==1.10.0
+snowballstemmer==1.2.1
+Sphinx==1.6.5
+sphinxcontrib-websupport==1.0.1
+stevedore==1.20.0
+termcolor==1.1.0
+testrepository==0.0.18
+testtools==2.2.0
+traceback2==1.4.0
+unittest2==1.1.0
+wrapt==1.7.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/PKG-INFO new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/PKG-INFO
--- old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/PKG-INFO 2018-01-29 19:05:12.000000000 +0100
+++ new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/PKG-INFO 2018-07-23 17:56:42.000000000 +0200
@@ -1,31 +1,29 @@
Metadata-Version: 1.1
Name: python-zaqarclient
-Version: 1.9.0
+Version: 1.10.0
Summary: Client Library for OpenStack Zaqar Messaging API
-Home-page: https://docs.openstack.org/zaqar/latest/
+Home-page: https://docs.openstack.org/python-zaqarclient/latest/
Author: OpenStack
Author-email: openstack-dev@lists.openstack.org
License: UNKNOWN
-Description-Content-Type: UNKNOWN
Description: ========================
Team and repository tags
========================
- .. image:: http://governance.openstack.org/badges/python-zaqarclient.svg
- :target: http://governance.openstack.org/reference/tags/index.html
+ .. image:: http://governance.openstack.org/tc/badges/python-zaqarclient.svg
+ :target: http://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
- *******************
Python Zaqar Client
- *******************
+ ===================
.. image:: https://img.shields.io/pypi/v/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/python-zaqarclient.svg
- :target: https://pypi.python.org/pypi/python-zaqarclient/
+ :target: https://pypi.org/project/python-zaqarclient/
:alt: Downloads
:Wiki: `Zaqar Wiki`_
@@ -36,16 +34,8 @@
Welcome to the `Zaqar`_ Python Client project!
- **Table of Contents**
-
- .. contents::
- :local:
- :depth: 2
- :backlinks: none
-
- ============
Installation
- ============
+ ------------
The latest stable release can be installed from PyPI::
@@ -56,19 +46,16 @@
pip install git+https://git.openstack.org/openstack/python-zaqarclient.git
- =================
What's in the box
- =================
+ -----------------
By installing python-zaqarclient you get programmatic access to the Zaqar v1.0
API library. Plus, it installs a plugin to python-openstackclient that allows
you to perform simple queue operations.
- ==========
How to use
==========
- -------------
Python client
-------------
@@ -77,7 +64,6 @@
.. _Python Client Wiki: https://wiki.openstack.org/wiki/Zaqar/PythonClient
- ----------------------
Command line interface
----------------------
@@ -95,7 +81,6 @@
.. _`OpenStack Client`: https://git.openstack.org/cgit/openstack/python-openstackclient
.. _`OpenStack Client Readme`: https://git.openstack.org/cgit/openstack/python-openstackclient/tree/README....
- ============
Contributing
============
@@ -117,7 +102,7 @@
* `Bugs`_ - issue tracking
* `Source`_
- .. _PyPi: https://pypi.python.org/pypi/python-zaqarclient
+ .. _PyPi: https://pypi.org/project/python-zaqarclient
.. _Bugs: https://bugs.launchpad.net/python-zaqarclient
.. _Source: https://git.openstack.org/cgit/openstack/python-zaqarclient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/SOURCES.txt new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/SOURCES.txt
--- old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/SOURCES.txt 2018-01-29 19:05:13.000000000 +0100
+++ new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/SOURCES.txt 2018-07-23 17:56:42.000000000 +0200
@@ -1,14 +1,17 @@
+.zuul.yaml
AUTHORS
ChangeLog
HACKING.rst
LICENSE
README.rst
+lower-constraints.txt
requirements.txt
setup.cfg
setup.py
test-requirements.txt
tox.ini
doc/README.md
+doc/requirements.txt
doc/source/client.rst
doc/source/command-line.rst
doc/source/conf.py
@@ -48,6 +51,7 @@
releasenotes/source/index.rst
releasenotes/source/ocata.rst
releasenotes/source/pike.rst
+releasenotes/source/queens.rst
releasenotes/source/unreleased.rst
tests/__init__.py
tests/functional/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/pbr.json new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/pbr.json
--- old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/pbr.json 2018-01-29 19:05:12.000000000 +0100
+++ new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/pbr.json 2018-07-23 17:56:42.000000000 +0200
@@ -1 +1 @@
-{"git_version": "c1689bf", "is_release": true}
\ No newline at end of file
+{"git_version": "1a50023", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/requires.txt new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/requires.txt
--- old/python-zaqarclient-1.9.0/python_zaqarclient.egg-info/requires.txt 2018-01-29 19:05:12.000000000 +0100
+++ new/python-zaqarclient-1.10.0/python_zaqarclient.egg-info/requires.txt 2018-07-23 17:56:42.000000000 +0200
@@ -4,7 +4,7 @@
stevedore>=1.20.0
jsonschema<3.0.0,>=2.6.0
oslo.i18n>=3.15.3
-oslo.log>=3.30.0
-oslo.utils>=3.31.0
-keystoneauth1>=3.2.0
-osc-lib>=1.7.0
+oslo.log>=3.36.0
+oslo.utils>=3.33.0
+keystoneauth1>=3.4.0
+osc-lib>=1.8.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/releasenotes/source/index.rst new/python-zaqarclient-1.10.0/releasenotes/source/index.rst
--- old/python-zaqarclient-1.9.0/releasenotes/source/index.rst 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/releasenotes/source/index.rst 2018-07-23 17:52:57.000000000 +0200
@@ -13,6 +13,7 @@
:maxdepth: 1
unreleased
+ queens
pike
ocata
@@ -32,7 +33,7 @@
Further details for historical OpenStack releases are found at the
`OpenStack Releases`_ page.
-.. _`OpenStack Releases`: http://releases.openstack.org/
+.. _`OpenStack Releases`: https://releases.openstack.org/
Indices and tables
==================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/releasenotes/source/queens.rst new/python-zaqarclient-1.10.0/releasenotes/source/queens.rst
--- old/python-zaqarclient-1.9.0/releasenotes/source/queens.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/python-zaqarclient-1.10.0/releasenotes/source/queens.rst 2018-07-23 17:52:57.000000000 +0200
@@ -0,0 +1,6 @@
+===================================
+ Queens Series Release Notes
+===================================
+
+.. release-notes::
+ :branch: stable/queens
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/requirements.txt new/python-zaqarclient-1.10.0/requirements.txt
--- old/python-zaqarclient-1.9.0/requirements.txt 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/requirements.txt 2018-07-23 17:52:57.000000000 +0200
@@ -9,8 +9,8 @@
# Oslo Packages
oslo.i18n>=3.15.3 # Apache-2.0
-oslo.log>=3.30.0 # Apache-2.0
-oslo.utils>=3.31.0 # Apache-2.0
+oslo.log>=3.36.0 # Apache-2.0
+oslo.utils>=3.33.0 # Apache-2.0
-keystoneauth1>=3.2.0 # Apache-2.0
-osc-lib>=1.7.0 # Apache-2.0
+keystoneauth1>=3.4.0 # Apache-2.0
+osc-lib>=1.8.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/setup.cfg new/python-zaqarclient-1.10.0/setup.cfg
--- old/python-zaqarclient-1.9.0/setup.cfg 2018-01-29 19:05:13.000000000 +0100
+++ new/python-zaqarclient-1.10.0/setup.cfg 2018-07-23 17:56:42.000000000 +0200
@@ -5,7 +5,7 @@
README.rst
author = OpenStack
author-email = openstack-dev@lists.openstack.org
-home-page = https://docs.openstack.org/zaqar/latest/
+home-page = https://docs.openstack.org/python-zaqarclient/latest/
classifier =
Development Status :: 4 - Beta
Environment :: Console
@@ -33,10 +33,13 @@
zaqarclient.transport =
http.v1 = zaqarclient.transport.http:HttpTransport
https.v1 = zaqarclient.transport.http:HttpTransport
+
http.v1.1 = zaqarclient.transport.http:HttpTransport
https.v1.1 = zaqarclient.transport.http:HttpTransport
+
http.v2 = zaqarclient.transport.http:HttpTransport
https.v2 = zaqarclient.transport.http:HttpTransport
+
ws.v1 = zaqarclient.transport.ws:WebsocketTransport
ws.v1.1 = zaqarclient.transport.ws:WebsocketTransport
ws.v2 = zaqarclient.transport.ws:WebsocketTransport
@@ -79,6 +82,7 @@
pool_update = zaqarclient.queues.v2.cli:OldUpdatePool
pool_delete = zaqarclient.queues.v2.cli:OldDeletePool
pool_list = zaqarclient.queues.v2.cli:OldListPools
+
messaging_queue_list = zaqarclient.queues.v2.cli:ListQueues
messaging_queue_create = zaqarclient.queues.v2.cli:CreateQueue
messaging_queue_delete = zaqarclient.queues.v2.cli:DeleteQueue
@@ -91,11 +95,13 @@
messaging_pool_update = zaqarclient.queues.v2.cli:UpdatePool
messaging_pool_delete = zaqarclient.queues.v2.cli:DeletePool
messaging_pool_list = zaqarclient.queues.v2.cli:ListPools
+
messaging_flavor_list = zaqarclient.queues.v2.cli:ListFlavors
messaging_flavor_delete = zaqarclient.queues.v2.cli:DeleteFlavor
messaging_flavor_update = zaqarclient.queues.v2.cli:UpdateFlavor
messaging_flavor_show = zaqarclient.queues.v2.cli:ShowFlavor
messaging_flavor_create = zaqarclient.queues.v2.cli:CreateFlavor
+
claim_create = zaqarclient.queues.v2.cli:OldCreateClaim
claim_query = zaqarclient.queues.v2.cli:OldQueryClaim
claim_renew = zaqarclient.queues.v2.cli:OldRenewClaim
@@ -106,6 +112,7 @@
subscription_show = zaqarclient.queues.v2.cli:OldShowSubscription
subscription_list = zaqarclient.queues.v2.cli:OldListSubscriptions
queue_signed_url = zaqarclient.queues.v2.cli:OldCreateSignedUrl
+
messaging_claim_create = zaqarclient.queues.v2.cli:CreateClaim
messaging_claim_query = zaqarclient.queues.v2.cli:QueryClaim
messaging_claim_renew = zaqarclient.queues.v2.cli:RenewClaim
@@ -116,11 +123,14 @@
messaging_subscription_show = zaqarclient.queues.v2.cli:ShowSubscription
messaging_subscription_list = zaqarclient.queues.v2.cli:ListSubscriptions
messaging_queue_signed_url = zaqarclient.queues.v2.cli:CreateSignedUrl
+
messaging_ping = zaqarclient.queues.v2.cli:Ping
messaging_health = zaqarclient.queues.v2.cli:Health
messaging_homedoc = zaqarclient.queues.v2.cli:HomeDoc
+
message_post = zaqarclient.queues.v2.cli:OldPostMessages
message_list = zaqarclient.queues.v2.cli:OldListMessages
+
messaging_message_post = zaqarclient.queues.v2.cli:PostMessages
messaging_message_list = zaqarclient.queues.v2.cli:ListMessages
openstack.cli.extension =
@@ -130,14 +140,6 @@
where = tests
verbosity = 2
-[build_sphinx]
-source-dir = doc/source
-build-dir = doc/build
-all_files = 1
-
-[upload_sphinx]
-upload-dir = doc/build/html
-
[wheel]
universal = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/test-requirements.txt new/python-zaqarclient-1.10.0/test-requirements.txt
--- old/python-zaqarclient-1.9.0/test-requirements.txt 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/test-requirements.txt 2018-07-23 17:52:57.000000000 +0200
@@ -7,7 +7,6 @@
# Unit testing
fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0.0 # BSD
-python-subunit>=1.0.0 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
@@ -20,10 +19,4 @@
coverage!=4.4,>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
-
-# Documentation
-sphinx>=1.6.2 # BSD
-os-client-config>=1.28.0 # Apache-2.0
-openstackdocstheme>=1.17.0 # Apache-2.0
-reno>=2.5.0 # Apache-2.0
-requests-mock>=1.1.0 # Apache-2.0
+requests-mock>=1.2.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/tox.ini new/python-zaqarclient-1.10.0/tox.ini
--- old/python-zaqarclient-1.9.0/tox.ini 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/tox.ini 2018-07-23 17:52:57.000000000 +0200
@@ -27,21 +27,35 @@
sitepackages = True
[testenv:pep8]
+basepython = python3
commands = flake8
[testenv:cover]
+basepython = python3
setenv = {[testenv]setenv}
NOSE_WITH_COVERAGE=1
[testenv:venv]
+basepython = python3
commands = {posargs}
[testenv:docs]
-commands = python setup.py build_sphinx
+basepython = python3
+deps = -r{toxinidir}/doc/requirements.txt
+commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
+basepython = python3
+deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*.egg
+
+[testenv:lower-constraints]
+basepython = python3
+deps =
+ -c{toxinidir}/lower-constraints.txt
+ -r{toxinidir}/test-requirements.txt
+ -r{toxinidir}/requirements.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v1/client.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v1/client.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v1/client.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v1/client.py 2018-07-23 17:52:57.000000000 +0200
@@ -32,15 +32,10 @@
:type url: `six.text_type`
:param version: API Version pointing to.
:type version: `int`
- :param options: Extra options:
- - client_uuid: Custom client uuid. A new one
- will be generated, if not passed.
- - auth_opts: Authentication options:
- - backend
- - options
+ :param conf: CONF object.
+ :type conf: `oslo_config.cfg.CONF`
:param session: keystone session. But it's just place holder, we wont'
support it in v1.
- :type options: `dict`
"""
queues_module = queues
@@ -148,7 +143,7 @@
"""Gets a list of pools from the server
:param params: Filters to use for getting pools
- :type params: **kwargs dict.
+ :type params: dict.
:returns: A list of pools
:rtype: `list`
@@ -179,7 +174,7 @@
"""Gets a list of flavors from the server
:param params: Filters to use for getting flavors
- :type params: **kwargs dict.
+ :type params: dict.
:returns: A list of flavors
:rtype: `list`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v1/message.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v1/message.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v1/message.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v1/message.py 2018-07-23 17:52:57.000000000 +0200
@@ -23,13 +23,14 @@
Attributes are only downloaded once - at creation time.
"""
def __init__(self, queue, ttl, age, body, href=None, id=None,
- claim_id=None, claim_count=0):
+ claim_id=None, claim_count=0, checksum=None):
self.queue = queue
self.href = href
self.ttl = ttl
self.age = age
self.body = body
self.claim_count = claim_count
+ self.checksum = checksum
# NOTE(flaper87): Is this really
# necessary? Should this be returned
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/claim.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/claim.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/claim.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/claim.py 2018-07-23 17:52:57.000000000 +0200
@@ -14,7 +14,30 @@
# limitations under the License.
from zaqarclient.queues.v1 import claim
+from zaqarclient.queues.v1 import iterator as iterate
+from zaqarclient.queues.v2 import core
+from zaqarclient.queues.v2 import message
class Claim(claim.Claim):
- pass
+
+ def _create(self):
+ req, trans = self._queue.client._request_and_transport()
+ msgs = core.claim_create(trans, req,
+ self._queue._name,
+ ttl=self._ttl,
+ grace=self._grace,
+ limit=self._limit)
+
+ # extract the id from the first message
+ if msgs is not None:
+ if self._queue.client.api_version >= 1.1:
+ msgs = msgs['messages']
+ self.id = msgs[0]['href'].split('=')[-1]
+
+ self._message_iter = iterate._Iterator(self._queue.client,
+ msgs or [],
+ 'messages',
+ message.create_object(
+ self._queue
+ ))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/cli.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/cli.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/cli.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/cli.py 2018-07-23 17:52:57.000000000 +0200
@@ -249,7 +249,7 @@
else:
messages = queue.messages(**kwargs)
- columns = ("ID", "Body", "TTL", "Age", "Claim ID")
+ columns = ("ID", "Body", "TTL", "Age", "Claim ID", "Checksum")
return (columns,
(utils.get_item_properties(s, columns) for s in messages))
@@ -700,7 +700,25 @@
class CreateClaim(cli.CreateClaim):
"""Create claim and return a list of claimed messages"""
- pass
+
+ def take_action(self, parsed_args):
+ client = _get_client(self, parsed_args)
+
+ kwargs = {}
+ if parsed_args.ttl is not None:
+ kwargs["ttl"] = parsed_args.ttl
+ if parsed_args.grace is not None:
+ kwargs["grace"] = parsed_args.grace
+ if parsed_args.limit is not None:
+ kwargs["limit"] = parsed_args.limit
+
+ queue = client.queue(parsed_args.queue_name, auto_create=False)
+ keys = ("claim_id", "id", "ttl", "age", 'body', "checksum")
+ columns = ("Claim_ID", "Message_ID", "TTL", "Age", "Messages",
+ "Checksum")
+ data = queue.claim(**kwargs)
+ return (columns,
+ (utils.get_item_properties(s, keys) for s in data))
class OldCreateClaim(cli.OldCreateClaim):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/client.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/client.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/client.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/client.py 2018-07-23 17:52:57.000000000 +0200
@@ -29,13 +29,8 @@
:type url: `six.text_type`
:param version: API Version pointing to.
:type version: `int`
- :param options: Extra options:
- - client_uuid: Custom client uuid. A new one
- will be generated, if not passed.
- - auth_opts: Authentication options:
- - backend
- - options
- :type options: `dict`
+ :param conf: CONF object.
+ :type conf: `oslo_config.cfg.CONF`
"""
queues_module = queues
@@ -78,7 +73,7 @@
"""Gets a list of subscriptions from the server
:param params: Filters to use for getting subscriptions
- :type params: **kwargs dict.
+ :type params: dict.
:returns: A list of subscriptions
:rtype: `list`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/message.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/message.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/message.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/message.py 2018-07-23 17:52:57.000000000 +0200
@@ -19,13 +19,14 @@
class Message(message.Message):
def __init__(self, queue, ttl, age, body, href=None, id=None,
- claim_id=None, claim_count=0):
+ claim_id=None, claim_count=0, checksum=None):
self.queue = queue
self.href = href
self.ttl = ttl
self.age = age
self.body = body
self.claim_count = claim_count
+ self.checksum = checksum
# NOTE(flaper87): Is this really
# necessary? Should this be returned
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/queues.py new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/queues.py
--- old/python-zaqarclient-1.9.0/zaqarclient/queues/v2/queues.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/queues/v2/queues.py 2018-07-23 17:52:57.000000000 +0200
@@ -14,6 +14,7 @@
# limitations under the License.
from zaqarclient.queues.v1 import queues
+from zaqarclient.queues.v2 import claim as claim_api
from zaqarclient.queues.v2 import core
from zaqarclient.queues.v2 import message
@@ -88,6 +89,10 @@
core.queue_purge(trans, req, self._name,
resource_types=resource_types)
+ def claim(self, id=None, ttl=None, grace=None,
+ limit=None):
+ return claim_api.Claim(self, id=id, ttl=ttl, grace=grace, limit=limit)
+
def create_object(parent):
return lambda args: Queue(parent, args["name"], href=args.get("href"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-zaqarclient-1.9.0/zaqarclient/tests/queues/queues.py new/python-zaqarclient-1.10.0/zaqarclient/tests/queues/queues.py
--- old/python-zaqarclient-1.9.0/zaqarclient/tests/queues/queues.py 2018-01-29 19:02:11.000000000 +0100
+++ new/python-zaqarclient-1.10.0/zaqarclient/tests/queues/queues.py 2018-07-23 17:52:57.000000000 +0200
@@ -643,7 +643,10 @@
expect_metadata = {'type': 'Bank Accounts', 'name': 'test1',
'_max_messages_post_size': 262144,
'_default_message_ttl': 3600,
- '_default_message_delay': 0}
+ '_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None}
metadata = queue.metadata(force_reload=True)
self.assertEqual(expect_metadata, metadata)
@@ -659,7 +662,10 @@
expect_metadata = {'type': 'Bank Accounts', 'name': 'test1',
'_max_messages_post_size': 262144,
'_default_message_ttl': 3600,
- '_default_message_delay': 0}
+ '_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None}
self.assertEqual(expect_metadata, metadata)
# replace 'type', '_default_message_ttl' and add a new one 'age'
@@ -671,7 +677,10 @@
expect_metadata = {'type': 'test', 'name': 'test1', 'age': 13,
'_max_messages_post_size': 262144,
'_default_message_ttl': 1000,
- '_default_message_delay': 0}
+ '_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None}
self.assertEqual(expect_metadata, metadata)
# replace 'name', remove 'type', '_default_message_ttl' and add a new
@@ -686,7 +695,10 @@
expect_metadata = {'name': 'test2', 'age': 13, 'fake': 'test_fake',
'_max_messages_post_size': 262144,
'_default_message_ttl': 3600,
- '_default_message_delay': 0}
+ '_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None}
self.assertEqual(expect_metadata, metadata)
# replace 'name' to empty string and add a new empty dict 'empty_dict'.
@@ -701,6 +713,9 @@
expect_metadata = {'name': '', 'age': 13, 'fake': 'test_fake',
'_max_messages_post_size': 262144,
'_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None,
'_default_message_ttl': 3600, 'empty_dict': {}}
self.assertEqual(expect_metadata, metadata)
@@ -711,5 +726,8 @@
metadata = queue.metadata()
expect_metadata = {'_max_messages_post_size': 262144,
'_default_message_ttl': 3600,
- '_default_message_delay': 0}
+ '_default_message_delay': 0,
+ '_dead_letter_queue': None,
+ '_dead_letter_queue_messages_ttl': None,
+ '_max_claim_count': None}
self.assertEqual(expect_metadata, metadata)