2019-09-20 09:56:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pydantic
|
|
|
|
#
|
- update to v1.10.4:
* Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin
* fix parsing of custom root models, #4883 by @gou177
* fix: use dataclass proxy for frozen or empty dataclasses, #4878 by
@PrettyWood
* Fix schema and schema_json on models where a model instance is a one of
default values, #4781 by @Bobronium
* Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin
* fix: support assignment on DataclassProxy, #4695 by @PrettyWood
* Add postgresql+psycopg as allowed scheme for PostgreDsn to make it
usable with SQLAlchemy 2, #4689 by @morian
* Allow dict schemas to have both patternProperties and
additionalProperties, #4641 by @jparise
* Fixes error passing None for optional lists with unique_items, #4568 by
@mfulgo
* Fix GenericModel with Callable param raising a TypeError, #4551 by
@mfulgo
* Fix field regex with StrictStr type annotation, #4538 by @sisp
* Correct dataclass_transform keyword argument name from field_descriptors
to field_specifiers, #4500 by @samuelcolvin
* fix: avoid multiple calls of __post_init__ when dataclasses are
inherited, #4487 by @PrettyWood
* Reduce the size of binary wheels, #2276 by @samuelcolvin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=28
2023-01-02 20:23:23 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-09-20 09:56:46 +00:00
|
|
|
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-20 09:57:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
|
2023-05-25 07:35:03 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-09-20 09:56:46 +00:00
|
|
|
Name: python-pydantic
|
2023-11-16 10:00:07 +00:00
|
|
|
Version: 1.10.13
|
2019-09-20 09:56:46 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Data validation and settings management using python type hinting
|
2019-09-20 09:57:08 +00:00
|
|
|
License: MIT
|
- update to v1.10.4:
* Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin
* fix parsing of custom root models, #4883 by @gou177
* fix: use dataclass proxy for frozen or empty dataclasses, #4878 by
@PrettyWood
* Fix schema and schema_json on models where a model instance is a one of
default values, #4781 by @Bobronium
* Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin
* fix: support assignment on DataclassProxy, #4695 by @PrettyWood
* Add postgresql+psycopg as allowed scheme for PostgreDsn to make it
usable with SQLAlchemy 2, #4689 by @morian
* Allow dict schemas to have both patternProperties and
additionalProperties, #4641 by @jparise
* Fixes error passing None for optional lists with unique_items, #4568 by
@mfulgo
* Fix GenericModel with Callable param raising a TypeError, #4551 by
@mfulgo
* Fix field regex with StrictStr type annotation, #4538 by @sisp
* Correct dataclass_transform keyword argument name from field_descriptors
to field_specifiers, #4500 by @samuelcolvin
* fix: avoid multiple calls of __post_init__ when dataclasses are
inherited, #4487 by @PrettyWood
* Reduce the size of binary wheels, #2276 by @samuelcolvin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=28
2023-01-02 20:23:23 +00:00
|
|
|
URL: https://github.com/pydantic/pydantic
|
|
|
|
Source: https://github.com/pydantic/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
|
2022-09-09 00:58:49 +00:00
|
|
|
# PATCH-FIX-OPENSUSE Ignore DeprecationWarning until requests-toolbelt is fixed
|
|
|
|
# (Pulled in by email-validator)
|
|
|
|
Patch0: ignore-urllib3-pyopenssl-warning.patch
|
2023-11-16 10:00:07 +00:00
|
|
|
Patch1: Fix-Python-3.12-test-failures.patch
|
2022-09-09 00:58:49 +00:00
|
|
|
BuildRequires: %{python_module email-validator >= 1.0.3}
|
2022-07-19 09:21:21 +00:00
|
|
|
BuildRequires: %{python_module packaging}
|
2021-01-08 13:36:08 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2020-08-03 15:45:24 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module python-dotenv >= 0.10.4}
|
2019-09-20 09:57:08 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
- update to v1.10.4:
* Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin
* fix parsing of custom root models, #4883 by @gou177
* fix: use dataclass proxy for frozen or empty dataclasses, #4878 by
@PrettyWood
* Fix schema and schema_json on models where a model instance is a one of
default values, #4781 by @Bobronium
* Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin
* fix: support assignment on DataclassProxy, #4695 by @PrettyWood
* Add postgresql+psycopg as allowed scheme for PostgreDsn to make it
usable with SQLAlchemy 2, #4689 by @morian
* Allow dict schemas to have both patternProperties and
additionalProperties, #4641 by @jparise
* Fixes error passing None for optional lists with unique_items, #4568 by
@mfulgo
* Fix GenericModel with Callable param raising a TypeError, #4551 by
@mfulgo
* Fix field regex with StrictStr type annotation, #4538 by @sisp
* Correct dataclass_transform keyword argument name from field_descriptors
to field_specifiers, #4500 by @samuelcolvin
* fix: avoid multiple calls of __post_init__ when dataclasses are
inherited, #4487 by @PrettyWood
* Reduce the size of binary wheels, #2276 by @samuelcolvin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=28
2023-01-02 20:23:23 +00:00
|
|
|
BuildRequires: %{python_module typing_extensions >= 4.2.0}
|
2019-09-20 09:56:46 +00:00
|
|
|
BuildRequires: fdupes
|
2019-09-20 09:57:08 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
- update to v1.10.4:
* Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin
* fix parsing of custom root models, #4883 by @gou177
* fix: use dataclass proxy for frozen or empty dataclasses, #4878 by
@PrettyWood
* Fix schema and schema_json on models where a model instance is a one of
default values, #4781 by @Bobronium
* Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin
* fix: support assignment on DataclassProxy, #4695 by @PrettyWood
* Add postgresql+psycopg as allowed scheme for PostgreDsn to make it
usable with SQLAlchemy 2, #4689 by @morian
* Allow dict schemas to have both patternProperties and
additionalProperties, #4641 by @jparise
* Fixes error passing None for optional lists with unique_items, #4568 by
@mfulgo
* Fix GenericModel with Callable param raising a TypeError, #4551 by
@mfulgo
* Fix field regex with StrictStr type annotation, #4538 by @sisp
* Correct dataclass_transform keyword argument name from field_descriptors
to field_specifiers, #4500 by @samuelcolvin
* fix: avoid multiple calls of __post_init__ when dataclasses are
inherited, #4487 by @PrettyWood
* Reduce the size of binary wheels, #2276 by @samuelcolvin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=28
2023-01-02 20:23:23 +00:00
|
|
|
Requires: python-typing_extensions >= 4.2.0
|
2022-09-09 00:58:49 +00:00
|
|
|
Suggests: python-email-validator >= 1.0.3
|
2020-08-03 15:45:24 +00:00
|
|
|
Suggests: python-python-dotenv >= 0.10.4
|
2019-09-20 09:56:46 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Data validation and settings management using Python type hinting.
|
|
|
|
|
|
|
|
%prep
|
2022-02-02 04:14:28 +00:00
|
|
|
%autosetup -p1 -n pydantic-%{version}
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2023-03-16 07:19:57 +00:00
|
|
|
# Disable DeprecationWarning to avoid error with the latest setuptools
|
|
|
|
# and pkg_resources deprecation
|
|
|
|
%pytest -k 'not test_multiple_env_file' -W ignore::DeprecationWarning
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2020-03-19 13:37:43 +00:00
|
|
|
%doc README.md HISTORY.md
|
2020-12-07 02:13:16 +00:00
|
|
|
%{python_sitelib}/pydantic
|
|
|
|
%{python_sitelib}/pydantic-%{version}*-info
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%changelog
|