[packages/python3-pytest-asyncio] - updated to 0.18.2
qboosh
qboosh at pld-linux.org
Sat Mar 19 15:56:02 CET 2022
commit 639e9c9b163fdb499203b3279b2af8f13d6f5acb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 19 15:58:14 2022 +0100
- updated to 0.18.2
python3-pytest-asyncio.spec | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/python3-pytest-asyncio.spec b/python3-pytest-asyncio.spec
index 29d9a11..e7ce489 100644
--- a/python3-pytest-asyncio.spec
+++ b/python3-pytest-asyncio.spec
@@ -1,30 +1,31 @@
#
# Conditional build:
-%bcond_with tests # unit tests (not included in release package)
+%bcond_without tests # unit tests
Summary: Pytest support for asyncio
Summary(pl.UTF-8): Wsparcie do asyncio dla Pytesta
Name: python3-pytest-asyncio
-Version: 0.14.0
-Release: 2
+Version: 0.18.2
+Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pytest-asyncio/
Source0: https://files.pythonhosted.org/packages/source/p/pytest-asyncio/pytest-asyncio-%{version}.tar.gz
-# Source0-md5: b63593bc08f445f6e3f14c34128a68ed
+# Source0-md5: b57bafeb4f3303afa99df154835caf45
URL: https://pypi.org/project/pytest-asyncio/
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
-%if "%{py3_ver}" < "3.6"
-BuildRequires: python3-async_generator >= 1.3
-%endif
+BuildRequires: python3-flaky >= 3.5.0
BuildRequires: python3-hypothesis >= 5.7.1
-BuildRequires: python3-pytest >= 5.4.0
+BuildRequires: python3-pytest >= 6.1.0
+%if "%{py3_ver}" < "3.8"
+BuildRequires: python3-typing_extensions >= 3.7.2
+%endif
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.5
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,7 +54,12 @@ dostarcza przydatne wyposażenie i znaczniki ułatwiające testowanie.
%py3_build
%if %{with tests}
-%{__python3} -m pytest ...
+# test_flaky_integration failure: no expected report found
+# test_legacy_mode failures: more warnings than expected
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_asyncio.plugin" \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests -k 'not test_flaky_integration and not test_legacy_mode'
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-asyncio.git/commitdiff/639e9c9b163fdb499203b3279b2af8f13d6f5acb
More information about the pld-cvs-commit
mailing list