forked from pool/python-pydantic
- update to 2.8.0:
* Update citation version automatically with new releases * Bump pyright to `v1.1.367` and add type checking tests for pipeline API * Update `pydantic.v1` stub to `v1.10.17` * General package updates to prep for `v2.8.0b1` * Bump `pydantic-core` to `v2.20.0` * Add support for Python 3.13 * Update `pdm` version used for `pdm.lock` to v2.16.1 * Update to `ruff` `v0.4.8` * Experimental: support `defer_build` for `TypeAdapter` * Implement `deprecated` field in json schema * Experimental: Add pipeline API * Add support for programmatic title generation * Implement `fail_fast` feature * Add `ser_json_inf_nan='strings'` mode to produce valid JSON * Replace `__spec__.parent` with `__package__` * Fix Outputted Model JSON Schema for `Sequence` type * Fix typing of `_frame_depth` * Make `ImportString` json schema compatible * Hide private attributes (`PrivateAttr`) from `__init__` signature in type checkers * Make detection of `TypeVar` defaults robust to the CPython `PEP-696` implementation * Fix usage of `PlainSerializer` with builtin types * Add more robust custom validation examples * Fix ignored `strict` specification for `StringConstraint(strict=False)` * Use `Self` where possible * Do not alter `RootModel.model_construct` signature in the OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=59
This commit is contained in:
@@ -27,14 +27,12 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pydantic%{psuffix}
|
||||
Version: 2.7.4
|
||||
Version: 2.8.0
|
||||
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-UPSTREAM gh#pydantic/pydantic#9527
|
||||
Patch0: support-pytest-8.patch
|
||||
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module packaging}
|
||||
@@ -46,19 +44,19 @@ BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module Faker}
|
||||
BuildRequires: %{python_module cloudpickle}
|
||||
BuildRequires: %{python_module dirty-equals}
|
||||
BuildRequires: %{python_module pydantic == %{version}}
|
||||
BuildRequires: %{python_module pydantic = %{version}}
|
||||
BuildRequires: %{python_module pytest >= 8.2.2}
|
||||
BuildRequires: %{python_module pytest-benchmark}
|
||||
BuildRequires: %{python_module pytest-examples}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dotenv >= 0.10.4}
|
||||
%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.18.4
|
||||
Requires: python-typing_extensions >= 4.6.1
|
||||
Requires: python-pydantic-core = 2.20.0
|
||||
Requires: python-typing-extensions >= 4.6.1
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
|
Reference in New Issue
Block a user