14
0
Files
python-pykwalify/python-pykwalify.spec

84 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pykwalify
#
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-pykwalify
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
Version: 1.8.0
Release: 0
Summary: Python lib/cli for JSON/YAML schema validation
License: MIT
Group: Development/Languages/Python
URL: https://github.com/grokzen/pykwalify
Source: https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 3.11
Requires: python-docopt >= 0.6.2
Requires: python-python-dateutil >= 2.4.2
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
Requires: python-ruamel.yaml >= 0.16.0
Requires(post): update-alternatives
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
Requires(postun):update-alternatives
Suggests: python-ruamel.yaml >= 0.11.0
BuildArch: noarch
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
# SECTION test requirements
BuildRequires: %{python_module PyYAML >= 3.11}
BuildRequires: %{python_module docopt >= 0.6.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.4.2}
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
BuildRequires: %{python_module ruamel.yaml >= 0.16.0}
BuildRequires: %{python_module testfixtures}
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
# /SECTION
%python_subpackages
%description
YAML/JSON validation library
This framework is a port with a lot added functionality of the java version of the framework kwalify that can be found at: http://www.kuwata-lab.com/kwalify/
The original source code can be found at: http://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/
The source code of the latest release that has been used can be found at: https://github.com/sunaku/kwalify. Please note that source code is not the original authors code but a fork/upload of the last release available in ruby.
The schema this library is base and extended from: http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schema
%prep
%setup -q -n pykwalify-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pykwalify
%python_expand %fdupes %{buildroot}%{$python_sitelib}
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
%check
Accepting request 895898 from home:pgajdos:python - version update to 1.8.0 General changes: - Dropped support for python 3.5 and below, including 2.7 - ruamel.yaml is now the default and preffered yaml parser - Dropped support for pyyaml parser - Update minimum version of ruamel.yaml to 0.16.0 - Update minimum version of python-dateutil to 2.8.0 CLI changes: - Added new cli argument "--encoding ENCODING" that specifies what encoding to open data and schema files with Changed behaviour: - Enum error strings now output all possible values for easier debugging - Removed deprecated imp module. Dynamic imports imght be affected New features: - Implement new type email that uses a relative simple regex to validate email addresses according to RFC 5322 Official Standard - Implement new type `url` that uses a relative simple regex to validate url:s according to RFC 1808 - Add new argument "schema_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. - Add new argument "data_file_obj" to Core class. Allows to pass in StringIO or similar interfaced objects to use for validation. Bug/issues fixed: - Fixed a regression from 1.6.1 where ruamel.yaml safe_load would break for all built-in custom python tags. All normal python tags should now be possible to use again. - Fixed an issue with regex values that was not converted to str() before regex mapping was attempted. OBS-URL: https://build.opensuse.org/request/show/895898 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=9
2021-05-28 08:11:51 +00:00
%pyunittest discover -v
%post
%python_install_alternative pykwalify
%postun
%python_uninstall_alternative pykwalify
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pykwalify
%{python_sitelib}/*
%changelog