|
|
@ -7,10 +7,12 @@
|
|
|
|
# Optional integration tests (no effect if tests are disabled)
|
|
|
|
# Optional integration tests (no effect if tests are disabled)
|
|
|
|
%bcond numpy_tests 1
|
|
|
|
%bcond numpy_tests 1
|
|
|
|
%bcond pandas_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
|
|
|
|
Name: python-pydantic-core
|
|
|
|
Version: 2.23.4
|
|
|
|
Version: 2.27.2
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Core validation logic for pydantic written in rust
|
|
|
|
Summary: Core validation logic for pydantic written in rust
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -27,6 +29,9 @@ BuildRequires: rust-packaging
|
|
|
|
BuildRequires: tomcli >= 0.3.0
|
|
|
|
BuildRequires: tomcli >= 0.3.0
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: %{py3_dist dirty-equals}
|
|
|
|
BuildRequires: %{py3_dist dirty-equals}
|
|
|
|
|
|
|
|
%if %{with inline_snapshot_tests}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist inline-snapshot}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if %{with numpy_tests}
|
|
|
|
%if %{with numpy_tests}
|
|
|
|
BuildRequires: %{py3_dist numpy}
|
|
|
|
BuildRequires: %{py3_dist numpy}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -38,15 +43,8 @@ BuildRequires: %{py3_dist pandas}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
BuildRequires: %{py3_dist pytest-mock}
|
|
|
|
BuildRequires: %{py3_dist pytest-mock}
|
|
|
|
BuildRequires: %{py3_dist pytz}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%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:
|
|
|
|
%global _description %{expand:
|
|
|
|
The pydantic-core project provides the core validation logic for pydantic
|
|
|
|
The pydantic-core project provides the core validation logic for pydantic
|
|
|
@ -120,11 +118,11 @@ export RUSTFLAGS="%{build_rustflags}"
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pyproject_check_import
|
|
|
|
%pyproject_check_import
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
%if v"0%{?python3_version}" >= v"3.13"
|
|
|
|
ignore="${ignore-} --ignore=tests/benchmarks"
|
|
|
|
# the tested output of test_string.py::test_invalid_regex[python-re] has changed in Python 3.13
|
|
|
|
%if %{without inline_snapshot_tests}
|
|
|
|
deselect='--deselect tests/validators/test_string.py::test_invalid_regex[python-re]'
|
|
|
|
ignore="${ignore-} --ignore=tests/validators/test_allow_partial.py"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%pytest --ignore=tests/benchmarks ${deselect-} -rs
|
|
|
|
%pytest ${ignore-} -rs
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -134,9 +132,15 @@ deselect='--deselect tests/validators/test_string.py::test_invalid_regex[python-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%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
|
|
|
|
- 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
|
|
|
|
* Thu Sep 26 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 2.23.4-2
|
|
|
|
- Fix automatic provides on Python extension due to SONAME
|
|
|
|
- Fix automatic provides on Python extension due to SONAME
|
|
|
|
|
|
|
|
|
|
|
|