forked from pool/python-mocket
Accepting request 825717 from home:bnavigator:branches:devel:languages:python
- Update to version 3.8.7 * This version ships the change to support the libmagic wrapper distributed with file's command. Keeping the skip build in test flavor. See comment. ------------------------------------------------------------------- OBS-URL: https://build.opensuse.org/request/show/825717 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
2fbc3ab63d
commit
63400cb400
@@ -26,7 +26,7 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-mocket%{psuffix}
|
||||
Version: 3.8.6
|
||||
Version: 3.8.7
|
||||
Release: 0
|
||||
Summary: Python socket mock framework
|
||||
License: BSD-3-Clause
|
||||
@@ -73,14 +73,15 @@ included, with gevent/asyncio/SSL support.
|
||||
|
||||
%prep
|
||||
%setup -q -n mocket-%{version}
|
||||
rm -f setup.cfg pytest.ini tox.ini
|
||||
sed -i '/pipenv/d' setup.py
|
||||
sed -i '/cov/ d' setup.cfg
|
||||
sed -i '/pipenv/ d' setup.py
|
||||
sed -i 's/==/>=/' requirements.txt
|
||||
touch conftest.py
|
||||
|
||||
%build
|
||||
%if !%{with test}
|
||||
export LANG=en_US.UTF-8
|
||||
%python_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
@@ -92,22 +93,17 @@ export LANG=en_US.UTF-8
|
||||
%check
|
||||
%if %{with test}
|
||||
export LANG=en_US.UTF-8
|
||||
export PYTHONPATH=${PWD}
|
||||
export SKIP_TRUE_HTTP=1
|
||||
%{python_expand #
|
||||
if [ $python = python2 ]; then
|
||||
$python -m pytest tests/main mocket -vv -k 'not RedisTestCase'
|
||||
else
|
||||
$python -m pytest tests/main mocket tests/tests35/ -vv -k 'not RedisTestCase'
|
||||
fi
|
||||
}
|
||||
%define pytest_ignore_python2 --ignore tests/tests35 --ignore tests/tests38
|
||||
%pytest -k 'not RedisTestCase' %{?pytest_ignore%{$python_version}}
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/mocket
|
||||
%{python_sitelib}/mocket-%{version}-py*.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user