File revup.spec of Package revup

#
# spec file for package revup
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#


%if 0%{?suse_version} >= 1699
%define pythons python3
%else
%{?sle15_python_module_pythons}
%endif

Name:           revup
Version:        0.4.0
Release:        0
Summary:        Productivity-focused git tool with patch revision tracking and more
License:        MIT
URL:            https://github.com/skydio/revup
Source:         https://files.pythonhosted.org/packages/source/r/revup/revup-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  %{python_module aiohttp}
BuildRequires:  %{python_module aiosignal}
BuildRequires:  %{python_module async_lru}
BuildRequires:  %{python_module async_timeout}
BuildRequires:  %{python_module attrs}
BuildRequires:  %{python_module charset-normalizer}
BuildRequires:  %{python_module multidict}
BuildRequires:  %{python_module requests}
BuildRequires:  %{python_module rich}
BuildRequires:  %{python_module yarl}
# SECTION test requirements
BuildRequires:  %{python_module pytest}
# /SECTION
BuildRequires:  fdupes
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:       python3-aiohttp
Requires:       python3-aiosignal
Requires:       python3-async_lru
Requires:       python3-async_timeout
Requires:       python3-attrs
Requires:       python3-charset-normalizer
Requires:       python3-multidict
Requires:       python3-requests
Requires:       python3-rich
Requires:       python3-yarl
#
Requires:       git-core >= 2.43
BuildArch:      noarch

%description
Revup provides command-line tools that allow developers to iterate faster on
parallel changes and reduce the overhead of creating and maintaining code
reviews.

* Revup creates multiple independent chains of branches for you in the
  background and without touching your working tree. It then creates and manages
  github pull requests for all those branches.
* Pull requests target the actual base branch and can be merged manually or by
  continuous integration
* Rebase detection saves time and continuous integration cost by not re-pushing
  if the patch hasn't changed
* Adds reviewers, labels, and creates drafts all from the commit text
* Adds auto-updating "review graph" and "patchsets" elements to make pull
  requests easier to navigate
* revup amend and revup restack save time by replacing slow rebases

%prep
%autosetup -p1 -n revup-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/revup
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative revup

%postun
%python_uninstall_alternative revup

%files
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/revup
%{python_sitelib}/revup
%{python_sitelib}/revup-%{version}.dist-info
%pycache_only %{python_sitelib}/revup/__pycache__/

%changelog
openSUSE Build Service is sponsored by