14
0

Accepting request 892675 from home:mcalabkova:branches:devel:languages:python

- Update to 1.8.2 (bsc#1186019, CVE-2021-29510)
  * Security fix: Fix date and datetime parsing so passing either 'infinity' 
    or float('inf') (or their negative values) does not cause an infinite loop
  * Allow passing json_encoders in class kwargs
  * support arbitrary types with custom __eq__
  * Hypothesis plugin for testing
  * support for NamedTuple and TypedDict
  * Support Annotated hints on model fields
  * frozen parameter on Config to allow models to be hashed
  * Breaking Change, remove old deprecation aliases from v1
  * Breaking Change: always validate only first sublevel items with each_item
  * many more changes, see upstream changelog

OBS-URL: https://build.opensuse.org/request/show/892675
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=18
This commit is contained in:
2021-05-13 11:44:17 +00:00
committed by Git OBS Bridge
parent 2980a88758
commit 35d63c53cf
4 changed files with 22 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pydantic
Version: 1.7.3
Version: 1.8.2
Release: 0
Summary: Data validation and settings management using python type hinting
License: MIT
@@ -32,7 +32,7 @@ BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dotenv >= 0.10.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing_extensions >= 3.7.2}
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: (python3-dataclasses if python3-base < 3.7)
@@ -40,7 +40,7 @@ BuildRequires: (python36-dataclasses if python36-base)
%if 0%{?python_version_nodots} == 36
Requires: python-dataclasses
%endif
Recommends: python-typing_extensions >= 3.7.2
Requires: python-typing_extensions >= 3.7.4.3
Suggests: python-email_validator >= 1.0.3
Suggests: python-python-dotenv >= 0.10.4
BuildArch: noarch
@@ -51,8 +51,6 @@ Data validation and settings management using Python type hinting.
%prep
%setup -q -n pydantic-%{version}
# compatibility with new pytest
sed -i 's/yield_fixture/fixture/' tests/conftest.py
%build
%python_build