Accepting request 508591 from home:tbechtold:branches:devel:languages:python

- update to 0.10.5:
  - [#278](https://github.com/alecthomas/voluptuous/pull/278): Unicode
    translation to python 2 issue fixed.
  - [#195](https://github.com/alecthomas/voluptuous/pull/195):
    `Range` raises `RangeInvalid` when testing `math.nan`.
  - [#215](https://github.com/alecthomas/voluptuous/pull/215):
    `{}` and `[]` now always evaluate as is, instead of as any dict or any list.
    To specify a free-form list, use `list` instead of `[]`. To specify a
    free-form dict, use `dict` instead of `Schema({}, extra=ALLOW_EXTRA)`.
  - [#224](https://github.com/alecthomas/voluptuous/pull/224):
    Change the encoding of keys in error messages from Unicode to UTF-8.
  - [#185](https://github.com/alecthomas/voluptuous/pull/185):
    Add argument validation decorator.
  - [#199](https://github.com/alecthomas/voluptuous/pull/199):
    Add `Unordered`.
  - [#200](https://github.com/alecthomas/voluptuous/pull/200):
    Add `Equal`.
  - [#207](https://github.com/alecthomas/voluptuous/pull/207):
    Add `Number`.
  - [#210](https://github.com/alecthomas/voluptuous/pull/210):
    Add `Schema` equality check.
  - [#212](https://github.com/alecthomas/voluptuous/pull/212):
    Add `coveralls`.
  - [#227](https://github.com/alecthomas/voluptuous/pull/227):
    Improve `Marker` management in `Schema`.
  - [#232](https://github.com/alecthomas/voluptuous/pull/232):
    Add `Maybe`.
  - [#234](https://github.com/alecthomas/voluptuous/pull/234):
    Add `Date`.
  - [#236](https://github.com/alecthomas/voluptuous/pull/236),

OBS-URL: https://build.opensuse.org/request/show/508591
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-voluptuous?expand=0&rev=7
This commit is contained in:
Thomas Bechtold 2017-07-07 13:03:39 +00:00 committed by Git OBS Bridge
parent 8403589bbe
commit 8bd4bc5486
4 changed files with 81 additions and 17 deletions

View File

@ -1,3 +1,68 @@
-------------------------------------------------------------------
Thu Jul 6 14:39:52 UTC 2017 - tbechtold@suse.com
- update to 0.10.5:
- [#278](https://github.com/alecthomas/voluptuous/pull/278): Unicode
translation to python 2 issue fixed.
- [#195](https://github.com/alecthomas/voluptuous/pull/195):
`Range` raises `RangeInvalid` when testing `math.nan`.
- [#215](https://github.com/alecthomas/voluptuous/pull/215):
`{}` and `[]` now always evaluate as is, instead of as any dict or any list.
To specify a free-form list, use `list` instead of `[]`. To specify a
free-form dict, use `dict` instead of `Schema({}, extra=ALLOW_EXTRA)`.
- [#224](https://github.com/alecthomas/voluptuous/pull/224):
Change the encoding of keys in error messages from Unicode to UTF-8.
- [#185](https://github.com/alecthomas/voluptuous/pull/185):
Add argument validation decorator.
- [#199](https://github.com/alecthomas/voluptuous/pull/199):
Add `Unordered`.
- [#200](https://github.com/alecthomas/voluptuous/pull/200):
Add `Equal`.
- [#207](https://github.com/alecthomas/voluptuous/pull/207):
Add `Number`.
- [#210](https://github.com/alecthomas/voluptuous/pull/210):
Add `Schema` equality check.
- [#212](https://github.com/alecthomas/voluptuous/pull/212):
Add `coveralls`.
- [#227](https://github.com/alecthomas/voluptuous/pull/227):
Improve `Marker` management in `Schema`.
- [#232](https://github.com/alecthomas/voluptuous/pull/232):
Add `Maybe`.
- [#234](https://github.com/alecthomas/voluptuous/pull/234):
Add `Date`.
- [#236](https://github.com/alecthomas/voluptuous/pull/236),
[#237](https://github.com/alecthomas/voluptuous/pull/237), and
[#238](https://github.com/alecthomas/voluptuous/pull/238):
Add script for updating `gh-pages`.
- [#256](https://github.com/alecthomas/voluptuous/pull/256):
Add support for `OrderedDict` validation.
- [#258](https://github.com/alecthomas/voluptuous/pull/258):
Add `Contains`.
- [#197](https://github.com/alecthomas/voluptuous/pull/197):
`ExactSequence` checks sequences are the same length.
- [#201](https://github.com/alecthomas/voluptuous/pull/201):
Empty lists are evaluated as is.
- [#205](https://github.com/alecthomas/voluptuous/pull/205):
Filepath validators correctly handle `None`.
- [#206](https://github.com/alecthomas/voluptuous/pull/206):
Handle non-subscriptable types in `humanize_error`.
- [#231](https://github.com/alecthomas/voluptuous/pull/231):
Validate `namedtuple` as a `tuple`.
- [#235](https://github.com/alecthomas/voluptuous/pull/235):
Update docstring.
- [#249](https://github.com/alecthomas/voluptuous/pull/249):
Update documentation.
- [#262](https://github.com/alecthomas/voluptuous/pull/262):
Fix a performance issue of exponential complexity where all of
the dict keys were matched against all keys in the schema.
This resulted in O(n*m) complexity where n is the number of keys
in the dict being validated and m is the number of keys in the schema.
The fix ensures that each key in the dict is matched against the
relevant schema keys only. It now works in O(n).
- [#266](https://github.com/alecthomas/voluptuous/pull/266):
Remove setuptools as a dependency.
- convert to singlespec
-------------------------------------------------------------------
Thu Aug 11 13:32:54 UTC 2016 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-voluptuous
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,24 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-voluptuous
Version: 0.9.3
Version: 0.10.5
Release: 0
Summary: Voluptuous is a Python data validation library
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/alecthomas/voluptuous
Source: https://pypi.io/packages/source/v/voluptuous/voluptuous-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools >= 0.6b1
Requires: python-setuptools >= 0.6b1
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
Voluptuous, *despite* the name, is a Python data validation library. It
@ -50,15 +49,15 @@ It has three goals:
%setup -q -n voluptuous-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
nosetests
%python_exec %{_bindir}/nosetests
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING README.md README.rst
%{python_sitelib}/*

3
voluptuous-0.10.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a7466f8dc3666a292d186d1d871a47bf2120836ccb900d5ba904674957a2396
size 41436

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed5a11fda273754caabb6becd5fe172ee2621cd2c8ff8279433173bb7b0ec568
size 34097