[packages/python3-pytest-asyncio] - updated to 0.19.0
qboosh
qboosh at pld-linux.org
Wed Sep 14 21:40:44 CEST 2022
commit 0663110e4af7453397593758b1a2d53941e16fe8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 14 21:40:55 2022 +0200
- updated to 0.19.0
python3-pytest-asyncio.spec | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/python3-pytest-asyncio.spec b/python3-pytest-asyncio.spec
index d61e20e..7ecc65b 100644
--- a/python3-pytest-asyncio.spec
+++ b/python3-pytest-asyncio.spec
@@ -5,21 +5,24 @@
Summary: Pytest support for asyncio
Summary(pl.UTF-8): Wsparcie do asyncio dla Pytesta
Name: python3-pytest-asyncio
-Version: 0.18.2
-Release: 3
+Version: 0.19.0
+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: b57bafeb4f3303afa99df154835caf45
+# Source0-md5: 0c74a0ae2b509735594684bf00512252
URL: https://pypi.org/project/pytest-asyncio/
BuildRequires: python3-modules >= 1:3.7
-BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools >= 1:51.0
+#BuildRequires: python3-setuptools_scm >= 6.2
+BuildRequires: python3-toml
%if %{with tests}
BuildRequires: python3-flaky >= 3.5.0
BuildRequires: python3-hypothesis >= 5.7.1
BuildRequires: python3-pytest >= 6.1.0
-%if "%{py3_ver}" < "3.8"
+BuildRequires: python3-pytest-trio
+%if "%{py3_ver}" == "3.7"
BuildRequires: python3-typing_extensions >= 3.7.2
%endif
%endif
@@ -50,6 +53,12 @@ dostarcza przydatne wyposażenie i znaczniki ułatwiające testowanie.
%prep
%setup -q -n pytest-asyncio-%{version}
+# stub for setuptools
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
%build
%py3_build
@@ -57,7 +66,7 @@ dostarcza przydatne wyposażenie i znaczniki ułatwiające testowanie.
# 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" \
+PYTEST_PLUGINS="pytest_asyncio.plugin,pytest_trio.plugin" \
PYTHONPATH=$(pwd) \
%{__python3} -m pytest tests -k 'not test_flaky_integration and not test_legacy_mode'
%endif
@@ -72,6 +81,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.rst
+%doc CHANGELOG.rst README.rst
%{py3_sitescriptdir}/pytest_asyncio
%{py3_sitescriptdir}/pytest_asyncio-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-asyncio.git/commitdiff/0663110e4af7453397593758b1a2d53941e16fe8
More information about the pld-cvs-commit
mailing list