Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-xmlschema for openSUSE:Factory checked in at 2024-08-01 22:03:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-xmlschema (Old) and /work/SRC/openSUSE:Factory/.python-xmlschema.new.7232 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xmlschema" Thu Aug 1 22:03:16 2024 rev:25 rq:1190526 version:3.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-xmlschema/python-xmlschema.changes 2024-07-03 20:29:53.080152376 +0200 +++ /work/SRC/openSUSE:Factory/.python-xmlschema.new.7232/python-xmlschema.changes 2024-08-01 22:03:24.793951878 +0200 @@ -1,0 +2,6 @@ +Mon Jul 29 17:31:54 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 3.3.2 + * Fix UNC path tests (issues #405 and #408) + +------------------------------------------------------------------- Old: ---- xmlschema-3.3.1.tar.gz New: ---- xmlschema-3.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-xmlschema.spec ++++++ --- /var/tmp/diff_new_pack.6EglZB/_old 2024-08-01 22:03:25.385976299 +0200 +++ /var/tmp/diff_new_pack.6EglZB/_new 2024-08-01 22:03:25.389976464 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-xmlschema -Version: 3.3.1 +Version: 3.3.2 Release: 0 Summary: An XML Schema validator and decoder License: MIT ++++++ xmlschema-3.3.1.tar.gz -> xmlschema-3.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/CHANGELOG.rst new/xmlschema-3.3.2/CHANGELOG.rst --- old/xmlschema-3.3.1/CHANGELOG.rst 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/CHANGELOG.rst 2024-07-29 17:10:41.000000000 +0200 @@ -2,6 +2,10 @@ CHANGELOG ********* +`v3.3.2`_ (2024-07-29) +====================== +* Fix UNC path tests (issues #405 and #408) + `v3.3.1`_ (2024-04-27) ====================== * Update validation errors with logging stacktrace in debug mode @@ -704,3 +708,4 @@ .. _v3.2.1: https://github.com/brunato/xmlschema/compare/v3.2.0...v3.2.1 .. _v3.3.0: https://github.com/brunato/xmlschema/compare/v3.2.1...v3.3.0 .. _v3.3.1: https://github.com/brunato/xmlschema/compare/v3.3.0...v3.3.1 +.. _v3.3.2: https://github.com/brunato/xmlschema/compare/v3.3.1...v3.3.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/PKG-INFO new/xmlschema-3.3.2/PKG-INFO --- old/xmlschema-3.3.1/PKG-INFO 2024-04-28 10:22:28.897755900 +0200 +++ new/xmlschema-3.3.2/PKG-INFO 2024-07-29 18:02:27.487871600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: xmlschema -Version: 3.3.1 +Version: 3.3.2 Summary: An XML Schema validator and decoder Home-page: https://github.com/sissaschool/xmlschema Author: Davide Brunato diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/doc/conf.py new/xmlschema-3.3.2/doc/conf.py --- old/xmlschema-3.3.1/doc/conf.py 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/doc/conf.py 2024-07-29 17:10:41.000000000 +0200 @@ -81,7 +81,7 @@ # The short X.Y version. version = '3.3' # The full version, including alpha/beta/rc tags. -release = '3.3.1' +release = '3.3.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/setup.py new/xmlschema-3.3.2/setup.py --- old/xmlschema-3.3.1/setup.py 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/setup.py 2024-07-29 17:10:41.000000000 +0200 @@ -18,7 +18,7 @@ setup( name='xmlschema', - version='3.3.1', + version='3.3.2', packages=find_packages(include=['xmlschema*']), package_data={ 'xmlschema': ['py.typed', 'locale/**/*.mo', 'locale/**/*.po', 'schemas/*/*.xsd'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/tests/test_locations.py new/xmlschema-3.3.2/tests/test_locations.py --- old/xmlschema-3.3.1/tests/test_locations.py 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/tests/test_locations.py 2024-07-29 17:10:41.000000000 +0200 @@ -12,6 +12,7 @@ import os import pathlib import platform +import sys from urllib.parse import urlsplit, uses_relative from pathlib import Path, PurePath, PureWindowsPath, PurePosixPath @@ -280,7 +281,10 @@ self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') url = normalize_url(r'dev\XMLSCHEMA\test.xsd', base_url=base_url_host_in_path) - self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') + if sys.version_info < (3, 12, 4): + self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') + else: + self.assertEqual(url, 'file://////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') with patch.object(os, 'name', 'posix'): self.assertEqual(os.name, 'posix') @@ -294,7 +298,10 @@ self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') url = normalize_url(r'dev/XMLSCHEMA/test.xsd', base_url=base_url_host_in_path) - self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') + if sys.version_info < (3, 12, 4): + self.assertEqual(url, 'file:////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') + else: + self.assertEqual(url, 'file://////filer01/MY_HOME/dev/XMLSCHEMA/test.xsd') def test_normalize_url_slashes(self): # Issue #116 @@ -311,10 +318,16 @@ self.assertRegex(normalize_url('/root/dir1/schema.xsd'), f'file://{DRIVE_REGEX}/root/dir1/schema.xsd') - self.assertRegex(normalize_url('////root/dir1/schema.xsd'), - f'file://{DRIVE_REGEX}//root/dir1/schema.xsd') - self.assertRegex(normalize_url('dir2/schema.xsd', '////root/dir1'), - f'file://{DRIVE_REGEX}//root/dir1/dir2/schema.xsd') + if sys.version_info < (3, 12, 4): + self.assertRegex(normalize_url('////root/dir1/schema.xsd'), + f'file://{DRIVE_REGEX}//root/dir1/schema.xsd') + self.assertRegex(normalize_url('dir2/schema.xsd', '////root/dir1'), + f'file://{DRIVE_REGEX}//root/dir1/dir2/schema.xsd') + else: + self.assertRegex(normalize_url('////root/dir1/schema.xsd'), + f'file://{DRIVE_REGEX}////root/dir1/schema.xsd') + self.assertRegex(normalize_url('dir2/schema.xsd', '////root/dir1'), + f'file://{DRIVE_REGEX}////root/dir1/dir2/schema.xsd') self.assertEqual(normalize_url('//root/dir1/schema.xsd'), 'file:////root/dir1/schema.xsd') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/tox.ini new/xmlschema-3.3.2/tox.ini --- old/xmlschema-3.3.1/tox.ini 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/tox.ini 2024-07-29 17:10:41.000000000 +0200 @@ -48,7 +48,7 @@ [testenv:mypy-py{38,39,310,311,312,py3}] deps = - mypy==1.10.0 + mypy==1.11.0 elementpath==4.4.0 lxml-stubs jinja2 @@ -69,7 +69,7 @@ elementpath>=4.4.0, <5.0.0 lxml jinja2 - mypy==1.10.0 + mypy==1.11.0 lxml-stubs commands = pytest tests -ra diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/xmlschema/__init__.py new/xmlschema-3.3.2/xmlschema/__init__.py --- old/xmlschema-3.3.1/xmlschema/__init__.py 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/xmlschema/__init__.py 2024-07-29 17:10:41.000000000 +0200 @@ -33,7 +33,7 @@ XMLSchema, XMLSchema10, XMLSchema11, XsdComponent, XsdType, XsdElement, XsdAttribute ) -__version__ = '3.3.1' +__version__ = '3.3.2' __author__ = "Davide Brunato" __contact__ = "brun...@sissa.it" __copyright__ = "Copyright 2016-2024, SISSA" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/xmlschema/locations.py new/xmlschema-3.3.2/xmlschema/locations.py --- old/xmlschema-3.3.1/xmlschema/locations.py 2024-04-28 10:15:54.000000000 +0200 +++ new/xmlschema-3.3.2/xmlschema/locations.py 2024-07-29 17:10:41.000000000 +0200 @@ -71,9 +71,12 @@ return LocationPosixPath(unquote(parts.path)) if parts.scheme == 'file': - if path.startswith('/') and ntpath.splitdrive(path[1:])[0]: + path_start = path[:4].replace('\\', '/') + if path_start.startswith(('////', '///')): + pass + elif path_start.startswith('/') and ntpath.splitdrive(path[1:])[0]: return LocationWindowsPath(unquote(path[1:])) - elif path.startswith(('//', '/\\')) and ntpath.splitdrive(path[2:])[0]: + elif path_start.startswith('//') and ntpath.splitdrive(path[2:])[0]: raise XMLSchemaValueError(f"Invalid URI {uri!r}") if ntpath.splitdrive(path)[0] or '\\' in path: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmlschema-3.3.1/xmlschema.egg-info/PKG-INFO new/xmlschema-3.3.2/xmlschema.egg-info/PKG-INFO --- old/xmlschema-3.3.1/xmlschema.egg-info/PKG-INFO 2024-04-28 10:22:28.000000000 +0200 +++ new/xmlschema-3.3.2/xmlschema.egg-info/PKG-INFO 2024-07-29 18:02:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: xmlschema -Version: 3.3.1 +Version: 3.3.2 Summary: An XML Schema validator and decoder Home-page: https://github.com/sissaschool/xmlschema Author: Davide Brunato