Accepting request 1104756 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1104756
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cerberus?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2023-08-19 22:11:50 +00:00 committed by Git OBS Bridge
commit d383f2ecea
4 changed files with 48 additions and 10 deletions

View File

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

3
cerberus-1.3.5.tar.gz Normal file
View File

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

View File

@ -1,3 +1,39 @@
-------------------------------------------------------------------
Fri Aug 18 15:51:56 UTC 2023 - Martin Schreiner <martin.schreiner@suse.com>
Spec source changed from PyPI to GitHub since the PyPI tarball no
longer includes the test suite.
Update from 1.3.2 to 1.3.5.
Changes from 1.3.5:
* Support for Python 3.10 & 3.11
* The HTML documentation uses the furo theme
* *of rules are skipped for None values
* Validations of mappings would raise an exception when the fields
rules were provided as reference to a registry item
* Various minor improvements of the documentation
Changes from 1.3.4:
* Reverts the unsatisfying fix for #557
Instead a RuntimeError is thrown when Python is running with
optimization level 2
Changes from 1.3.3:
* Adds a benchmark to observe overall performance between code
changes
* Adds support for Python 3.9
* The Continuous Integration now runs on GitHub Actions
* Fixed unresolved registry references when getting a constraint for
an error
* Fixed crash when submitting non-hashable values to allowed
* Fixed schema validation for rules specifications with space
* Replaced deprecated rule name validator with check_with in the
docs
* Use the UnconcernedValidator when the Python interpreter is
executed with an optimization flag
* Several fixes and refinements of the docs
-------------------------------------------------------------------
Thu Oct 13 07:12:46 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-Cerberus
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,17 +19,19 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Cerberus
Version: 1.3.2
Version: 1.3.5
Release: 0
Summary: Extensible schema and data validation tool for Python dictionaries
License: ISC
Group: Development/Languages/Python
URL: https://github.com/nicolaiarocci/cerberus
Source: https://files.pythonhosted.org/packages/source/C/Cerberus/Cerberus-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
Source: https://github.com/pyeve/cerberus/archive/refs/tags/%{version}.tar.gz#/cerberus-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION tests
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-benchmark}
# /SECTION
BuildRequires: fdupes
BuildArch: noarch
@ -42,13 +44,13 @@ is designed to be non-blocking and extensible, allowing for custom
validation.
%prep
%setup -q -n Cerberus-%{version}
%setup -q -n cerberus-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check