Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-elementpath for openSUSE:Factory checked in at 2023-08-10 15:32:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-elementpath (Old) and /work/SRC/openSUSE:Factory/.python-elementpath.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-elementpath" Thu Aug 10 15:32:49 2023 rev:19 rq:1103086 version:4.1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-elementpath/python-elementpath.changes 2023-07-03 17:41:30.324266422 +0200 +++ /work/SRC/openSUSE:Factory/.python-elementpath.new.11712/python-elementpath.changes 2023-08-10 15:32:53.367785455 +0200 @@ -1,0 +2,6 @@ +Wed Aug 9 07:43:31 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 4.1.5: + * Fix typed value of ElementNode() if self.elem.text is None + +------------------------------------------------------------------- Old: ---- v4.1.4.tar.gz New: ---- v4.1.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-elementpath.spec ++++++ --- /var/tmp/diff_new_pack.2mLHHt/_old 2023-08-10 15:32:54.091789971 +0200 +++ /var/tmp/diff_new_pack.2mLHHt/_new 2023-08-10 15:32:54.095789996 +0200 @@ -20,7 +20,7 @@ %define skip_python36 1 %{?sle15_python_module_pythons} Name: python-elementpath -Version: 4.1.4 +Version: 4.1.5 Release: 0 Summary: XPath 1.0/20 parsers and selectors for ElementTree and lxml License: MIT ++++++ v4.1.4.tar.gz -> v4.1.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/.github/workflows/test-elementpath.yml new/elementpath-4.1.5/.github/workflows/test-elementpath.yml --- old/elementpath-4.1.4/.github/workflows/test-elementpath.yml 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/.github/workflows/test-elementpath.yml 2023-07-25 22:21:09.000000000 +0200 @@ -14,7 +14,7 @@ fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, "3.10", 3.11, pypy-3.9] + python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12.0-beta.4, pypy-3.9] exclude: - os: macos-latest python-version: 3.7 @@ -35,7 +35,8 @@ run: | python -m pip install --upgrade pip pip install setuptools - - name: Lint with flake8 + - name: Lint with flake8 if Python version != 3.12b4 + if: ${{ matrix.python-version != '3.12.0-beta.4' }} run: | pip install flake8 flake8 elementpath --max-line-length=100 --statistics diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/CHANGELOG.rst new/elementpath-4.1.5/CHANGELOG.rst --- old/elementpath-4.1.4/CHANGELOG.rst 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/CHANGELOG.rst 2023-07-25 22:21:09.000000000 +0200 @@ -2,6 +2,10 @@ CHANGELOG ********* +`v4.1.5`_ (2023-07-25) +====================== +* Fix typed value of ElementNode() if self.elem.text is None + `v4.1.4`_ (2023-06-26) ====================== * Fix select of prefixed names (issue #68) @@ -430,3 +434,4 @@ .. _v4.1.2: https://github.com/sissaschool/elementpath/compare/v4.1.1...v4.1.2 .. _v4.1.3: https://github.com/sissaschool/elementpath/compare/v4.1.2...v4.1.3 .. _v4.1.4: https://github.com/sissaschool/elementpath/compare/v4.1.3...v4.1.4 +.. _v4.1.5: https://github.com/sissaschool/elementpath/compare/v4.1.4...v4.1.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/doc/conf.py new/elementpath-4.1.5/doc/conf.py --- old/elementpath-4.1.4/doc/conf.py 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/doc/conf.py 2023-07-25 22:21:09.000000000 +0200 @@ -31,7 +31,7 @@ # The short X.Y version version = '4.1' # The full version, including alpha/beta/rc tags -release = '4.1.4' +release = '4.1.5' # -- General configuration --------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/elementpath/__init__.py new/elementpath-4.1.5/elementpath/__init__.py --- old/elementpath-4.1.4/elementpath/__init__.py 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/elementpath/__init__.py 2023-07-25 22:21:09.000000000 +0200 @@ -7,7 +7,7 @@ # # @author Davide Brunato <brun...@sissa.it> # -__version__ = '4.1.4' +__version__ = '4.1.5' __author__ = "Davide Brunato" __contact__ = "brun...@sissa.it" __copyright__ = "Copyright 2018-2023, SISSA" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/elementpath/xpath_nodes.py new/elementpath-4.1.5/elementpath/xpath_nodes.py --- old/elementpath-4.1.4/elementpath/xpath_nodes.py 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/elementpath/xpath_nodes.py 2023-07-25 22:21:09.000000000 +0200 @@ -540,7 +540,7 @@ elif self.elem.get(XSI_NIL) in ('1', 'true'): return '' else: - value = self.xsd_type.decode(self.elem.text) + value = self.xsd_type.decode('') return cast(Optional[AtomicValueType], value) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/publiccode.yml new/elementpath-4.1.5/publiccode.yml --- old/elementpath-4.1.4/publiccode.yml 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/publiccode.yml 2023-07-25 22:21:09.000000000 +0200 @@ -6,8 +6,8 @@ name: elementpath url: 'https://github.com/sissaschool/elementpath' landingURL: 'https://github.com/sissaschool/elementpath' -releaseDate: '2023-06-26' -softwareVersion: v4.1.4 +releaseDate: '2023-07-25' +softwareVersion: v4.1.5 developmentStatus: stable platforms: - linux diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/setup.py new/elementpath-4.1.5/setup.py --- old/elementpath-4.1.4/setup.py 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/setup.py 2023-07-25 22:21:09.000000000 +0200 @@ -15,7 +15,7 @@ setup( name='elementpath', - version='4.1.4', + version='4.1.5', packages=find_packages(include=['elementpath', 'elementpath.*']), package_data={ 'elementpath': ['py.typed'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/tests/test_tree_builders.py new/elementpath-4.1.5/tests/test_tree_builders.py --- old/elementpath-4.1.4/tests/test_tree_builders.py 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/tests/test_tree_builders.py 2023-07-25 22:21:09.000000000 +0200 @@ -12,14 +12,22 @@ import io import sys import xml.etree.ElementTree as ElementTree +from textwrap import dedent try: import lxml.etree as lxml_etree except ImportError: lxml_etree = None +try: + import xmlschema +except ImportError: + xmlschema = None +else: + xmlschema.XMLSchema.meta_schema.build() + from elementpath.tree_builders import build_node_tree, \ - build_lxml_node_tree + build_lxml_node_tree, build_schema_node_tree from elementpath.xpath_nodes import ElementNode, \ DocumentNode, TextNode, CommentNode, ProcessingInstructionNode @@ -183,6 +191,33 @@ self.assertIs(node.document, root) self.assertEqual(len(node.children), 0) + @unittest.skipIf(xmlschema is None, "xmlschema library is not installed!") + def test_build_schema_node_tree(self): + schema = xmlschema.XMLSchema(dedent("""\n + <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:element name="root"> + <xs:complexType> + <xs:sequence> + <xs:element name="elem1"/> + <xs:element name="elem2"/> + <xs:element name="elem3"/> + <xs:element ref="root"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema>""")) + + root_node = build_schema_node_tree(schema) + self.assertIs(root_node.elem, schema) + + global_elements = [] + root_node = build_schema_node_tree(schema, global_elements=global_elements) + self.assertIs(root_node.elem, schema) + self.assertIn(root_node, global_elements) + + root_node = build_schema_node_tree(schema.elements['root']) + self.assertIs(root_node.elem, schema.elements['root']) + if __name__ == '__main__': unittest.main() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/elementpath-4.1.4/tox.ini new/elementpath-4.1.5/tox.ini --- old/elementpath-4.1.4/tox.ini 2023-06-26 15:50:26.000000000 +0200 +++ new/elementpath-4.1.5/tox.ini 2023-07-25 22:21:09.000000000 +0200 @@ -23,9 +23,9 @@ [testenv:py312] deps = + lxml lxml-stubs xmlschema>=2.2.3 - # skip tests that require lxml for now [testenv:docs] commands =