14
0
forked from pool/python-reno

- update to version 2.4.1

- add function for reducing change list to operations
  - sphinxext: Include branch information in source name
  - Properly declare dependency on six
  - return the name of the cache file created
  - Have import order follow standard and fix misspelling
  - Remove discover from test-requirements
  - Replace LOG.wirn with LOG.warning
  - Support to set a custom template used to create new notes
  - set up logging in the sphinx extension
  - set relnotesdir to default inside config
  - Changed the link to home-page
  - Show team and repo badges on README
  - Using fixtures.MockPatch instead of mockpatch.Patch
  - clarify automatic inclusion of prelude section
  - update release notes
  - let the Config object give us the path to the notes
  - define Config class
  - logging improvements
  - trim Newton history to avoid duplication
  - use dulwich to find the current version on a branch
  - fix a problem scanning for the base of a branch with no tag
  - Wrap template at ~79 characters
  - add filename and sha in comments in report output
  - Add YAML configuration parsing
  - Document how reno handles eol branches in config
  - add a --title option to the report command
  - doc: Document the available configuration options
  - Remove oslotest from test-requirements.txt
  - add a lint command

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-reno?expand=0&rev=8
This commit is contained in:
Thomas Bechtold
2017-08-05 07:06:52 +00:00
committed by Git OBS Bridge
parent b1be9ab916
commit fadb5eb010
5 changed files with 163 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-reno
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,30 +16,36 @@
#
%global sname reno
Name: python-reno
Version: 1.8.0
Version: 2.4.1
Release: 0
Summary: RElease NOtes manager
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source: https://pypi.io/packages/source/r/reno/reno-%{version}.tar.gz
BuildRequires: python-Babel
BuildRequires: python-PyYAML
Source0: https://pypi.io/packages/source/r/reno/reno-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-Babel >= 2.3.4
BuildRequires: python-PyYAML >= 3.10.0
BuildRequires: python-devel
BuildRequires: python-pbr
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-testrepository
BuildRequires: python-testscenarios
BuildRequires: python-testtools
%endif
Requires: python-Babel >= 1.3
Requires: python-PyYAML >= 3.1.0
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildRequires: python-dulwich >= 0.15.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-setuptools >= 16.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-Babel >= 2.3.4
Requires: python-PyYAML >= 3.10.0
Requires: python-dulwich >= 0.15.0
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: git-core
BuildRequires: gpg2
%else
BuildRequires: git
BuildRequires: gnupg
%endif
%description
@@ -47,44 +53,24 @@ Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.
%prep
%setup -q -n reno-%{version}
%autosetup -p 1 -n %{sname}-%{version}
%py_req_cleanup
%build
python setup.py build
%{py2_build}
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%{py2_install}
%if %{with tests}
%check
git init .
python setup.py test
%endif
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for p in reno ; do
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
# create a dummy target for /etc/alternatives/$p
touch %{buildroot}%{_sysconfdir}/alternatives/$p
done
%post
%_sbindir/update-alternatives \
--install %{_bindir}/reno reno %{_bindir}/reno-%{py_ver} 30
%postun
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove reno %{_bindir}/reno-%{py_ver}
fi
%files
%defattr(-,root,root,-)
%doc LICENSE ChangeLog README.rst AUTHORS
%license LICENSE
%doc ChangeLog README.rst
%{_bindir}/reno
%{_bindir}/reno-%{py_ver}
%ghost %{_sysconfdir}/alternatives/reno
%{python_sitelib}/reno
%{python_sitelib}/*.egg-info
%{python2_sitelib}/reno
%{python2_sitelib}/*.egg-info
%changelog