1
0
python-voluptuous/python-voluptuous.spec
Tomáš Chvátal dd6eea538e Accepting request 726163 from home:alarrosa:branches:devel:languages:python
- Update to 0.11.7:
  * #378: Allow extend() of a Schema to return a subclass of a Schema as well.
  * #364: Accept description for Inclusive instances.
  * #373: Accept msg for Maybe instances.
  * #382: Added support for default values in Inclusive instances.
  * #371: Fixed DeprecationWarning related to collections.Mapping.
  * #377: Preserve Unicode strings when passed to utility functions
    (e.g., Lower(), Upper()).
  * #380: Fixed regression with Any and required flag.

OBS-URL: https://build.opensuse.org/request/show/726163
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-voluptuous?expand=0&rev=15
2019-08-27 00:52:45 +00:00

58 lines
1.7 KiB
RPMSpec

#
# spec file for package python-voluptuous
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-%{**}}
Name: python-voluptuous
Version: 0.11.7
Release: 0
Summary: A Python data validation library
License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://github.com/alecthomas/voluptuous
Source: https://files.pythonhosted.org/packages/source/v/voluptuous/voluptuous-%{version}.tar.gz
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Voluptuous is a Python data validation library. It validates data
coming into Python as JSON, YAML, etc.
%prep
%setup -q -n voluptuous-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec %{_bindir}/nosetests -v
%files %{python_files}
%license COPYING
%doc README.md
%{python_sitelib}/*
%changelog