14
0
forked from pool/python-txaio

Accepting request 789103 from devel:languages:python

- Remove pytest4.patch as it is included upstream
- Switch off python2 builds.

- version update to 20.3.1
  - MISC: Remove python2 support
  - NEW: support import-time framework selection

- update to 20.1.1
- drop pytest4.patch
 * new: moved time_ns and perf_counter_ns helper functions here
 * drop support for python 3.4 and older

OBS-URL: https://build.opensuse.org/request/show/789103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-txaio?expand=0&rev=8
This commit is contained in:
2020-03-27 21:02:38 +00:00
committed by Git OBS Bridge
5 changed files with 27 additions and 53 deletions

View File

@@ -1,47 +0,0 @@
From 9217f054b7eccc120f84e01995479125e07de59a Mon Sep 17 00:00:00 2001
From: meejah <meejah@meejah.ca>
Date: Fri, 22 Feb 2019 12:01:46 -0700
Subject: [PATCH] make pytest happy
---
test/conftest.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/test/conftest.py b/test/conftest.py
index 4a225c8..a3ca2d6 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -25,9 +25,9 @@ def framework(request):
try:
if request.param == 'twisted':
- return framework_tx()
+ return _notfixture_framework_tx()
elif request.param == 'asyncio':
- return framework_aio()
+ return _notfixture_framework_aio()
except ImportError:
pytest.skip()
@@ -43,6 +43,10 @@ def framework_uninitialized():
@pytest.fixture
def framework_tx():
+ return _notfixture_framework_tx()
+
+
+def _notfixture_framework_tx():
try:
import txaio
from txaio import tx
@@ -56,6 +60,10 @@ def framework_tx():
@pytest.fixture
def framework_aio():
+ return _notfixture_framework_aio()
+
+
+def _notfixture_framework_aio():
try:
import txaio
from txaio import aio

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri Mar 27 15:24:16 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Remove pytest4.patch as it is included upstream
- Switch off python2 builds.
-------------------------------------------------------------------
Wed Mar 25 14:49:27 UTC 2020 - pgajdos@suse.com
- version update to 20.3.1
- MISC: Remove python2 support
- NEW: support import-time framework selection
-------------------------------------------------------------------
Wed Feb 5 13:11:01 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 20.1.1
- drop pytest4.patch
* new: moved time_ns and perf_counter_ns helper functions here
* drop support for python 3.4 and older
-------------------------------------------------------------------
Fri Sep 13 11:40:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-txaio
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-txaio
Version: 18.8.1
Version: 20.3.1
Release: 0
Summary: WebSocket and WAMP in Python for Twisted and asyncio
License: MIT
Group: Development/Languages/Python
URL: https://github.com/crossbario/txaio
Source: https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz
Patch0: pytest4.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67e360ac73b12c52058219bb5f8b3ed4105d2636707a36a7cdafb56fe06db7fe
size 51092

3
txaio-20.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7a4a4db3d818975ed16ae1b90f53c6621e0075618709e88291ad5a41924e38f
size 52275