2019-09-20 09:56:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pydantic
|
|
|
|
#
|
2024-01-07 13:54:22 +00:00
|
|
|
# Copyright (c) 2024 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
|
|
|
|
|
|
|
|
2024-03-07 03:28:22 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-05-25 07:35:03 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2024-03-07 03:28:22 +00:00
|
|
|
Name: python-pydantic%{psuffix}
|
2024-03-16 11:56:33 +00:00
|
|
|
Version: 2.6.4
|
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
|
2024-03-07 03:28:22 +00:00
|
|
|
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
2022-07-19 09:21:21 +00:00
|
|
|
BuildRequires: %{python_module packaging}
|
2024-03-07 03:28:22 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Faker}
|
|
|
|
BuildRequires: %{python_module cloudpickle}
|
|
|
|
BuildRequires: %{python_module dirty-equals}
|
|
|
|
BuildRequires: %{python_module email-validator >= 2.0}
|
|
|
|
BuildRequires: %{python_module pydantic == %{version}}
|
|
|
|
BuildRequires: %{python_module pytest-benchmark}
|
|
|
|
BuildRequires: %{python_module pytest-examples}
|
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}
|
2024-03-07 03:28:22 +00:00
|
|
|
%endif
|
|
|
|
Requires: python-annotated-types >= 0.4.0
|
|
|
|
%if 0%{?python_version_nodots} < 310
|
|
|
|
Requires: python-eval-type-backport
|
|
|
|
%endif
|
|
|
|
Requires: python-pydantic-core == 2.16.3
|
|
|
|
Requires: python-typing_extensions >= 4.6.1
|
|
|
|
Suggests: python-email-validator >= 2.0
|
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
|
2024-03-07 03:28:22 +00:00
|
|
|
%pyproject_wheel
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-07 03:28:22 +00:00
|
|
|
%if %{without test}
|
|
|
|
%pyproject_install
|
2019-09-20 09:56:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2024-03-07 03:28:22 +00:00
|
|
|
%endif
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%check
|
2024-03-07 03:28:22 +00:00
|
|
|
%if %{with test}
|
|
|
|
%pytest
|
|
|
|
%endif
|
2019-09-20 09:56:46 +00:00
|
|
|
|
2024-03-07 03:28:22 +00:00
|
|
|
%if %{without test}
|
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
|
2024-03-07 03:28:22 +00:00
|
|
|
%{python_sitelib}/pydantic-%{version}.dist-info
|
|
|
|
%endif
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%changelog
|