forked from pool/python-xmlschema
- Update to version 1.2.0:
* Add ColumnarConverter class * Add command-line interface utility for document API * Fix a stable public API for XSD types, elements and attributes * Add security modes for accessing URLs * Clean component parsing * Fix namespace loading for chameleon schemas * Fix UPA checks with nested choice/all models - Install new binaries OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 11 03:46:21 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to version 1.2.0:
|
||||
* Add ColumnarConverter class
|
||||
* Add command-line interface utility for document API
|
||||
* Fix a stable public API for XSD types, elements and attributes
|
||||
* Add security modes for accessing URLs
|
||||
* Clean component parsing
|
||||
* Fix namespace loading for chameleon schemas
|
||||
* Fix UPA checks with nested choice/all models
|
||||
- Install new binaries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 24 15:10:44 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-xmlschema
|
||||
Version: 1.1.2
|
||||
Version: 1.2.0
|
||||
Release: 0
|
||||
Summary: An XML Schema validator and decoder
|
||||
License: MIT
|
||||
@@ -33,6 +33,8 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-elementpath >= 1.4.0
|
||||
Requires: python-lxml
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -56,6 +58,10 @@ export LANG="en_US.UTF8"
|
||||
export LANG="en_US.UTF8"
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# Prepare for update-alternatives usage
|
||||
for p in json2xml validate xml2json; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/xmlschema-$p
|
||||
done
|
||||
|
||||
%check
|
||||
# test_element_tree_import_script is (easily workaroundable) https://github.com/sissaschool/xmlschema/issues/167
|
||||
@@ -63,9 +69,22 @@ export LANG="en_US.UTF8"
|
||||
export LANG="en_US.UTF8"
|
||||
%pytest -k "not (test_element_tree_import_script or tests_factory)" tests
|
||||
|
||||
%post
|
||||
%python_install_alternative xmlschema-json2xml
|
||||
%python_install_alternative xmlschema-validate
|
||||
%python_install_alternative xmlschema-xml2json
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative xmlschema-json2xml
|
||||
%python_uninstall_alternative xmlschema-validate
|
||||
%python_uninstall_alternative xmlschema-xml2json
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/xmlschema-json2xml
|
||||
%python_alternative %{_bindir}/xmlschema-validate
|
||||
%python_alternative %{_bindir}/xmlschema-xml2json
|
||||
|
||||
%changelog
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57bfda48a864f1d6e10bd06288c87e18eee4fd5a79d0ddfbf9d81f0fab748b39
|
||||
size 297566
|
3
xmlschema-1.2.0.tar.gz
Normal file
3
xmlschema-1.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:079169d8e3393e2605b0dd4d66d2450c9e828c2a7baa8692df949057b123da9c
|
||||
size 314580
|
Reference in New Issue
Block a user