diff --git a/annotated_types-0.7.0.tar.gz b/annotated_types-0.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a7883fca1842729d9b87d9f928186883330abf08 Binary files /dev/null and b/annotated_types-0.7.0.tar.gz differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..8727dbf4c0d9d83969428849549cc0295fbf1822 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +annotated_types-0.7.0.tar.gz +python-annotated-types.spec diff --git a/python-annotated-types.spec b/python-annotated-types.spec new file mode 100644 index 0000000000000000000000000000000000000000..ae81fe3e3dbd5793ffd88587faf601e939114e50 --- /dev/null +++ b/python-annotated-types.spec @@ -0,0 +1,66 @@ +Name: python-annotated-types +Version: 0.7.0 +Release: 1 +Summary: Reusable constraint types to use with typing.Annotated + +License: MIT +URL: https://github.com/annotated-types/annotated-types +Source0: %{url}/archive/v%{version}/annotated_types-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +# for test +BuildRequires: %{py3_dist pytest} + +%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 -n annotated-types-%{version} + + +%build +%pyproject_build + + +%install +%pyproject_install + + +%check +%pytest + + +%files -n python3-annotated-types +%license LICENSE +%doc README.md +%{python3_sitelib}/annotated_types-*.dist-info/ +%{python3_sitelib}/annotated_types + + +%changelog +* Mon Dec 16 2024 Dongxing Wang - 0.7.0-1 +- Package init diff --git a/python-annotated-types.src.rpm b/python-annotated-types.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..76021cb54d641719296c4f184200a2ea85dff27f Binary files /dev/null and b/python-annotated-types.src.rpm differ