commit python-sphinxcontrib-docbookrestapi for openSUSE:Factory

2015-10-30 Thread h_root
Hello community,

here is the log from the commit of package python-sphinxcontrib-docbookrestapi 
for openSUSE:Factory checked in at 2015-10-30 13:43:55

Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi (Old)
 and  /work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new 
(New)


Package is "python-sphinxcontrib-docbookrestapi"

Changes:

--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi/python-sphinxcontrib-docbookrestapi.changes
  2014-04-20 11:36:37.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new/python-sphinxcontrib-docbookrestapi.changes
 2015-10-30 13:43:56.0 +0100
@@ -2 +2 @@
-Mon Apr 14 13:36:51 UTC 2014 - dmuel...@suse.com
+Wed Jul 29 11:04:45 UTC 2015 - tbecht...@suse.com
@@ -4 +4 @@
-- add 0001-Fix-the-code-to-work-with-Python2.6.patch 
+- Unify spec file. Use fedora compatible files macros
@@ -7 +7 @@
-Wed Apr  9 13:09:49 UTC 2014 - dmuel...@suse.com
+Wed Sep  3 13:39:57 UTC 2014 - dmuel...@suse.com
@@ -9 +9,21 @@
-- go back to released version (0.1) 
+- update to 0.2.1:
+  * Bump to 0.2.1
+  * add venv to tox.ini
+  * Bump to 0.2
+  * Add the Python 3 classifiers in setup.cfg
+  * Declare sphinxcontrib.docbookrestapi package
+  * Properly declare namespace package
+  * Properly document the enumeration type
+  * Allow foo_name as well as foo_id in paths
+  * Remove 'xmlns' attribute of 'param' elements
+  * Use 'para' elements instead of 'p' ones
+  * Add the top-level comment that is now mandatory in WADL files
+  * Add an XML declaration in the output
+  * Use 'wadl:doc' instead of 'doc' and fix its attributes
+  * Add a mandatory 'id' attribute to 'resource' elements
+  * Removes whitespaces at the end of self-closing tags
+  * Sync with global requirements
+  * Add tests
+  * Python 3 compatibility
+  * Fix the code to work with Python2.6
+  * tox.ini: clean the pep8 target
@@ -11 +31 @@
---
+---

Old:

  0001-Fix-the-code-to-work-with-Python2.6.patch
  sphinxcontrib-docbookrestapi-0.1.tar.gz

New:

  sphinxcontrib-docbookrestapi-0.2.1.tar.gz



Other differences:
--
++ python-sphinxcontrib-docbookrestapi.spec ++
--- /var/tmp/diff_new_pack.M4K4Qy/_old  2015-10-30 13:43:56.0 +0100
+++ /var/tmp/diff_new_pack.M4K4Qy/_new  2015-10-30 13:43:56.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sphinxcontrib-docbookrestapi
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,16 +17,16 @@
 
 
 Name:   python-sphinxcontrib-docbookrestapi
-Version:0.1
+Version:0.2.1
 Release:0
 Summary:Extension to Sphinx for generating REST API documentation
 License:Apache-2.0
 Group:  Development/Languages/Python
-Url:https://github.com/stackforge/sphinxcontrib-docbookrestapi
-Source: sphinxcontrib-docbookrestapi-%{version}.tar.gz
+Url:
https://git.openstack.org/cgit/stackforge/sphinxcontrib-docbookrestapi/
+Source: 
https://pypi.python.org/packages/source/s/sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM speili...@suse.com -- 
https://review.openstack.org/#/c/84132/
 Patch0: 0001-Properly-declare-namespace-package.patch
-Patch1: 0001-Fix-the-code-to-work-with-Python2.6.patch
+BuildRequires:  openstack-suse-macros
 BuildRequires:  python-devel
 BuildRequires:  python-pbr
 Requires:   python-Sphinx
@@ -45,17 +45,16 @@
 %prep
 %setup -q -n sphinxcontrib-docbookrestapi-%{version}
 %patch0 -p1
-%patch1 -p1
 
 %build
-python setup.py build
+%{__python2} setup.py build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS LICENSE ChangeLog README.rst
-%{python_sitelib}/*
+%{python2_sitelib}/*
 
 %changelog

++ _service ++
--- /var/tmp/diff_new_pack.M4K4Qy/_old  2015-10-30 13:43:57.0 +0100
+++ /var/tmp/diff_new_pack.M4K4Qy/_new  2015-10-30 13:43:57.0 +0100
@@ -1,16 +1,12 @@
 
-  
-git://github.com/stackforge/sphinxcontrib-docbookrestapi.git
-git
-.git
-@PARENT_TAG@+git.%ct.%h
-master
+   
 enable
   
-  
-sphinxcontrib-docbookrestapi-*.tar
+  
+sphinxcontrib-docbookrestapi
+  
+  
   
-
   
 enable
   

++ sphinx

commit python-sphinxcontrib-docbookrestapi for openSUSE:Factory

2014-04-20 Thread h_root
Hello community,

here is the log from the commit of package python-sphinxcontrib-docbookrestapi 
for openSUSE:Factory checked in at 2014-04-20 11:36:35

Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi (Old)
 and  /work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new 
(New)


Package is "python-sphinxcontrib-docbookrestapi"

Changes:

--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi/python-sphinxcontrib-docbookrestapi.changes
  2014-04-13 13:18:21.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new/python-sphinxcontrib-docbookrestapi.changes
 2014-04-20 11:36:37.0 +0200
@@ -1,0 +2,5 @@
+Mon Apr 14 13:36:51 UTC 2014 - dmuel...@suse.com
+
+- add 0001-Fix-the-code-to-work-with-Python2.6.patch 
+
+---

New:

  0001-Fix-the-code-to-work-with-Python2.6.patch



Other differences:
--
++ python-sphinxcontrib-docbookrestapi.spec ++
--- /var/tmp/diff_new_pack.xKMNXN/_old  2014-04-20 11:36:38.0 +0200
+++ /var/tmp/diff_new_pack.xKMNXN/_new  2014-04-20 11:36:38.0 +0200
@@ -26,6 +26,7 @@
 Source: sphinxcontrib-docbookrestapi-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM speili...@suse.com -- 
https://review.openstack.org/#/c/84132/
 Patch0: 0001-Properly-declare-namespace-package.patch
+Patch1: 0001-Fix-the-code-to-work-with-Python2.6.patch
 BuildRequires:  python-devel
 BuildRequires:  python-pbr
 Requires:   python-Sphinx
@@ -44,6 +45,7 @@
 %prep
 %setup -q -n sphinxcontrib-docbookrestapi-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 python setup.py build

++ 0001-Fix-the-code-to-work-with-Python2.6.patch ++
>From 9ad4e8f5fe41b3c9bf334a3f9aea925a5128eddc Mon Sep 17 00:00:00 2001
From: Cyril Roelandt 
Date: Fri, 29 Nov 2013 18:44:09 +0100
Subject: [PATCH] Fix the code to work with Python2.6

It was previously using some features introduced in Python2.7.

Change-Id: I3b4b2895f231cf98235efd16f65eb123db8a9157
---
 sphinxcontrib/docbookrestapi/docbook.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sphinxcontrib/docbookrestapi/docbook.py 
b/sphinxcontrib/docbookrestapi/docbook.py
index 63ecfd9..e923e53 100644
--- a/sphinxcontrib/docbookrestapi/docbook.py
+++ b/sphinxcontrib/docbookrestapi/docbook.py
@@ -30,7 +30,7 @@ def generate_id(path, method):
 path = path.replace('(', '')
 path = path.replace(')', '')
 elems = path.split('/')
-elems = filter(lambda x: x, elems)  # Remove empty strings
+elems = list(filter(lambda x: x, elems))  # Remove empty strings
 elems = elems[1:]  # Remove "vx" (v1, v2...)
 
 n_elems = len(elems)
@@ -189,12 +189,12 @@ class MyNodeVisitor(SparseNodeVisitor):
 self.in_method_definition = False
 
 def visit_desc(self, node):
-attrs = {k: v for (k, v) in node.attlist()}
+attrs = dict(node.attlist())
 if attrs['domain'] == 'http':
 self.in_method_definition = True
 
 def visit_desc_signature(self, node):
-attrs = {k: v for (k, v) in node.attlist()}
+attrs = dict(node.attlist())
 if 'method' in attrs and 'path' in attrs:
 method_id = generate_id(attrs['path'], attrs['method'])
 self.current_method = ET.Element('method', {
-- 
1.9.0

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-sphinxcontrib-docbookrestapi for openSUSE:Factory

2014-04-13 Thread h_root
Hello community,

here is the log from the commit of package python-sphinxcontrib-docbookrestapi 
for openSUSE:Factory checked in at 2014-04-13 13:18:20

Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi (Old)
 and  /work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new 
(New)


Package is "python-sphinxcontrib-docbookrestapi"

Changes:

--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi/python-sphinxcontrib-docbookrestapi.changes
  2014-03-31 20:44:16.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new/python-sphinxcontrib-docbookrestapi.changes
 2014-04-13 13:18:21.0 +0200
@@ -1,0 +2,5 @@
+Wed Apr  9 13:09:49 UTC 2014 - dmuel...@suse.com
+
+- go back to released version (0.1) 
+
+--

Old:

  sphinxcontrib-docbookrestapi-0.1.dev3.g8b44f51.tar.bz2

New:

  sphinxcontrib-docbookrestapi-0.1.tar.gz



Other differences:
--
++ python-sphinxcontrib-docbookrestapi.spec ++
--- /var/tmp/diff_new_pack.82kdFb/_old  2014-04-13 13:18:22.0 +0200
+++ /var/tmp/diff_new_pack.82kdFb/_new  2014-04-13 13:18:22.0 +0200
@@ -17,13 +17,13 @@
 
 
 Name:   python-sphinxcontrib-docbookrestapi
-Version:0.1.dev3.g8b44f51
+Version:0.1
 Release:0
 Summary:Extension to Sphinx for generating REST API documentation
 License:Apache-2.0
 Group:  Development/Languages/Python
 Url:https://github.com/stackforge/sphinxcontrib-docbookrestapi
-Source: sphinxcontrib-docbookrestapi-%{version}.tar.bz2
+Source: sphinxcontrib-docbookrestapi-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM speili...@suse.com -- 
https://review.openstack.org/#/c/84132/
 Patch0: 0001-Properly-declare-namespace-package.patch
 BuildRequires:  python-devel

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-sphinxcontrib-docbookrestapi for openSUSE:Factory

2014-03-31 Thread h_root
Hello community,

here is the log from the commit of package python-sphinxcontrib-docbookrestapi 
for openSUSE:Factory checked in at 2014-03-31 20:44:15

Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi (Old)
 and  /work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new 
(New)


Package is "python-sphinxcontrib-docbookrestapi"

Changes:

--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-docbookrestapi/python-sphinxcontrib-docbookrestapi.changes
  2014-01-09 15:40:28.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-docbookrestapi.new/python-sphinxcontrib-docbookrestapi.changes
 2014-03-31 20:44:16.0 +0200
@@ -1,0 +2,20 @@
+Mon Mar 31 13:54:03 UTC 2014 - speili...@suse.com
+
+- Add 0001-Properly-declare-namespace-package.patch: Fix build 
+  with setuptools>0.7
+
+---
+Wed Jan  8 15:42:59 UTC 2014 - speili...@suse.com
+
+- Update to version 0.1+git.1386695359.8b44f51:
+  + Python 3 compatibility
+  + Fix the code to work with Python2.6
+  + tox.ini: clean the pep8 target
+  + Allow complex types for parameters
+  + Fix the generate_id function with PUT methods
+  + Add .gitreview file
+  + Wrap lines in the generated WADL file
+  + Generated human-readable method ids and titles
+- Move to _service using tar_scm and python_sdist
+
+---

Old:

  sphinxcontrib-docbookrestapi-0.1.tar.gz

New:

  0001-Properly-declare-namespace-package.patch
  _service
  _servicedata
  sphinxcontrib-docbookrestapi-0.1.dev3.g8b44f51.tar.bz2



Other differences:
--
++ python-sphinxcontrib-docbookrestapi.spec ++
--- /var/tmp/diff_new_pack.wgKTVj/_old  2014-03-31 20:44:16.0 +0200
+++ /var/tmp/diff_new_pack.wgKTVj/_new  2014-03-31 20:44:16.0 +0200
@@ -17,16 +17,19 @@
 
 
 Name:   python-sphinxcontrib-docbookrestapi
-Version:0.1
+Version:0.1.dev3.g8b44f51
 Release:0
 Summary:Extension to Sphinx for generating REST API documentation
 License:Apache-2.0
 Group:  Development/Languages/Python
 Url:https://github.com/stackforge/sphinxcontrib-docbookrestapi
-Source: 
https://pypi.python.org/packages/source/s/sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-%{version}.tar.gz
+Source: sphinxcontrib-docbookrestapi-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM speili...@suse.com -- 
https://review.openstack.org/#/c/84132/
+Patch0: 0001-Properly-declare-namespace-package.patch
 BuildRequires:  python-devel
 BuildRequires:  python-pbr
 Requires:   python-Sphinx
+Requires:   python-pytidylib6
 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()")}
@@ -40,6 +43,7 @@
 
 %prep
 %setup -q -n sphinxcontrib-docbookrestapi-%{version}
+%patch0 -p1
 
 %build
 python setup.py build

++ 0001-Properly-declare-namespace-package.patch ++
>From e57ae0157bd5f0e8f504bc85f26f6b9dc49e3695 Mon Sep 17 00:00:00 2001
From: Sascha Peilicke 
Date: Mon, 31 Mar 2014 15:33:30 +0200
Subject: [PATCH] Properly declare namespace package

The 'sphinxcontrib' is declared a namespace package by setuptools means
via pbr.  Setuptools 0.7 or later mandates explicit declaration via
pkg_resources.declare_namespace (PEP-382).

Otherwise refuses to "setup.py build" on systems with setuptools>0.7.

Change-Id: If0d214a3b2d148450faa2b09292aafcdcf6837e9
---
 sphinxcontrib/__init__.py | 17 +
 1 file changed, 17 insertions(+)

diff --git a/sphinxcontrib/__init__.py b/sphinxcontrib/__init__.py
index e69de29..4e4e048 100644
--- a/sphinxcontrib/__init__.py
+++ b/sphinxcontrib/__init__.py
@@ -0,0 +1,17 @@
+# Copyright (C) 2013 eNovance SAS 
+#
+# Author: Cyril Roelandt 
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+__import__('pkg_resources').declare_namespace(__name__)
-- 
1.9.1

++ _service ++

  
git://github.com/stackforge/sphinxcontrib-docbookrestapi.git
git
.git
@PARENT_TAG@+git.%ct.%h
ma