forked from pool/python-user_agent
Accepting request 914374 from home:pgajdos:python
- %check: really test the package, use %pytest rpm macro OBS-URL: https://build.opensuse.org/request/show/914374 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-user_agent?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 08:51:30 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- %check: really test the package, use %pytest rpm macro
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 18 09:10:44 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Mon May 18 09:10:44 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-user_agent
|
# spec file for package python-user_agent
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -31,7 +31,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -53,7 +53,8 @@ This module generates random, valid web user agents.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
# test_changelog, test_ua_script*: no ua in the PATH
|
||||||
|
%pytest -k 'not (test_ua_script or test_changelog)'
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative ua
|
%python_install_alternative ua
|
||||||
|
Reference in New Issue
Block a user