From 4177c5ef9e01d8c19c30d76554a505c87ce80b437684dbb77609917e8221dab8 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 10 May 2023 09:20:11 +0000 Subject: [PATCH 1/2] - Update to 4.1.2: * Add support for Python 3.12 * Fix self shortcut operator (adding is_schema_node() to node classes) - 4.1.1: * Simplify type annotations for XSD datatypes * Full test coverage of sequence type functions with bugfixes - 4.1.0: * Refactor XPath function call (context=None only as keyword argument) * Add external function support (issue #60) * Some fixes to string representation and source property of tokens * Extend documentation and tests * Clean XSD datatypes hierarchy - 4.0.1: * Fix packaging: include py.typed in package data * Revert to comparison between xs:QName instances and strings * Fix atomization with XSD typed data (list types have to be atomized) - 4.0.0: * First XPath 3.1 implementation (without UCA collation support) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elementpath?expand=0&rev=30 --- python-elementpath.changes | 22 ++++++++++++++++++++++ python-elementpath.spec | 7 ++++--- v3.0.2.tar.gz | 3 --- v4.1.2.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 6 deletions(-) delete mode 100644 v3.0.2.tar.gz create mode 100644 v4.1.2.tar.gz diff --git a/python-elementpath.changes b/python-elementpath.changes index f6357bf..d673cbb 100644 --- a/python-elementpath.changes +++ b/python-elementpath.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Wed May 10 09:18:23 UTC 2023 - Daniel Garcia + +- Update to 4.1.2: + * Add support for Python 3.12 + * Fix self shortcut operator (adding is_schema_node() to node classes) +- 4.1.1: + * Simplify type annotations for XSD datatypes + * Full test coverage of sequence type functions with bugfixes +- 4.1.0: + * Refactor XPath function call (context=None only as keyword argument) + * Add external function support (issue #60) + * Some fixes to string representation and source property of tokens + * Extend documentation and tests + * Clean XSD datatypes hierarchy +- 4.0.1: + * Fix packaging: include py.typed in package data + * Revert to comparison between xs:QName instances and strings + * Fix atomization with XSD typed data (list types have to be atomized) +- 4.0.0: + * First XPath 3.1 implementation (without UCA collation support) + ------------------------------------------------------------------- Fri Apr 21 12:24:39 UTC 2023 - Dirk Müller diff --git a/python-elementpath.spec b/python-elementpath.spec index 0a364f0..b371ef3 100644 --- a/python-elementpath.spec +++ b/python-elementpath.spec @@ -16,12 +16,11 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %define skip_python36 1 %{?sle15_python_module_pythons} Name: python-elementpath -Version: 3.0.2 +Version: 4.1.2 Release: 0 Summary: XPath 1.0/20 parsers and selectors for ElementTree and lxml License: MIT @@ -30,6 +29,7 @@ Source: https://github.com/sissaschool/elementpath/archive/v%{version}.t BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module xmlschema} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -60,6 +60,7 @@ rm tests/test_schema_proxy.py %files %{python_files} %doc CHANGELOG.rst README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/elementpath +%{python_sitelib}/elementpath-%{version}*-info %changelog diff --git a/v3.0.2.tar.gz b/v3.0.2.tar.gz deleted file mode 100644 index 829f00a..0000000 --- a/v3.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe2e600da741c51253fb480e97ab6d8bc86f1619743638877737853d91ba2e36 -size 275843 diff --git a/v4.1.2.tar.gz b/v4.1.2.tar.gz new file mode 100644 index 0000000..1efdf83 --- /dev/null +++ b/v4.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33a51523f6800bd5470d8508c481a5228d4f3e5a4bc71b576fb4616c4d163c39 +size 321646 From 4a2513bb8a22242dc06a05876089a17eb2e7d13da012d66116b4d1d7bfd4921e Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 12 May 2023 05:57:12 +0000 Subject: [PATCH 2/2] - Remove BuildRequire xmlschema to avoid dependency cycle OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elementpath?expand=0&rev=31 --- python-elementpath.changes | 5 +++++ python-elementpath.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-elementpath.changes b/python-elementpath.changes index d673cbb..022e0f9 100644 --- a/python-elementpath.changes +++ b/python-elementpath.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 12 05:56:30 UTC 2023 - Daniel Garcia + +- Remove BuildRequire xmlschema to avoid dependency cycle + ------------------------------------------------------------------- Wed May 10 09:18:23 UTC 2023 - Daniel Garcia diff --git a/python-elementpath.spec b/python-elementpath.spec index b371ef3..855095e 100644 --- a/python-elementpath.spec +++ b/python-elementpath.spec @@ -29,7 +29,6 @@ Source: https://github.com/sissaschool/elementpath/archive/v%{version}.t BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module xmlschema} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -54,8 +53,14 @@ rm tests/test_schema_proxy.py %check # test_compare_strings_function depends on LOCALE to produce proper results +donttest="test_compare_strings_function" # test_hashing is arch specific and overflows on 32bit platforms -%pytest -k 'not test_compare_strings_function and not test_hashing' +donttest+=" or test_hashing" +# tests that depends on xmlschema so ignore it to +# avoid dependency cycle +donttest+=" or test_validate_analyzed_string" +donttest+=" or test_validate_json_to_xml" +%pytest -k "not ($donttest)" %files %{python_files} %doc CHANGELOG.rst README.rst