Hello community,
here is the log from the commit of package python-dominate for openSUSE:Factory
checked in at 2019-03-10 09:40:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dominate (Old)
and /work/SRC/openSUSE:Factory/.python-dominate.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dominate"
Sun Mar 10 09:40:41 2019 rev:2 rq:682882 version:2.3.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dominate/python-dominate.changes
2018-10-25 08:14:17.300123729 +0200
+++
/work/SRC/openSUSE:Factory/.python-dominate.new.28833/python-dominate.changes
2019-03-10 09:40:42.764099552 +0100
@@ -1,0 +2,6 @@
+Fri Mar 8 14:48:54 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.3.5:
+ * support for python 3.7
+
+-------------------------------------------------------------------
Old:
----
dominate-2.3.4.tar.gz
New:
----
dominate-2.3.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dominate.spec ++++++
--- /var/tmp/diff_new_pack.GRWdap/_old 2019-03-10 09:40:44.940099032 +0100
+++ /var/tmp/diff_new_pack.GRWdap/_new 2019-03-10 09:40:44.964099026 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-dominate
#
-# 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,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dominate
-Version: 2.3.4
+Version: 2.3.5
Release: 0
Summary: Python library for creating and manipulating HTML documents
License: GPL-3.0-only
@@ -51,9 +51,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
-pytest-%{$python_bin_suffix}
-}
+%pytest
%files %{python_files}
%license LICENSE.txt
++++++ dominate-2.3.4.tar.gz -> dominate-2.3.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.3.4/PKG-INFO new/dominate-2.3.5/PKG-INFO
--- old/dominate-2.3.4/PKG-INFO 2018-09-25 06:49:07.000000000 +0200
+++ new/dominate-2.3.5/PKG-INFO 2018-11-27 05:27:56.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: dominate
-Version: 2.3.4
+Version: 2.3.5
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.3.4/dominate/_version.py
new/dominate-2.3.5/dominate/_version.py
--- old/dominate-2.3.4/dominate/_version.py 2018-09-25 06:47:58.000000000
+0200
+++ new/dominate-2.3.5/dominate/_version.py 2018-11-27 05:27:37.000000000
+0100
@@ -1,2 +1,2 @@
-__version__ = '2.3.4'
+__version__ = '2.3.5'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.3.4/dominate/dom_tag.py
new/dominate-2.3.5/dominate/dom_tag.py
--- old/dominate-2.3.4/dominate/dom_tag.py 2018-09-25 06:47:24.000000000
+0200
+++ new/dominate-2.3.5/dominate/dom_tag.py 2018-11-27 05:27:37.000000000
+0100
@@ -381,11 +381,11 @@
@staticmethod
def clean_attribute(attribute):
'''
- Since some attributes match python keywords we prepend them with
- underscores. Python also does not support colons in keywords so underscores
- mid-attribute are replaced with colons.
+ Normalize attribute names for shorthand and work arounds for limitations
+ in Python's syntax
'''
- # shorthand
+
+ # Shorthand
attribute = {
'cls': 'class',
'className': 'class',
@@ -395,13 +395,20 @@
'htmlFor': 'for',
}.get(attribute, attribute)
- # Workaround for python's reserved words
- if attribute[0] == '_': attribute = attribute[1:]
+ # Workaround for Python's reserved words
+ if attribute[0] == '_':
+ attribute = attribute[1:]
- # Workaround for inability to use colon in python keywords
+ # Workaround for dash
if attribute in set(['http_equiv']) or attribute.startswith('data_'):
- return attribute.replace('_', '-').lower()
- return attribute.replace('_', ':').lower()
+ attribute = attribute.replace('_', '-').lower()
+
+ # Workaround for colon
+ if attribute.split('_')[0] in ('xlink', 'xml', 'xmlns'):
+ attribute = attribute.replace('_', ':', 1).lower()
+
+ return attribute
+
@classmethod
def clean_pair(cls, attribute, value):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dominate-2.3.4/dominate.egg-info/PKG-INFO
new/dominate-2.3.5/dominate.egg-info/PKG-INFO
--- old/dominate-2.3.4/dominate.egg-info/PKG-INFO 2018-09-25
06:49:07.000000000 +0200
+++ new/dominate-2.3.5/dominate.egg-info/PKG-INFO 2018-11-27
05:27:56.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: dominate
-Version: 2.3.4
+Version: 2.3.5
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.3.4/tests/test_html.py
new/dominate-2.3.5/tests/test_html.py
--- old/dominate-2.3.4/tests/test_html.py 2018-09-25 06:47:47.000000000
+0200
+++ new/dominate-2.3.5/tests/test_html.py 2018-11-27 05:27:37.000000000
+0100
@@ -8,7 +8,7 @@
def test_version():
import dominate
- version = '2.3.4'
+ version = '2.3.5'
assert dominate.version == version
assert dominate.__version__ == version
@@ -227,6 +227,11 @@
assert div(class_name='foo', html_for='bar').render() == expected
+def test_namespaced_attributes():
+ assert div(foo_bar='one').render() == '<div foo_bar="one"></div>'
+ assert div(xlink_href='one').render() == '<div xlink:href="one"></div>'
+
+
def test_comment():
d = comment('Hi there')
assert d.render() == '<!--Hi there-->'