Accepting request 708340 from devel:languages:python
- Update dependencies - Run also pytest tests - Fix fdupes call OBS-URL: https://build.opensuse.org/request/show/708340 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=12
This commit is contained in:
commit
1f178437ff
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 7 11:54:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update dependencies
|
||||||
|
- Run also pytest tests
|
||||||
|
- Fix fdupes call
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 7 13:19:56 UTC 2019 - pgajdos@suse.com
|
Tue May 7 13:19:56 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -25,11 +25,12 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://requests-mock.readthedocs.org/
|
URL: https://requests-mock.readthedocs.org/
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module Sphinx >= 1.1.2}
|
|
||||||
BuildRequires: %{python_module fixtures}
|
BuildRequires: %{python_module fixtures}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module pbr}
|
BuildRequires: %{python_module pbr}
|
||||||
BuildRequires: %{python_module requests}
|
BuildRequires: %{python_module purl}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module requests >= 2.3}
|
||||||
BuildRequires: %{python_module rpm-macros}
|
BuildRequires: %{python_module rpm-macros}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module testrepository >= 0.0.18}
|
BuildRequires: %{python_module testrepository >= 0.0.18}
|
||||||
@ -56,12 +57,12 @@ You should checkout the docs for more information.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/mymodule
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%pytest tests/pytest
|
||||||
|
|
||||||
mv .testr.conf .testr.conf.orig
|
mv .testr.conf .testr.conf.orig
|
||||||
# purl optional dependency is missing at time of writing (2019-05-07)
|
|
||||||
rm ./tests/test_adapter.py
|
|
||||||
%{python_expand # first line can't be empty
|
%{python_expand # first line can't be empty
|
||||||
rm -rf .testrepository
|
rm -rf .testrepository
|
||||||
sed 's/python/$python/' .testr.conf.orig >| .testr.conf
|
sed 's/python/$python/' .testr.conf.orig >| .testr.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user