import python-pydantic-core-2.27.2-1.el10

i10ce changed/i10ce/python-pydantic-core-2.27.2-1.el10
Arkady L. Shane 4 weeks ago
parent 4b17b18cc7
commit 6f4f9b0798
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

2
.gitignore vendored

@ -1 +1 @@
SOURCES/pydantic-core-2.23.4.tar.gz
SOURCES/pydantic-core-2.27.2.tar.gz

@ -1 +1 @@
3397a6bde9a155cf4ff21e3ad410195f09000543 SOURCES/pydantic-core-2.23.4.tar.gz
dfac192b1210c8f4aa3609856ff323e034000a42 SOURCES/pydantic-core-2.27.2.tar.gz

@ -7,10 +7,12 @@
# Optional integration tests (no effect if tests are disabled)
%bcond numpy_tests 1
%bcond pandas_tests 1
# No python-inline-snapshot on Fedora 40 (dependencies are too old)
%bcond inline_snapshot_tests %{undefined fc40}
Name: python-pydantic-core
Version: 2.23.4
Release: 2%{?dist}
Version: 2.27.2
Release: 1%{?dist}
Summary: Core validation logic for pydantic written in rust
License: MIT
@ -27,6 +29,9 @@ BuildRequires: rust-packaging
BuildRequires: tomcli >= 0.3.0
%if %{with tests}
BuildRequires: %{py3_dist dirty-equals}
%if %{with inline_snapshot_tests}
BuildRequires: %{py3_dist inline-snapshot}
%endif
%if %{with numpy_tests}
BuildRequires: %{py3_dist numpy}
%endif
@ -38,15 +43,8 @@ BuildRequires: %{py3_dist pandas}
%endif
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-mock}
BuildRequires: %{py3_dist pytz}
%endif
# The Python extension module now gets a SONAME of lib_pydantic_core.so; we
# must ensure it is not used to generate automatic Provides. See:
# Rust 1.81+ implicitly / automatically sets soname on cdylib targets
# https://bugzilla.redhat.com/show_bug.cgi?id=2314879
# https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/#_filtering_provides_and_requires_after_scanning
%global __provides_exclude ^lib_pydantic_core\\.so.*$
%global _description %{expand:
The pydantic-core project provides the core validation logic for pydantic
@ -120,11 +118,11 @@ export RUSTFLAGS="%{build_rustflags}"
%check
%pyproject_check_import
%if %{with tests}
%if v"0%{?python3_version}" >= v"3.13"
# the tested output of test_string.py::test_invalid_regex[python-re] has changed in Python 3.13
deselect='--deselect tests/validators/test_string.py::test_invalid_regex[python-re]'
ignore="${ignore-} --ignore=tests/benchmarks"
%if %{without inline_snapshot_tests}
ignore="${ignore-} --ignore=tests/validators/test_allow_partial.py"
%endif
%pytest --ignore=tests/benchmarks ${deselect-} -rs
%pytest ${ignore-} -rs
%endif
@ -134,9 +132,15 @@ deselect='--deselect tests/validators/test_string.py::test_invalid_regex[python-
%changelog
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.23.4-2
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.27.2-1
- Rebuilt for MSVSphere 10
* Wed Dec 18 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 2.27.2-1
- Update to 2.27.2
* Sat Nov 23 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 2.27.1-1
- Update to 2.27.1
* Thu Sep 26 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 2.23.4-2
- Fix automatic provides on Python extension due to SONAME

Loading…
Cancel
Save