]> git.pld-linux.org Git - packages/python3-async_timeout.git/blame - python3-async_timeout.spec
rebuild with python 3.10
[packages/python3-async_timeout.git] / python3-async_timeout.spec
CommitLineData
26c2a0e9
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
5Summary: Timeout context manager for asyncio programs
6Summary(pl.UTF-8): Zarządca kontekstu z limitem czasu dla programów asyncio
7Name: python3-async_timeout
a92f2bc5 8Version: 4.0.2
c99472f0 9Release: 2
26c2a0e9
JB
10License: Apache v2.0
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/async-timeout/
13Source0: https://files.pythonhosted.org/packages/source/a/async-timeout/async-timeout-%{version}.tar.gz
a92f2bc5 14# Source0-md5: 10571272b2e0fab839ec23f8293bf482
26c2a0e9 15URL: https://pypi.org/project/async-timeout/
a92f2bc5
JB
16BuildRequires: python3-modules >= 1:3.6
17BuildRequires: python3-setuptools >= 1:45
26c2a0e9
JB
18%if %{with tests}
19BuildRequires: python3-pytest
20BuildRequires: python3-pytest-asyncio
21BuildRequires: python3-pytest-cov
a92f2bc5
JB
22%if "%{py3_ver}" < "3.8"
23BuildRequires: python3-typing_extensions >= 3.6.5
24%endif
26c2a0e9
JB
25%endif
26BuildRequires: rpm-pythonprov
27BuildRequires: rpmbuild(macros) >= 1.714
a92f2bc5 28Requires: python3-modules >= 1:3.6
26c2a0e9
JB
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33asyncio-compatible timeout context manager.
34
35%description -l pl.UTF-8
36Zarządca kontekstów z limitem czasu, zgodny z asyncio.
37
38%prep
39%setup -q -n async-timeout-%{version}
40
41%build
42%py3_build
43
44%if %{with tests}
45PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
46PYTEST_PLUGINS="pytest_asyncio.plugin,pytest_cov.plugin" \
47%{__python3} -m pytest tests
48%endif
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%py3_install
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc CHANGES.rst README.rst
61%{py3_sitescriptdir}/async_timeout
62%{py3_sitescriptdir}/async_timeout-%{version}-py*.egg-info
This page took 0.120161 seconds and 4 git commands to generate.