Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
[update to 0.11.0] Sync wrapper for hypothesis tests uses the event l…
Browse files Browse the repository at this point in the history
…oop provided by pytest-asyncio instead of creating a new loop.

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 HypothesisWorks/hypothesis#2375 is installed, solving build issues.
  • Loading branch information
fenrus75 committed Apr 21, 2020
1 parent a7c9adc commit 5fbbe28
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 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
4 changes: 3 additions & 1 deletion 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 =
Expand Down Expand Up @@ -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
Expand Down
18 changes: 10 additions & 8 deletions pytest-asyncio.spec
Expand Up @@ -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
Expand All @@ -18,6 +18,7 @@ BuildRequires : buildreq-distutils3
BuildRequires : pytest

%description
pytest-asyncio: pytest support for asyncio
==========================================

%package license
Expand Down Expand Up @@ -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 "
Expand All @@ -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 || :
Expand Down
2 changes: 1 addition & 1 deletion release
@@ -1 +1 @@
9
10
2 changes: 1 addition & 1 deletion upstream
@@ -1 +1 @@
197a54291aed1460c5732139e933370558d84196/pytest-asyncio-0.10.0.tar.gz
a28cead4ad3a742a0408ffd0cef004c762439620/pytest-asyncio-0.11.0.tar.gz
2 changes: 1 addition & 1 deletion versions
@@ -1 +1 @@
0.10.0
0.11.0

0 comments on commit 5fbbe28

Please sign in to comment.