- update to 0.11.1:

- Support Python 3.6.
  - Drop support for Python 2.6, 3.1 and 3.2.
  - Allow to use nested schema and allow any validator to be compiled.
  - Default values MUST now pass validation just as any regular value.
    This is a backward incompatible change if a schema uses default values
    that don't pass validation against the specified schema.
  - Modify `__lt__` in Marker class to allow comparison with non Marker
    objects, such as str and int.
  - Add description field to `Marker` instances.
  - Add `Schema.infer` method for basic schema inference.
  - Add `SomeOf` validator.
  - Treat Python 2 old-style classes like types when validating.
  - Make `IsDir()`, `IsFile()` and `PathExists()` consistent between
    different Python versions.
  - Use absolute imports to avoid import conflicts.
  - Fix `Coerce` validator to catch `decimal.InvalidOperation`.
  - Make `Schema([])` usage consistent with `Schema({})`.
  - Allow partial validation when using validate decorator.
  - Make `Schema.__eq__` deterministic.
  - Replace implementation of `Maybe(s)` with `Any(None, s)` to allow
    it to be compiled.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-voluptuous?expand=0&rev=9
This commit is contained in:
Thomas Bechtold 2018-03-23 15:09:10 +00:00 committed by Git OBS Bridge
parent 8bd4bc5486
commit 05fc5ade5b
4 changed files with 31 additions and 5 deletions

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Fri Mar 23 15:05:35 UTC 2018 - tbechtold@suse.com
- update to 0.11.1:
- Support Python 3.6.
- Drop support for Python 2.6, 3.1 and 3.2.
- Allow to use nested schema and allow any validator to be compiled.
- Default values MUST now pass validation just as any regular value.
This is a backward incompatible change if a schema uses default values
that don't pass validation against the specified schema.
- Modify `__lt__` in Marker class to allow comparison with non Marker
objects, such as str and int.
- Add description field to `Marker` instances.
- Add `Schema.infer` method for basic schema inference.
- Add `SomeOf` validator.
- Treat Python 2 old-style classes like types when validating.
- Make `IsDir()`, `IsFile()` and `PathExists()` consistent between
different Python versions.
- Use absolute imports to avoid import conflicts.
- Fix `Coerce` validator to catch `decimal.InvalidOperation`.
- Make `Schema([])` usage consistent with `Schema({})`.
- Allow partial validation when using validate decorator.
- Make `Schema.__eq__` deterministic.
- Replace implementation of `Maybe(s)` with `Any(None, s)` to allow
it to be compiled.
-------------------------------------------------------------------
Thu Jul 6 14:39:52 UTC 2017 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-voluptuous
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-voluptuous
Version: 0.10.5
Version: 0.11.1
Release: 0
Summary: Voluptuous is a Python data validation library
License: BSD-3-Clause

View File

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

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

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