Hello community,
here is the log from the commit of package python-dominate for openSUSE:Factory
checked in at 2020-09-21 17:44:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dominate (Old)
and /work/SRC/openSUSE:Factory/.python-dominate.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dominate"
Mon Sep 21 17:44:11 2020 rev:5 rq:835747 version:2.5.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dominate/python-dominate.changes
2020-03-31 17:15:15.955628386 +0200
+++
/work/SRC/openSUSE:Factory/.python-dominate.new.4249/python-dominate.changes
2020-09-21 17:47:01.529116699 +0200
@@ -1,0 +2,8 @@
+Mon Sep 21 06:15:59 UTC 2020 - Steve Kowalik <[email protected]>
+
+- Update to 2.5.2:
+ * Removed 'input' keyword reassignment (#131)
+ * Fix issue #118 (underscores not working in aria attributes) (#119)
+ * Adding some missing attrs to DASHED_ATTRIBUTES (#126)
+
+-------------------------------------------------------------------
Old:
----
dominate-2.5.1.tar.gz
New:
----
dominate-2.5.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dominate.spec ++++++
--- /var/tmp/diff_new_pack.IuUtyL/_old 2020-09-21 17:47:03.297118365 +0200
+++ /var/tmp/diff_new_pack.IuUtyL/_new 2020-09-21 17:47:03.301118369 +0200
@@ -18,11 +18,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dominate
-Version: 2.5.1
+Version: 2.5.2
Release: 0
Summary: Python library for creating and manipulating HTML documents
License: GPL-3.0-only
-Group: Development/Languages/Python
URL: http://github.com/Knio/dominate/
Source:
https://files.pythonhosted.org/packages/source/d/dominate/dominate-%{version}.tar.gz
BuildRequires: %{python_module pytest >= 2.7.3}
++++++ dominate-2.5.1.tar.gz -> dominate-2.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/PKG-INFO new/dominate-2.5.2/PKG-INFO
--- old/dominate-2.5.1/PKG-INFO 2020-03-07 06:16:20.000000000 +0100
+++ new/dominate-2.5.2/PKG-INFO 2020-08-22 21:21:42.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: dominate
-Version: 2.5.1
+Version: 2.5.2
Summary: Dominate is a Python library for creating and manipulating HTML
documents using an elegant DOM API.
Home-page: https://github.com/Knio/dominate/
Author: Tom Flanagan and Jake Wharton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/dominate/_version.py
new/dominate-2.5.2/dominate/_version.py
--- old/dominate-2.5.1/dominate/_version.py 2020-03-07 06:14:11.000000000
+0100
+++ new/dominate-2.5.2/dominate/_version.py 2020-08-22 21:20:26.000000000
+0200
@@ -1 +1 @@
-__version__ = '2.5.1'
+__version__ = '2.5.2'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/dominate/dom_tag.py
new/dominate-2.5.2/dominate/dom_tag.py
--- old/dominate-2.5.1/dominate/dom_tag.py 2020-03-07 06:09:56.000000000
+0100
+++ new/dominate-2.5.2/dominate/dom_tag.py 2020-08-22 21:18:41.000000000
+0200
@@ -401,7 +401,8 @@
attribute = attribute[1:]
# Workaround for dash
- if attribute in set(['http_equiv']) or attribute.startswith('data_'):
+ special_prefix = any([attribute.startswith(x) for x in ('data_', 'aria_')])
+ if attribute in set(['http_equiv']) or special_prefix:
attribute = attribute.replace('_', '-').lower()
# Workaround for colon
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/dominate/svg.py
new/dominate-2.5.2/dominate/svg.py
--- old/dominate-2.5.1/dominate/svg.py 2019-08-04 06:52:29.000000000 +0200
+++ new/dominate-2.5.2/dominate/svg.py 2020-08-22 21:18:41.000000000 +0200
@@ -48,9 +48,10 @@
])
DASHED_ATTRIBUTES = set([
- 'accent', 'arabic', 'baseline', 'cap', 'clip', 'color', 'enable', 'fill',
'flood', 'font', 'glyph',
- 'horiz', 'image', 'letter', 'lighting', 'marker', 'panose', 'paint',
'pointer', 'shape', 'stop',
- 'stroke', 'text', 'unicode', 'units', 'v', 'vert', 'x'
+ 'accent', 'alignment', 'arabic', 'baseline', 'cap', 'clip', 'color',
'dominant', 'enable', 'fill', 'flood',
+ 'font', 'glyph', 'horiz', 'image', 'letter', 'lighting', 'marker',
'overline', 'paint', 'panose', 'pointer',
+ 'rendering', 'shape', 'stop', 'strikethrough', 'stroke', 'text',
'underline', 'unicode', 'units', 'v', 'vector',
+ 'vert', 'word', 'writing', 'x'
])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/dominate/tags.py
new/dominate-2.5.2/dominate/tags.py
--- old/dominate-2.5.1/dominate/tags.py 2020-03-07 06:13:34.000000000 +0100
+++ new/dominate-2.5.2/dominate/tags.py 2020-08-22 21:18:41.000000000 +0200
@@ -725,7 +725,7 @@
The del element represents a removal from the document.
'''
pass
-
+_del = del_
# Embedded content
class img(html_tag):
@@ -814,7 +814,7 @@
image map. The element represents its children.
'''
pass
-
+_map = map_
class area(html_tag):
'''
@@ -948,7 +948,7 @@
to allow the user to edit the data.
'''
is_single = True
-input = _input = input_
+_input = input_
class button(html_tag):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/dominate.egg-info/PKG-INFO
new/dominate-2.5.2/dominate.egg-info/PKG-INFO
--- old/dominate-2.5.1/dominate.egg-info/PKG-INFO 2020-03-07
06:16:19.000000000 +0100
+++ new/dominate-2.5.2/dominate.egg-info/PKG-INFO 2020-08-22
21:21:42.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: dominate
-Version: 2.5.1
+Version: 2.5.2
Summary: Dominate is a Python library for creating and manipulating HTML
documents using an elegant DOM API.
Home-page: https://github.com/Knio/dominate/
Author: Tom Flanagan and Jake Wharton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.5.1/tests/test_html.py
new/dominate-2.5.2/tests/test_html.py
--- old/dominate-2.5.1/tests/test_html.py 2020-03-07 06:14:31.000000000
+0100
+++ new/dominate-2.5.2/tests/test_html.py 2020-08-22 21:20:51.000000000
+0200
@@ -8,7 +8,7 @@
def test_version():
import dominate
- version = '2.5.1'
+ version = '2.5.2'
assert dominate.version == version
assert dominate.__version__ == version
@@ -208,6 +208,12 @@
attr(id='moo')
+def test_attribute_dashes():
+ # fix issue #118 (https://github.com/Knio/dominate/issues/118)
+ expected = '<div aria-foo="bar" data-a-b-c="foo" data-page-size="123"></div>'
+ assert div(data_a_b_c='foo', data_page_size='123', aria_foo='bar').render()
== expected
+
+
def test_lazy():
from dominate import util
executed = [False]
@@ -244,9 +250,9 @@
def test_boolean_attributes():
- assert input(type="checkbox", checked=True).render() == \
+ assert input_(type="checkbox", checked=True).render() == \
'<input checked="checked" type="checkbox">'
- assert input(type="checkbox", checked=False).render() == \
+ assert input_(type="checkbox", checked=False).render() == \
'<input type="checkbox">'