Accepting request 822509 from home:sebix:branches:devel:languages:python

- Update to version 3.8.6:
 - No upstream changelog available
- Use source tarball from pypi instead of GitHub.

OBS-URL: https://build.opensuse.org/request/show/822509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=7
This commit is contained in:
Matej Cepl 2020-07-24 01:00:55 +00:00 committed by Git OBS Bridge
parent cb156e20a7
commit 4651ce1ebd
4 changed files with 17 additions and 9 deletions

View File

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

3
mocket-3.8.6.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.8.6:
- No upstream changelog available
- Use source tarball from pypi instead of GitHub.
-------------------------------------------------------------------
Wed Apr 1 07:38:18 UTC 2020 - pgajdos@suse.com

View File

@ -18,13 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mocket
Version: 3.8.4
Version: 3.8.6
Release: 0
Summary: Python socket mock framework
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/mindflayer/python-mocket
Source: https://github.com/mindflayer/python-mocket/archive/%{version}.tar.gz#/mocket-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -44,6 +44,7 @@ BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pook}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-magic}
@ -64,10 +65,10 @@ Socket Mock Framework - for all kinds of socket animals, web-clients
included, with gevent/asyncio/SSL support.
%prep
%setup -q -n python-mocket-%{version}
%setup -q -n mocket-%{version}
rm -f setup.cfg pytest.ini tox.ini
sed -i '/pipenv/d' setup.py
touch conftest.py
rm tests/tests27/test_pook.py
%build
export LANG=en_US.UTF-8
@ -84,9 +85,9 @@ export PYTHONPATH=${PWD}
export SKIP_TRUE_HTTP=1
%{python_expand #
if [ $python = python2 ]; then
$python -m pytest tests/main mocket tests/tests27/ -vv -k 'not RedisTestCase'
$python -m pytest tests/main mocket -vv -k 'not RedisTestCase'
else
$python -m pytest tests/main mocket tests/tests27/ tests/tests35/ -vv -k 'not RedisTestCase'
$python -m pytest tests/main mocket tests/tests35/ -vv -k 'not RedisTestCase'
fi
}