3 %bcond_with tests # unit tests (not included in release package)
5 Summary: Pytest support for asyncio
6 Summary(pl.UTF-8): Wsparcie do asyncio dla Pytesta
7 Name: python3-pytest-asyncio
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/pytest-asyncio/
13 Source0: https://files.pythonhosted.org/packages/source/p/pytest-asyncio/pytest-asyncio-%{version}.tar.gz
14 # Source0-md5: b63593bc08f445f6e3f14c34128a68ed
15 URL: https://pypi.org/project/pytest-asyncio/
16 BuildRequires: python3-modules >= 1:3.5
17 BuildRequires: python3-setuptools
19 %if "%{py3_ver}" < "3.6"
20 BuildRequires: python3-async_generator >= 1.3
22 BuildRequires: python3-hypothesis >= 5.7.1
23 BuildRequires: python3-pytest >= 5.4.0
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python3-modules >= 1:3.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 pytest-asyncio is an Apache 2 licensed library, written in Python, for
33 testing asyncio code with pytest.
35 asyncio code is usually written in the form of coroutines, which makes
36 it slightly more difficult to test using normal testing tools.
37 pytest-asyncio provides useful fixtures and markers to make testing
40 %description -l pl.UTF-8
41 pytest-asyncio to wydana na licencji Apache 2 biblioteka, napisana w
42 Pythonie, służąca do testowania kodu asynchronicznego we/wy przy
45 Kod asyncio jest zwykle pisany w postaci korutyn, co nieco utrudnia
46 testowanie przy użyciu zwykłych narzędzi testowych. pytest-asyncio
47 dostarcza przydatne wyposażenie i znaczniki ułatwiające testowanie.
50 %setup -q -n pytest-asyncio-%{version}
56 %{__python3} -m pytest ...
60 rm -rf $RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{py3_sitescriptdir}/pytest_asyncio
71 %{py3_sitescriptdir}/pytest_asyncio-%{version}-py*.egg-info