14
0
forked from pool/python-reno
Files
python-reno/python-reno.spec
Tomáš Chvátal e0189675b7 Accepting request 789027 from home:pgajdos:python
- version update to 3.0.0
  * Remove usage of six
  * [ussuri][goal] Drop python 2.7 support and testing
  * Add extension metadata to sphinxext
  * Handle Windows compatibility
  * Scan all branches for cache generation
  * Avoid docutils 0.15 with py2
  * Add Python 3 Train unit tests
  * Fix py27 test: Update sphinx requirement
  * OpenDev Migration Patch
  * Switch to current hacking
  * Remove references to oslosphinx

OBS-URL: https://build.opensuse.org/request/show/789027
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-reno?expand=0&rev=17
2020-03-27 20:20:29 +00:00

85 lines
2.4 KiB
RPMSpec

#
# spec file for package python-reno
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-reno
Version: 3.0.0
Release: 0
Summary: RElease NOtes manager
License: Apache-2.0
Group: Development/Languages/Python
URL: https://www.openstack.org/
Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module dulwich}
BuildRequires: %{python_module openstackdocstheme}
BuildRequires: %{python_module oslotest}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module stestr}
BuildRequires: %{python_module testscenarios}
BuildRequires: %{python_module testtools}
Requires: python-PyYAML >= 3.10
Requires: python-Sphinx
Requires: python-docutils
Requires: python-dulwich >= 0.15.0
Requires: python-pbr
Requires: python-six
BuildArch: noarch
BuildRequires: git-core
BuildRequires: gpg2
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.
%prep
%autosetup -n reno-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/reno
%post
%python_install_alternative reno
%postun
%python_uninstall_alternative reno
%check
rm -rf .git
git init .
%python_exec -m stestr.cli run
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/reno
%{python_sitelib}/reno
%{python_sitelib}/*.egg-info
%changelog