Accepting request 856852 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/856852 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=8
This commit is contained in:
commit
eb07ce42e1
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2f192fed452769372dd0374af44be241c57449f4ba6e5f2fafbb3ce480e3d796
|
|
||||||
size 74923
|
|
3
mocket-3.9.4.tar.gz
Normal file
3
mocket-3.9.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:044837634642171a54170a38bb14c707814c5d7f928e9a0f753a1aa330ea762c
|
||||||
|
size 75169
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 17 17:09:52 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Do not require and test with pook on Python2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 17 15:10:50 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to version 3.9.4
|
||||||
|
* fix for new version of pip resolver
|
||||||
|
- Skip python38 only tests in python36 flavor and python3 flavor
|
||||||
|
if python3 <= 3.8 (Leap)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 10 01:45:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Thu Dec 10 01:45:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-mocket%{psuffix}
|
Name: python-mocket%{psuffix}
|
||||||
Version: 3.9.3
|
Version: 3.9.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python socket mock framework
|
Summary: Python socket mock framework
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -53,7 +53,12 @@ BuildRequires: %{python_module decorator}
|
|||||||
BuildRequires: %{python_module gevent}
|
BuildRequires: %{python_module gevent}
|
||||||
BuildRequires: %{python_module http-parser >= 0.9.0}
|
BuildRequires: %{python_module http-parser >= 0.9.0}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
|
%if 0%{suse_version} >= 1550
|
||||||
|
# Optional pook is only available for Python 3, but in TW we will have more than one flavor
|
||||||
BuildRequires: %{python_module pook}
|
BuildRequires: %{python_module pook}
|
||||||
|
%else
|
||||||
|
BuildRequires: python3-pook
|
||||||
|
%endif
|
||||||
BuildRequires: %{python_module pyOpenSSL}
|
BuildRequires: %{python_module pyOpenSSL}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-magic}
|
BuildRequires: %{python_module python-magic}
|
||||||
@ -96,8 +101,12 @@ export LANG=en_US.UTF-8
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
export SKIP_TRUE_HTTP=1
|
export SKIP_TRUE_HTTP=1
|
||||||
%define pytest_ignore_python2 --ignore tests/tests35 --ignore tests/tests38
|
pytest_python2_ignore="--ignore tests/tests35 --ignore tests/tests38 --ignore tests/main/test_pook.py"
|
||||||
%pytest -k 'not RedisTestCase' %{?pytest_ignore%{$python_version}}
|
pytest_python36_ignore="--ignore tests/tests38"
|
||||||
|
%if %{python3_version_nodots} < 38
|
||||||
|
pytest_python3_ignore="--ignore tests/tests38"
|
||||||
|
%endif
|
||||||
|
%pytest -k 'not RedisTestCase' ${pytest_$python_ignore}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
Loading…
Reference in New Issue
Block a user