forked from pool/python-xmlschema
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
This commit is contained in:
committed by
Git OBS Bridge
parent
a6ad4a7dd3
commit
d8812ef81a
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 6 11:47:34 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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 <ahasenkopf@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aaa72705aa16477ca2e2522b1a982f8343d3c8751faa7f0fd42720230d6dd066
|
||||
size 270853
|
3
xmlschema-1.1.0.tar.gz
Normal file
3
xmlschema-1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a1c66f19de015544e36caedb1087447396ab94755f6104a0ac0b0d873776e9ed
|
||||
size 285006
|
Reference in New Issue
Block a user