%global pypi_name typeguard Name: python-%{pypi_name} Version: 2.12.1 Release: 1%{?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 python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools_scm BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pbr BuildRequires: python%{python3_pkgversion}-six >= 1.9.0 BuildRequires: python%{python3_pkgversion}-tornado >= 4.5 BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-cov BuildRequires: python%{python3_pkgversion}-typing-extensions BuildRequires: python%{python3_pkgversion}-mypy %if %{undefined __pythondist_requires} Requires: python%{python3_pkgversion}-six >= 1.9.0 %endif %description -n python%{python3_pkgversion}-%{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 %pytest \ --deselect tests/test_importhook.py::test_cached_module \ --deselect tests/test_typeguard.py::TestTypeChecked::test_literal \ --ignore tests/mypy/test_type_annotations.py %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog * Tue Jun 08 2021 Davide Cavalca - 2.12.1-1 - Update to 2.12.1 - Gate out broken tests * Fri Jun 04 2021 Python Maint - 2.10.0-4 - Rebuilt for Python 3.10 * 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