Hello community,

here is the log from the commit of package python-selection for 
openSUSE:Factory checked in at 2019-03-01 16:50:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-selection (Old)
 and      /work/SRC/openSUSE:Factory/.python-selection.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-selection"

Fri Mar  1 16:50:06 2019 rev:2 rq:680459 version:0.0.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-selection/python-selection.changes        
2018-11-29 22:58:24.407653832 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-selection.new.28833/python-selection.changes 
    2019-03-01 16:50:07.993737781 +0100
@@ -1,0 +2,7 @@
+Fri Mar  1 11:05:33 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.0.14:
+  * distribute license in the tarball
+  * various small fixes
+
+-------------------------------------------------------------------

Old:
----
  LICENSE
  selection-0.0.13.tar.gz

New:
----
  selection-0.0.14.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-selection.spec ++++++
--- /var/tmp/diff_new_pack.lVMO4M/_old  2019-03-01 16:50:10.885736691 +0100
+++ /var/tmp/diff_new_pack.lVMO4M/_new  2019-03-01 16:50:10.917736679 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-selection
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -18,14 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-selection
-Version:        0.0.13
+Version:        0.0.14
 Release:        0
 Summary:        API to extract content from HTML & XML documents
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/lorien/selection
 Source:         
https://files.pythonhosted.org/packages/source/s/selection/selection-%{version}.tar.gz
-Source99:       
https://raw.githubusercontent.com/lorien/selection/master/LICENSE
 BuildRequires:  %{python_module lxml}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
@@ -43,7 +42,6 @@
 
 %prep
 %setup -q -n selection-%{version}
-cp %{SOURCE99} .
 
 %build
 %python_build

++++++ selection-0.0.13.tar.gz -> selection-0.0.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/LICENSE new/selection-0.0.14/LICENSE
--- old/selection-0.0.13/LICENSE        1970-01-01 01:00:00.000000000 +0100
+++ new/selection-0.0.14/LICENSE        2018-04-22 19:18:11.000000000 +0200
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-2018, Gregory Petukhov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/MANIFEST.in 
new/selection-0.0.14/MANIFEST.in
--- old/selection-0.0.13/MANIFEST.in    1970-01-01 01:00:00.000000000 +0100
+++ new/selection-0.0.14/MANIFEST.in    2018-04-22 19:17:14.000000000 +0200
@@ -0,0 +1 @@
+include LICENSE
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/PKG-INFO 
new/selection-0.0.14/PKG-INFO
--- old/selection-0.0.13/PKG-INFO       2017-01-23 17:28:55.000000000 +0100
+++ new/selection-0.0.14/PKG-INFO       2018-08-07 17:09:16.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: selection
-Version: 0.0.13
+Version: 0.0.14
 Summary: API to extract content from HTML & XML documents
 Home-page: UNKNOWN
 Author: Gregory Petukhov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/README.rst 
new/selection-0.0.14/README.rst
--- old/selection-0.0.13/README.rst     2017-01-11 19:38:47.000000000 +0100
+++ new/selection-0.0.14/README.rst     2017-02-06 04:19:43.000000000 +0100
@@ -4,17 +4,13 @@
 
 .. image:: https://travis-ci.org/lorien/selection.png?branch=master
     :target: https://travis-ci.org/lorien/selection
+    :alt: Travis CI
 
 .. image:: https://coveralls.io/repos/lorien/selection/badge.svg?branch=master
     :target: https://coveralls.io/r/lorien/selection?branch=master
+    :alt: coveralls.io
 
-.. image:: https://img.shields.io/pypi/dm/selection.svg
-    :target: https://pypi.python.org/pypi/selection
-
-.. image:: https://img.shields.io/pypi/v/selection.svg
-    :target: https://pypi.python.org/pypi/selection
-
-API to extract data from HTML and XML documents.
+API to query DOM tree of HTML/XML document.
 
 
 Usage Example
@@ -41,6 +37,7 @@
 
 .. code:: bash
 
+    pip install -U pip setuptools
     pip install -U selection
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/selection/__init__.py 
new/selection-0.0.14/selection/__init__.py
--- old/selection-0.0.13/selection/__init__.py  2017-01-23 17:28:47.000000000 
+0100
+++ new/selection-0.0.14/selection/__init__.py  2018-08-07 17:08:51.000000000 
+0200
@@ -3,4 +3,4 @@
 from selection.base import Selector, SelectorList, RexResultList  # noqa
 from selection.backend import XpathSelector  # noqa
 
-version = '0.0.13'
+version = '0.0.14'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/selection/base.py 
new/selection-0.0.14/selection/base.py
--- old/selection-0.0.13/selection/base.py      2017-01-11 19:38:47.000000000 
+0100
+++ new/selection-0.0.14/selection/base.py      2018-08-07 17:01:27.000000000 
+0200
@@ -1,6 +1,6 @@
 import logging
 from weblib.const import NULL
-from weblib.error import DataNotFound
+from weblib.error import DataNotFound, RequiredDataNotFound
 from weblib.text import normalize_space as normalize_space_func
 from weblib.html import decode_entities
 from weblib.text import find_number
@@ -67,6 +67,12 @@
         self.origin_selector_class = origin_selector_class
         self.origin_query = origin_query
 
+    def __enter__(self):
+        return self
+
+    def __exit__(self, exc_type, exc_value, traceback):
+        pass
+
     def __getitem__(self, x):
         return self.selector_list[x]
 
@@ -127,6 +133,18 @@
         else:
             return sel.html(encoding=encoding)
 
+    def inner_html(self, default=NULL, encoding='unicode'):
+        try:
+            sel = self.one()
+        except IndexError:
+            if default is NULL:
+                raise
+            else:
+                return default
+        else:
+            result_list = [item.html(encoding=encoding) for item in 
sel.select('./*')]
+            return ''.join(result_list).strip()
+
     def number(self, default=NULL, ignore_spaces=False,
                smart=False, make_int=True):
         """
@@ -151,15 +169,18 @@
 
         return len(self.selector_list) > 0
 
-    def assert_exists(self):
+    def require(self):
         """
-        Return True if selector list is not empty.
+        Raise RequiredDataNotFound if selector data does not exist.
         """
 
         if not self.exists():
-            args = (self.origin_query, self.origin_selector_class.__name__)
-            raise DataNotFound(u'Node does not exists, query: %s, '
-                               u'query type: %s' % args)
+            raise RequiredDataNotFound(
+                u'Node does not exists, query: %s, query type: %s' % (
+                    self.origin_query,
+                    self.origin_selector_class.__name__,
+                )
+            )
 
     def attr(self, key, default=NULL):
         try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/selection.egg-info/PKG-INFO 
new/selection-0.0.14/selection.egg-info/PKG-INFO
--- old/selection-0.0.13/selection.egg-info/PKG-INFO    2017-01-23 
17:28:55.000000000 +0100
+++ new/selection-0.0.14/selection.egg-info/PKG-INFO    2018-08-07 
17:09:16.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: selection
-Version: 0.0.13
+Version: 0.0.14
 Summary: API to extract content from HTML & XML documents
 Home-page: UNKNOWN
 Author: Gregory Petukhov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/selection.egg-info/SOURCES.txt 
new/selection-0.0.14/selection.egg-info/SOURCES.txt
--- old/selection-0.0.13/selection.egg-info/SOURCES.txt 2017-01-23 
17:28:55.000000000 +0100
+++ new/selection-0.0.14/selection.egg-info/SOURCES.txt 2018-08-07 
17:09:16.000000000 +0200
@@ -1,3 +1,5 @@
+LICENSE
+MANIFEST.in
 README.rst
 setup.py
 selection/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/selection.egg-info/requires.txt 
new/selection-0.0.14/selection.egg-info/requires.txt
--- old/selection-0.0.13/selection.egg-info/requires.txt        2017-01-23 
17:28:55.000000000 +0100
+++ new/selection-0.0.14/selection.egg-info/requires.txt        2018-08-07 
17:09:16.000000000 +0200
@@ -1,3 +1,5 @@
-lxml;platform_system!="Windows"
 weblib
 six
+
+[:platform_system != "Windows"]
+lxml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/setup.cfg 
new/selection-0.0.14/setup.cfg
--- old/selection-0.0.13/setup.cfg      2017-01-23 17:28:55.000000000 +0100
+++ new/selection-0.0.14/setup.cfg      2018-08-07 17:09:16.000000000 +0200
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/selection-0.0.13/setup.py 
new/selection-0.0.14/setup.py
--- old/selection-0.0.13/setup.py       2017-01-23 17:28:47.000000000 +0100
+++ new/selection-0.0.14/setup.py       2018-08-07 17:08:51.000000000 +0200
@@ -2,7 +2,7 @@
 
 setup(
     name = 'selection',
-    version = '0.0.13',
+    version = '0.0.14',
     description = 'API to extract content from HTML & XML documents',
     author = 'Gregory Petukhov',
     author_email = '[email protected]',


Reply via email to