From c028793b9df129b52802eb6e8c6688bb16ab5865 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 20:58:45 +0300 Subject: [PATCH] import python-annotated-types-0.7.0-3.el10 --- .gitignore | 1 + .python-annotated-types.metadata | 1 + SPECS/python-annotated-types.spec | 99 +++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 .gitignore create mode 100644 .python-annotated-types.metadata create mode 100644 SPECS/python-annotated-types.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11e23a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/annotated-types-0.7.0.tar.gz diff --git a/.python-annotated-types.metadata b/.python-annotated-types.metadata new file mode 100644 index 0000000..48c3cac --- /dev/null +++ b/.python-annotated-types.metadata @@ -0,0 +1 @@ +664450015ffed4fafd169875079d76ae84d0e8db SOURCES/annotated-types-0.7.0.tar.gz diff --git a/SPECS/python-annotated-types.spec b/SPECS/python-annotated-types.spec new file mode 100644 index 0000000..2c52fe8 --- /dev/null +++ b/SPECS/python-annotated-types.spec @@ -0,0 +1,99 @@ +# Copyright (C) 2023 Maxwell G +# Copyright (C) Fedora Project Authors +# SPDX-License-Identifier: MIT +# License text: https://spdx.org/licenses/MIT + +%bcond tests 1 + +Name: python-annotated-types +Version: 0.7.0 +Release: 3%{?dist} +Summary: Reusable constraint types to use with typing.Annotated + +License: MIT +%global forgeurl https://github.com/annotated-types/annotated-types +URL: %{forgeurl} +%forgemeta +Source: %{forgesource} + +BuildArch: noarch + +BuildRequires: python3-devel +%if %{with tests} +BuildRequires: %{py3_dist pytest} +%endif + +%global _description %{expand: +PEP-593 added typing.Annotated as a way of adding context-specific metadata to +existing types, and specifies that Annotated[T, x] should be treated as T by +any tool or library without special logic for x. + +This package provides metadata objects which can be used to represent common +constraints such as upper and lower bounds on scalar values and collection +sizes, a Predicate marker for runtime checks, and descriptions of how we intend +these metadata to be interpreted. In some cases, we also note alternative +representations which do not require this package.} + +%description %_description + + +%package -n python3-annotated-types +Summary: %{summary} + +%description -n python3-annotated-types %{_description} + + +%prep +%autosetup -p1 %{forgesetupargs} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l annotated_types + + +%check +%if %{with tests} +%pytest +%endif + + +%files -n python3-annotated-types -f %{pyproject_files} +%doc README.md + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.7.0-3 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.7.0-2 +- Rebuilt for Python 3.13 + +* Tue May 21 2024 Benjamin A. Beasley - 0.7.0-1 +- Update to 0.7.0 (close RHBZ#2282026) + +* Fri Jan 26 2024 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 01 2024 Benjamin A. Beasley - 0.6.0-2 +- Assert %%pyproject_files contains a license file; don’t package a duplicate + +* Fri Oct 06 2023 Maxwell G - 0.6.0-1 +- Update to 0.6.0. Fixes rhbz#2242535. + +* Fri Sep 08 2023 Maxwell G - 0.5.0-1 +- Initial package. Closes rhbz#2238391.