From 501bb777af84a0a23f210bf7e68172f340d994cf860e3ad062b4d701da36da4f Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 19 Aug 2023 06:01:27 +0000 Subject: [PATCH] Accepting request 1104713 from home:mschreiner:branches:devel:languages:python 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. Please check the 'changes' file for a more complete changelog, including all changes between 1.3.2 and 1.3.5. OBS-URL: https://build.opensuse.org/request/show/1104713 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cerberus?expand=0&rev=25 --- Cerberus-1.3.2.tar.gz | 3 --- cerberus-1.3.5.tar.gz | 3 +++ python-Cerberus.changes | 36 ++++++++++++++++++++++++++++++++++++ python-Cerberus.spec | 16 +++++++++------- 4 files changed, 48 insertions(+), 10 deletions(-) delete mode 100644 Cerberus-1.3.2.tar.gz create mode 100644 cerberus-1.3.5.tar.gz diff --git a/Cerberus-1.3.2.tar.gz b/Cerberus-1.3.2.tar.gz deleted file mode 100644 index 8b52b73..0000000 --- a/Cerberus-1.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:302e6694f206dd85cb63f13fd5025b31ab6d38c99c50c6d769f8fa0b0f299589 -size 52523 diff --git a/cerberus-1.3.5.tar.gz b/cerberus-1.3.5.tar.gz new file mode 100644 index 0000000..c8819a6 --- /dev/null +++ b/cerberus-1.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2ee895c33ee25a159166263ee799c1a8a810086b99cabd5b1c8abdd5b193cac +size 921848 diff --git a/python-Cerberus.changes b/python-Cerberus.changes index 726d9f1..70dc04e 100644 --- a/python-Cerberus.changes +++ b/python-Cerberus.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Fri Aug 18 15:51:56 UTC 2023 - Martin Schreiner + +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 field’s + 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 diff --git a/python-Cerberus.spec b/python-Cerberus.spec index 4bb5b8a..c8f83f3 100644 --- a/python-Cerberus.spec +++ b/python-Cerberus.spec @@ -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