From 96a82dd98f62812d90a84663efd3f6ed83fed795 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 09 2021 00:05:13 +0000 Subject: Import python-typeguard-2.10.0-3.el9 in CloudSIG xena --- diff --git a/.python-typeguard.metadata b/.python-typeguard.metadata new file mode 100644 index 0000000..de17db8 --- /dev/null +++ b/.python-typeguard.metadata @@ -0,0 +1 @@ +2f0421ac46ae51481e93a0008701cb7bc68ae2b3 SOURCES/typeguard-2.10.0.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..0e5db4d --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-typeguard + +The python-typeguard package diff --git a/SPECS/python-typeguard.spec b/SPECS/python-typeguard.spec new file mode 100644 index 0000000..8bd4b28 --- /dev/null +++ b/SPECS/python-typeguard.spec @@ -0,0 +1,84 @@ +%global pypi_name typeguard + +Name: python-%{pypi_name} +Version: 2.10.0 +Release: 3%{?dist} +Summary: Run-time type checker for Python +License: MIT +URL: https://github.com/agronholm/%{pypi_name} +Source0: https://pypi.io/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%package -n python3-%{pypi_name} + +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-devel +BuildRequires: python3-pbr +BuildRequires: python3-six >= 1.9.0 +BuildRequires: python3-tornado >= 4.5 +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-typing-extensions +%if %{undefined __pythondist_requires} +Requires: python3-six >= 1.9.0 +%endif + + +%description -n python3-%{pypi_name} +This library provides run-time type checking for functions defined with PEP +484 argument (and return) type annotations. + +%description +This library provides run-time type checking for functions defined with PEP +484 argument (and return) type annotations. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +%if 0%{?fedora} < 33 || 0%{?rhel} < 9 +# older setuptools generates PKG-INFO with version=='0.0.0' unless specified +sed -i '/name = typeguard/a version = %{version}' setup.cfg +%endif + +%build +%py3_build + +%install +%py3_install + +%check +%{python3} -m pytest + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-*.egg-info/ + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 2.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Jan 14 2021 Michel Alexandre Salim - 2.10.0-2 +- Fix egginfo on Fedora < 33 so the auto-generated Provides has the right version + +* Mon Oct 26 2020 Christopher Brown - 2.10.0-1 +- Update to 2.10.0 +- Remove conditional as python 3.9 now supported + +* Mon Jul 6 2020 Christopher Brown - 2.9.1-1 +- Fix description +- Remove egg-info in prep +- Add conditional for python 3.9 + +* Wed May 27 2020 Christopher Brown - 2.7.1-2 +- Remove dep generator +- Simplify description +- Fix file glob + +* Wed May 6 2020 Christopher Brown - 2.7.1-1 +- Initial package at 2.7.1