|
Christopher Brown |
34a7cd4 |
%global pypi_name typeguard
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
Name: python-%{pypi_name}
|
|
|
bdb8d0d |
Version: 2.13.3
|
|
|
d6c045b |
Release: %autorelease
|
|
Christopher Brown |
34a7cd4 |
Summary: Run-time type checker for Python
|
|
Christopher Brown |
34a7cd4 |
License: MIT
|
|
Christopher Brown |
34a7cd4 |
URL: https://github.com/agronholm/%{pypi_name}
|
|
Christopher Brown |
34a7cd4 |
Source0: https://pypi.io/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Christopher Brown |
34a7cd4 |
BuildArch: noarch
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%package -n python3-%{pypi_name}
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
Summary: %{summary}
|
|
Christopher Brown |
34a7cd4 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-setuptools
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-setuptools_scm
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-devel
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-pbr
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-six >= 1.9.0
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-tornado >= 4.5
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-pytest
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-pytest-cov
|
|
Christopher Brown |
34a7cd4 |
BuildRequires: python3-typing-extensions
|
|
|
e11bab3 |
BuildRequires: python3-mypy
|
|
Christopher Brown |
34a7cd4 |
%if %{undefined __pythondist_requires}
|
|
Christopher Brown |
34a7cd4 |
Requires: python3-six >= 1.9.0
|
|
Christopher Brown |
34a7cd4 |
%endif
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%description -n python3-%{pypi_name}
|
|
Christopher Brown |
34a7cd4 |
This library provides run-time type checking for functions defined with PEP
|
|
Christopher Brown |
34a7cd4 |
484 argument (and return) type annotations.
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%description
|
|
Christopher Brown |
34a7cd4 |
This library provides run-time type checking for functions defined with PEP
|
|
Christopher Brown |
34a7cd4 |
484 argument (and return) type annotations.
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%prep
|
|
Christopher Brown |
34a7cd4 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
8331699 |
rm -rf %{pypi_name}.egg-info
|
|
|
bdb8d0d |
%if 0%{?rhel} < 9
|
|
|
8331699 |
# older setuptools generates PKG-INFO with version=='0.0.0' unless specified
|
|
|
8331699 |
sed -i '/name = typeguard/a version = %{version}' setup.cfg
|
|
|
8331699 |
%endif
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%build
|
|
Christopher Brown |
34a7cd4 |
%py3_build
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%install
|
|
Christopher Brown |
34a7cd4 |
%py3_install
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%check
|
|
|
e11bab3 |
%pytest \
|
|
|
e11bab3 |
--deselect tests/test_importhook.py::test_cached_module \
|
|
|
e11bab3 |
--ignore tests/mypy/test_type_annotations.py
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%files -n python3-%{pypi_name}
|
|
Christopher Brown |
34a7cd4 |
%doc README.rst
|
|
Christopher Brown |
34a7cd4 |
%license LICENSE
|
|
Christopher Brown |
34a7cd4 |
%{python3_sitelib}/%{pypi_name}/
|
|
Christopher Brown |
34a7cd4 |
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
Christopher Brown |
34a7cd4 |
|
|
Christopher Brown |
34a7cd4 |
%changelog
|
|
|
d6c045b |
%autochangelog
|