Accepting request 825737 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/825737 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=5
This commit is contained in:
commit
b855e81536
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aeaa0ce03473f4770eba0de47392b3d7310356ae3a486b2a3ba14c437f8b9e92
|
|
||||||
size 72587
|
|
3
mocket-3.8.7.tar.gz
Normal file
3
mocket-3.8.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3a0f1c01138df8f31e30ce41a54d2726319d9880066936c3019738ba80b842fe
|
||||||
|
size 73263
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 11 07:17:16 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to version 3.8.7
|
||||||
|
* This version ships the change to support the libmagic wrapper
|
||||||
|
distributed with file's command.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 11 07:08:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to multibuild as we create cycle with python-pook otherwise
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@ -17,12 +17,19 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-mocket
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
Version: 3.8.6
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-mocket%{psuffix}
|
||||||
|
Version: 3.8.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python socket mock framework
|
Summary: Python socket mock framework
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/mindflayer/python-mocket
|
URL: https://github.com/mindflayer/python-mocket
|
||||||
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -38,7 +45,7 @@ Suggests: python-redis
|
|||||||
Suggests: python-requests
|
Suggests: python-requests
|
||||||
Suggests: python-xxhash
|
Suggests: python-xxhash
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
%if %{with test}
|
||||||
BuildRequires: %{python_module PySocks}
|
BuildRequires: %{python_module PySocks}
|
||||||
BuildRequires: %{python_module cryptography}
|
BuildRequires: %{python_module cryptography}
|
||||||
BuildRequires: %{python_module decorator}
|
BuildRequires: %{python_module decorator}
|
||||||
@ -57,7 +64,7 @@ BuildRequires: %{python_module xxhash}
|
|||||||
BuildRequires: ca-certificates-mozilla
|
BuildRequires: ca-certificates-mozilla
|
||||||
BuildRequires: python3-aiohttp
|
BuildRequires: python3-aiohttp
|
||||||
BuildRequires: python3-async_timeout
|
BuildRequires: python3-async_timeout
|
||||||
# /SECTION
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,35 +73,37 @@ included, with gevent/asyncio/SSL support.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mocket-%{version}
|
%setup -q -n mocket-%{version}
|
||||||
rm -f setup.cfg pytest.ini tox.ini
|
sed -i '/cov/ d' setup.cfg
|
||||||
sed -i '/pipenv/ d' setup.py
|
sed -i '/pipenv/ d' setup.py
|
||||||
sed -i 's/==/>=/' requirements.txt
|
sed -i 's/==/>=/' requirements.txt
|
||||||
touch conftest.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if !%{with test}
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_build
|
%python_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
export PYTHONPATH=${PWD}
|
|
||||||
export SKIP_TRUE_HTTP=1
|
export SKIP_TRUE_HTTP=1
|
||||||
%{python_expand #
|
%define pytest_ignore_python2 --ignore tests/tests35 --ignore tests/tests38
|
||||||
if [ $python = python2 ]; then
|
%pytest -k 'not RedisTestCase' %{?pytest_ignore%{$python_version}}
|
||||||
$python -m pytest tests/main mocket -vv -k 'not RedisTestCase'
|
%endif
|
||||||
else
|
|
||||||
$python -m pytest tests/main mocket tests/tests35/ -vv -k 'not RedisTestCase'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/mocket
|
||||||
|
%{python_sitelib}/mocket-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user