File python-reno.spec of Package python-reno

#
# spec file for package python-reno
#
# Copyright (c) 2024 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/
#


Name:           python-reno
Version:        4.0.0
Release:        0
Summary:        RElease NOtes manager
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/reno
Source0:        https://files.pythonhosted.org/packages/source/r/reno/reno-4.0.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-PyYAML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-docutils
BuildRequires:  python3-dulwich
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-stestr
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildArch:      noarch
%if 0%{?suse_version}
BuildRequires:  git-core
BuildRequires:  gpg2
%else
BuildRequires:  git
BuildRequires:  gnupg
%endif

%description
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.

%package -n python3-reno
Summary:        RElease NOtes manager
Requires:       python3-PyYAML
Requires:       python3-Sphinx
Requires:       python3-docutils
Requires:       python3-dulwich
Requires:       python3-pbr
Requires:       python3-six

%description -n python3-reno
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.

%prep
%autosetup -p1 -n reno-4.0.0
# we don't need hacking
sed -i '/^hacking.*/d' test-requirements.txt
%py_req_cleanup

%build
%{py3_build}

%install
%{py3_install}

%check
rm -rf .git
git init .
%{openstack_stestr_run}

%files -n python3-reno
%license LICENSE
%{_bindir}/reno
%{python3_sitelib}/reno
%{python3_sitelib}/*.egg-info

%changelog
openSUSE Build Service is sponsored by