From 5fbbe280939a1f23727ea0dbbc858e8b6f0e5276 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Tue, 21 Apr 2020 15:14:04 +0000 Subject: [PATCH] [update to 0.11.0] Sync wrapper for hypothesis tests uses the event loop provided by pytest-asyncio instead of creating a new loop. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Albert Tugushev (1): Replace yield_fixture() by fixture() Andrew Svetlov (1): Test on Python 3.8, drop 3.3 and 3.4 Jim Crist (1): Handle BaseExceptions from loop.run_until_complete (#126) Michael Seifert (3): Sync wrapper for hypothesis tests uses the event loop provided by pytest-asyncio instead of creating a new loop. Removed a layer of indirection when checking for markers. Simplified fixture setup by relying on the fact that get_event_loop returns the loop provided by the event_loop fixture of pytest-asyncio. Orion Poplawski (1): Fix required pytest version Romain Létendart (1): plugin: Use pytest 5.4.0 new Function API Timothy Fitz (1): Add test for hypothesis event_loop reuse. Tin Tvrtkovic (2): 0.11 open for business. 0.11.0 simonfagerholm (4): Enable test_subprocess to be run on win, by changing to ProactorEventLoop in those tests. Change event_loop to module scope in hypothesis tests, fixing #145. Add max supported pytest version to < 5.4.0 to prevent fails until #141 is fixed. Added min hypothesis version so that bugfix for https://github.com/HypothesisWorks/hypothesis/issues/2375 is installed, solving build issues. --- Makefile | 2 +- options.conf | 4 +++- pytest-asyncio.spec | 18 ++++++++++-------- release | 2 +- upstream | 2 +- versions | 2 +- 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 01739ad..d3204a0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKG_NAME := pytest-asyncio -URL = https://files.pythonhosted.org/packages/dc/20/a35b6fbb9b97859ed2203ad474e4dd8591ef369b7387f6ef08270a0a3e84/pytest-asyncio-0.10.0.tar.gz +URL = https://files.pythonhosted.org/packages/4f/f8/329cb3418eaec2e2e82b5936bf8f9fb5b33b8c34e1627ce7e51650030340/pytest-asyncio-0.11.0.tar.gz ARCHIVES = include ../common/Makefile.common diff --git a/options.conf b/options.conf index 306119e..7a562be 100644 --- a/options.conf +++ b/options.conf @@ -1,6 +1,6 @@ [package] name = pytest-asyncio -url = https://files.pythonhosted.org/packages/dc/20/a35b6fbb9b97859ed2203ad474e4dd8591ef369b7387f6ef08270a0a3e84/pytest-asyncio-0.10.0.tar.gz +url = https://files.pythonhosted.org/packages/4f/f8/329cb3418eaec2e2e82b5936bf8f9fb5b33b8c34e1627ce7e51650030340/pytest-asyncio-0.11.0.tar.gz archives = giturl = https://github.com/pytest-dev/pytest-asyncio.git domain = @@ -39,6 +39,8 @@ no_autostart = false nodebug = false # disable stripping binaries nostrip = false +# configure build also for openmpi +openmpi = false # optimize build for size over speed optimize_size = false # set profile for pgo diff --git a/pytest-asyncio.spec b/pytest-asyncio.spec index 7fc5bd9..b3ddb68 100644 --- a/pytest-asyncio.spec +++ b/pytest-asyncio.spec @@ -3,10 +3,10 @@ # Generated by: autospec.py # Name : pytest-asyncio -Version : 0.10.0 -Release : 9 -URL : https://files.pythonhosted.org/packages/dc/20/a35b6fbb9b97859ed2203ad474e4dd8591ef369b7387f6ef08270a0a3e84/pytest-asyncio-0.10.0.tar.gz -Source0 : https://files.pythonhosted.org/packages/dc/20/a35b6fbb9b97859ed2203ad474e4dd8591ef369b7387f6ef08270a0a3e84/pytest-asyncio-0.10.0.tar.gz +Version : 0.11.0 +Release : 10 +URL : https://files.pythonhosted.org/packages/4f/f8/329cb3418eaec2e2e82b5936bf8f9fb5b33b8c34e1627ce7e51650030340/pytest-asyncio-0.11.0.tar.gz +Source0 : https://files.pythonhosted.org/packages/4f/f8/329cb3418eaec2e2e82b5936bf8f9fb5b33b8c34e1627ce7e51650030340/pytest-asyncio-0.11.0.tar.gz Summary : Pytest support for asyncio. Group : Development/Tools License : Apache-2.0 @@ -18,6 +18,7 @@ BuildRequires : buildreq-distutils3 BuildRequires : pytest %description +pytest-asyncio: pytest support for asyncio ========================================== %package license @@ -49,15 +50,16 @@ python3 components for the pytest-asyncio package. %prep -%setup -q -n pytest-asyncio-0.10.0 -cd %{_builddir}/pytest-asyncio-0.10.0 +%setup -q -n pytest-asyncio-0.11.0 +cd %{_builddir}/pytest-asyncio-0.11.0 %build export http_proxy=http://127.0.0.1:9/ export https_proxy=http://127.0.0.1:9/ export no_proxy=localhost,127.0.0.1,0.0.0.0 export LANG=C.UTF-8 -export SOURCE_DATE_EPOCH=1583529227 +export SOURCE_DATE_EPOCH=1587482038 +# -Werror is for werrorists export GCC_IGNORE_WERROR=1 export CFLAGS="$CFLAGS -fno-lto " export FCFLAGS="$CFLAGS -fno-lto " @@ -70,7 +72,7 @@ python3 setup.py build export MAKEFLAGS=%{?_smp_mflags} rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/package-licenses/pytest-asyncio -cp %{_builddir}/pytest-asyncio-0.10.0/LICENSE %{buildroot}/usr/share/package-licenses/pytest-asyncio/c700a8b9312d24bdc57570f7d6a131cf63d89016 +cp %{_builddir}/pytest-asyncio-0.11.0/LICENSE %{buildroot}/usr/share/package-licenses/pytest-asyncio/c700a8b9312d24bdc57570f7d6a131cf63d89016 python3 -tt setup.py build install --root=%{buildroot} echo ----[ mark ]---- cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || : diff --git a/release b/release index ec63514..f599e28 100644 --- a/release +++ b/release @@ -1 +1 @@ -9 +10 diff --git a/upstream b/upstream index 771e7b7..e67d17d 100644 --- a/upstream +++ b/upstream @@ -1 +1 @@ -197a54291aed1460c5732139e933370558d84196/pytest-asyncio-0.10.0.tar.gz +a28cead4ad3a742a0408ffd0cef004c762439620/pytest-asyncio-0.11.0.tar.gz diff --git a/versions b/versions index 78bc1ab..d9df1bb 100644 --- a/versions +++ b/versions @@ -1 +1 @@ -0.10.0 +0.11.0