forked from pool/python-pydantic
* 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
70 lines
2.3 KiB
RPMSpec
70 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pydantic
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-pydantic
|
|
Version: 1.10.4
|
|
Release: 0
|
|
Summary: Data validation and settings management using python type hinting
|
|
License: MIT
|
|
URL: https://github.com/pydantic/pydantic
|
|
Source: https://github.com/pydantic/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
|
|
# PATCH-FIX-OPENSUSE Ignore DeprecationWarning until requests-toolbelt is fixed
|
|
# (Pulled in by email-validator)
|
|
Patch0: ignore-urllib3-pyopenssl-warning.patch
|
|
BuildRequires: %{python_module email-validator >= 1.0.3}
|
|
BuildRequires: %{python_module packaging}
|
|
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 >= 4.2.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-typing_extensions >= 4.2.0
|
|
Suggests: python-email-validator >= 1.0.3
|
|
Suggests: python-python-dotenv >= 0.10.4
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Data validation and settings management using Python type hinting.
|
|
|
|
%prep
|
|
%autosetup -p1 -n pydantic-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest -k 'not test_multiple_env_file'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md HISTORY.md
|
|
%{python_sitelib}/pydantic
|
|
%{python_sitelib}/pydantic-%{version}*-info
|
|
|
|
%changelog
|