From d8812ef81ab74e76fff2ad4d3ef3407a5d5f7ba2ce5ba1e0f5caa1367f27a495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Feb 2020 11:56:31 +0000 Subject: [PATCH] Accepting request 770539 from home:mcalabkova:branches:devel:languages:python - update to 1.1.0 * Removed Python 2 compatibility code * Removed tests code from binary package * Improved identity constraints validation * Added JSON lazy decoding as experimental feature * few bugfixes OBS-URL: https://build.opensuse.org/request/show/770539 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=7 --- python-xmlschema.changes | 10 ++++++++++ python-xmlschema.spec | 18 ++++++++++-------- xmlschema-1.0.15.tar.gz | 3 --- xmlschema-1.1.0.tar.gz | 3 +++ 4 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 xmlschema-1.0.15.tar.gz create mode 100644 xmlschema-1.1.0.tar.gz diff --git a/python-xmlschema.changes b/python-xmlschema.changes index 880602d..d747e9f 100644 --- a/python-xmlschema.changes +++ b/python-xmlschema.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Feb 6 11:47:34 UTC 2020 - Marketa Calabkova + +- update to 1.1.0 + * Removed Python 2 compatibility code + * Removed tests code from binary package + * Improved identity constraints validation + * Added JSON lazy decoding as experimental feature + * few bugfixes + ------------------------------------------------------------------- Thu Dec 5 10:56:46 UTC 2019 - Andreas Hasenkopf diff --git a/python-xmlschema.spec b/python-xmlschema.spec index b81f61a..4528242 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -1,7 +1,7 @@ # # spec file for package python-xmlschema # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-xmlschema -Version: 1.0.15 +Version: 1.1.0 Release: 0 Summary: An XML Schema validator and decoder License: MIT URL: https://github.com/brunato/xmlschema Source: https://files.pythonhosted.org/packages/source/x/xmlschema/xmlschema-%{version}.tar.gz -BuildRequires: %{python_module elementpath >= 1.3.0} +BuildRequires: %{python_module elementpath >= 1.4.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-elementpath >= 1.3.0 +Requires: python-elementpath >= 1.4.0 BuildArch: noarch %python_subpackages @@ -42,8 +43,8 @@ for Python. # do not hardcode versions sed -i -e 's:~=:>=:' setup.py # do not bother with memory validation -rm xmlschema/tests/check_memory.py -rm xmlschema/tests/test_memory.py +rm tests/check_memory.py +rm tests/test_memory.py %build export LANG="en_US.UTF8" @@ -52,12 +53,13 @@ export LANG="en_US.UTF8" %install export LANG="en_US.UTF8" %python_install -%python_expand rm -r %{buildroot}%{$python_sitelib}/xmlschema/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# test_element_tree_import_script is (easily workaroundable) https://github.com/sissaschool/xmlschema/issues/167 +# tests_factory setup is broken export LANG="en_US.UTF8" -%pytest +%pytest -k "not (test_element_tree_import_script or tests_factory)" tests %files %{python_files} %doc CHANGELOG.rst README.rst diff --git a/xmlschema-1.0.15.tar.gz b/xmlschema-1.0.15.tar.gz deleted file mode 100644 index 68729d0..0000000 --- a/xmlschema-1.0.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aaa72705aa16477ca2e2522b1a982f8343d3c8751faa7f0fd42720230d6dd066 -size 270853 diff --git a/xmlschema-1.1.0.tar.gz b/xmlschema-1.1.0.tar.gz new file mode 100644 index 0000000..a38028a --- /dev/null +++ b/xmlschema-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1c66f19de015544e36caedb1087447396ab94755f6104a0ac0b0d873776e9ed +size 285006