14
0
forked from pool/python-merge3

- update to 0.0.14:

* migrate to pyproject.toml
  * use disperse action
  * ruff, pyupgrade
  * add merge3 helper
  * sort imports with isort
  * add python 3.11 support

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-merge3?expand=0&rev=5
This commit is contained in:
2024-03-25 20:08:33 +00:00
committed by Git OBS Bridge
parent 07a8a4fc95
commit 64b0d8beb3
4 changed files with 28 additions and 6 deletions

View File

@@ -18,18 +18,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-merge3
Version: 0.0.12
Version: 0.0.14
Release: 0
Summary: Python implementation of 3-way merge
License: GPL-2.0-or-later
URL: https://www.breezy-vcs.org/
URL: https://github.com/breezy-team/merge3
Source: https://files.pythonhosted.org/packages/source/m/merge3/merge3-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -43,14 +46,22 @@ Python implementation of 3-way merge
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/merge3
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v merge3.test_merge3
%pytest_arch
%post
%python_install_alternative merge3
%postun
%python_uninstall_alternative merge3
%files %{python_files}
%doc AUTHORS README.rst
%license COPYING
%python_alternative %{_bindir}/merge3
%{python_sitelib}/merge3
%{python_sitelib}/merge3-%{version}*-info