Blame python-patchy.spec

aa65fb
#
aa65fb
# spec file for package python-patchy
aa65fb
#
Bernhard M. Wiedemann 178b85
# Copyright (c) 2024 SUSE LLC
aa65fb
#
aa65fb
# All modifications and additions to the file contributed by third parties
aa65fb
# remain the property of their copyright owners, unless otherwise agreed
aa65fb
# upon. The license for this file, and modifications and additions to the
aa65fb
# file, is the same license as for the pristine package itself (unless the
aa65fb
# license for the pristine package is not an Open Source License, in which
aa65fb
# case the license is the MIT License). An "Open Source License" is a
aa65fb
# license that conforms to the Open Source Definition (Version 1.9)
aa65fb
# published by the Open Source Initiative.
aa65fb
91a726
# Please submit bugfixes or comments via https://bugs.opensuse.org/
91a726
#
aa65fb
aa65fb
aa65fb
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
91a726
%global skip_python2 1
aa65fb
Name:           python-patchy
Bernhard M. Wiedemann 178b85
Version:        2.8.0
aa65fb
Release:        0
aa65fb
License:        BSD-3-Clause
aa65fb
Summary:        Patch the inner source of python functions at runtime
91a726
URL:            https://github.com/adamchainz/patchy
aa65fb
Group:          Development/Languages/Python
91a726
Source:         https://github.com/adamchainz/patchy/archive/refs/tags/%{version}.tar.gz#/patchy-%{version}.tar.gz
Bernhard M. Wiedemann 178b85
BuildRequires:  %{python_module pip}
91a726
BuildRequires:  %{python_module pkgutil-resolve-name}
aa65fb
BuildRequires:  %{python_module pytest}
aa65fb
BuildRequires:  %{python_module setuptools}
Bernhard M. Wiedemann 178b85
BuildRequires:  %{python_module wheel}
aa65fb
BuildRequires:  fdupes
91a726
BuildRequires:  python-rpm-macros
aa65fb
Requires:       python-pkgutil-resolve-name
aa65fb
BuildArch:      noarch
aa65fb
aa65fb
%python_subpackages
aa65fb
aa65fb
%description
aa65fb
Patch the inner source of python functions at runtime.
aa65fb
aa65fb
%prep
aa65fb
%setup -q -n patchy-%{version}
aa65fb
aa65fb
%build
Bernhard M. Wiedemann 178b85
%pyproject_wheel
aa65fb
aa65fb
%install
Bernhard M. Wiedemann 178b85
%pyproject_install
aa65fb
%python_expand %fdupes %{buildroot}%{$python_sitelib}
aa65fb
aa65fb
%check
aa65fb
%pytest
aa65fb
aa65fb
%files %{python_files}
91a726
%doc README.rst
aa65fb
%license LICENSE
Bernhard M. Wiedemann 178b85
%{python_sitelib}/patchy
Bernhard M. Wiedemann 178b85
%{python_sitelib}/patchy-%{version}.dist-info
aa65fb
aa65fb
%changelog