## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pydantic Version: 1.10.14 Release: %autorelease Summary: Data validation using Python type hinting License: MIT URL: https://github.com/pydantic/pydantic Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch: Fix-Python-3.12-test-failures.patch BuildArch: noarch # Specify recursive_guard as kwarg in FutureRef._evaluate # https://github.com/pydantic/pydantic/pull/9612 # # Fixes: # # TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: # 'recursive_guard' # https://github.com/pydantic/pydantic/issues/9637 Patch: %{url}/commit/464ed49b1f813103a49116476bec75a94492b338.patch BuildRequires: python3-devel # For check phase BuildRequires: python3dist(hypothesis) BuildRequires: python3dist(mypy) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-mock) %global _description %{expand: Data validation and settings management using python type hinting.} %description %{_description} %package -n python3-pydantic Summary: %{summary} # In F39, this is a strong dependency rather than a weak one to maximize # compatibility with the old manual dependency on python3-email-validator. Requires: python3-pydantic+email %description -n python3-pydantic %{_description} %prep %autosetup -n pydantic-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x email -x dotenv %build %pyproject_wheel # Docs are in MarkDown, and should be added when mkdocs is packaged. %install %pyproject_install %pyproject_save_files -l pydantic %check # Disable mypy plugin tests. We don't use it for downstream packaging. %pytest -Wdefault --ignore=tests/mypy/test_mypy.py %files -n python3-pydantic -f %{pyproject_files} %doc README.md docs/ %pyproject_extras_subpkg email,dotenv -n python3-pydantic %changelog ## START: Generated by rpmautospec * Fri Jul 05 2024 Benjamin A. Beasley - 1.10.14-6 - Backport a fix for Python 3.12.4 (upstream bug 9637) * Tue Apr 16 2024 Benjamin A. Beasley - 1.10.14-5 - Assert the .dist-info directory contains a license file; don’t package a duplicate * Tue Mar 26 2024 Benjamin A. Beasley - 1.10.14-2 - Upgrade the dependency on the email extra metapackage from weak to strong * Wed Feb 28 2024 Benjamin A. Beasley - 1.10.14-1 - Update to 1.10.14. * Tue Oct 10 2023 Benjamin A. Beasley - 1.10.13-1 - Update to 1.10.13. * Sat Aug 12 2023 Maxwell G - 1.10.12-1 - Update to 1.10.12. * Fri Jul 21 2023 Fedora Release Engineering - 1.10.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 1.10.2-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Sep 07 2022 Susi Lehtola - 1.10.2-1 - Update to 1.10.2. * Thu Sep 01 2022 Susi Lehtola - 1.10.1-1 - Update to 1.10.1. * Wed Aug 24 2022 Susi Lehtola - 1.9.2-1 - Update to 1.9.2. * Fri Jul 22 2022 Fedora Release Engineering - 1.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.9.1-2 - Rebuilt for Python 3.11 * Thu Jun 09 2022 Susi Lehtola - 1.9.1-1 - Update to 1.9.1. * Wed Feb 02 2022 Susi Lehtola - 1.9.0-1 - Update to 1.9.0. * Fri Jan 21 2022 Fedora Release Engineering - 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 22 2021 Susi Lehtola - 1.8.2-1 - Update to 1.8.2. * Fri Jul 23 2021 Fedora Release Engineering - 1.7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.4-2 - Rebuilt for Python 3.10 * Tue May 11 2021 Benjamin A. Beasley - 1.7.4-1 - Update to 1.7.4; fixes CVE-2021-29510 * Wed Feb 24 2021 Susi Lehtola - 1.7.3-1 - Update to 1.7.3. * Wed Jan 27 2021 Fedora Release Engineering - 1.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 11 2020 Susi Lehtola - 1.6.1-1 - Update to 1.6.1. * Wed Jul 29 2020 Fedora Release Engineering - 1.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.3-5 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 07 2020 Susi Lehtola - 1.3-3 - python-email_validator is now packaged as python-email-validator... * Tue Jan 07 2020 Susi Lehtola - 1.3-2 - Review fixes. * Mon Jan 06 2020 Susi Lehtola - 1.3-1 - Update to 1.3. - Review fixes. * Sun Nov 24 2019 Susi Lehtola - 1.1.1-1 - Update to 1.1.1. * Sat Jul 27 2019 Susi Lehtola - 0.31-1 - Initial package. ## END: Generated by rpmautospec