2020-08-20 07:20:55 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-covdefaults
|
|
|
|
|
#
|
2025-03-31 02:00:41 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-08-20 07:20:55 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-11 11:46:00 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-08-20 07:20:55 +00:00
|
|
|
Name: python-covdefaults
|
2023-03-14 22:34:02 +00:00
|
|
|
Version: 2.3.0
|
2020-08-20 07:20:55 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python coverage plugin to provide default settings
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/asottile/covdefaults
|
|
|
|
|
Source: https://github.com/asottile/covdefaults/archive/v%{version}.tar.gz#/covdefaults-%{version}.tar.gz
|
2025-03-31 02:00:41 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#asottile/covdefaults#164
|
|
|
|
|
Patch0: support-coverage-7.7.patch
|
2020-08-20 07:20:55 +00:00
|
|
|
BuildRequires: %{python_module coverage}
|
2025-03-31 02:00:41 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-08-20 07:20:55 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-coverage
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python coverage plugin to provide default settings.
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-03-31 02:00:41 +00:00
|
|
|
%autosetup -p1 -n covdefaults-%{version}
|
2020-08-20 07:20:55 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-03-31 02:00:41 +00:00
|
|
|
%pyproject_wheel
|
2020-08-20 07:20:55 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-03-31 02:00:41 +00:00
|
|
|
%pyproject_install
|
2020-08-20 07:20:55 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%python_exec -m coverage run -m pytest -v
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2025-03-31 02:00:41 +00:00
|
|
|
%{python_sitelib}/covdefaults.py
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/covdefaults.*.pyc
|
|
|
|
|
%{python_sitelib}/covdefaults-%{version}.dist-info
|
2020-08-20 07:20:55 +00:00
|
|
|
|
|
|
|
|
%changelog
|