- Fix %fdupes call

- Run tests directly with %pytest macro

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-attrib?expand=0&rev=4
This commit is contained in:
2024-04-08 12:11:48 +00:00
committed by Git OBS Bridge
parent ca263b5f7c
commit c78369497c
2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 8 12:10:23 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Fix %fdupes call
- Run tests directly with %pytest macro
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 13 14:35:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Wed Feb 13 14:35:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-attrib # spec file for package python-pytest-attrib
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 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
@@ -16,14 +16,13 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-attrib Name: python-pytest-attrib
Version: 0.1.3 Version: 0.1.3
Release: 0 Release: 0
Summary: Pytest plugin to select tests based on attributes Summary: Pytest plugin to select tests based on attributes
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://pypi.python.org/pypi/pytest-attrib/ URL: http://pypi.python.org/pypi/pytest-attrib/
Source: https://github.com/AbdealiJK/pytest-attrib/archive/%{version}.tar.gz Source: https://github.com/AbdealiJK/pytest-attrib/archive/%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
@@ -49,7 +48,7 @@ attributes of the class, and does not require the pytest.mark decorator.
It offers features similar to the nose plugin nose-attrib. It offers features similar to the nose plugin nose-attrib.
%prep %prep
%setup -q -n pytest-attrib-%{version} %autosetup -p1 -n pytest-attrib-%{version}
rm setup.cfg rm setup.cfg
%build %build
@@ -57,14 +56,15 @@ rm setup.cfg
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}/pytest_attrib
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %pytest
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/pytest_attrib
%{python_sitelib}/pytest_attrib-%{version}*-info
%changelog %changelog