Accepting request 628769 from devel:languages:python

- Enable testsuite in multibuild mode as it creates cycle otherwise

- Update to 1.6.1:
  * Support sphinx 1.7

OBS-URL: https://build.opensuse.org/request/show/628769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-releases?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2018-08-12 18:56:33 +00:00 committed by Git OBS Bridge
commit b026571a13
5 changed files with 53 additions and 13 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Aug 11 14:43:12 UTC 2018 - tchvatal@suse.com
- Enable testsuite in multibuild mode as it creates cycle otherwise
-------------------------------------------------------------------
Sat Aug 11 09:50:05 UTC 2018 - tchvatal@suse.com
- Update to 1.6.1:
* Support sphinx 1.7
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 18 14:29:58 UTC 2018 - toddrme2178@gmail.com Fri May 18 14:29:58 UTC 2018 - toddrme2178@gmail.com

View File

@ -13,26 +13,44 @@
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests have dependency loop with python-invoke and python-invocations %if "%{flavor}" == "test"
Name: python-releases %bcond_without test
Version: 1.5.0 %else
%bcond_with test
%endif
Version: 1.6.1
Release: 0 Release: 0
License: BSD-2-Clause
Summary: A Sphinx extension for changelog manipulation Summary: A Sphinx extension for changelog manipulation
Url: https://github.com/bitprophet/releases License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/bitprophet/releases
Source: https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
Requires: python-semantic_version < 3.0 BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.3 Requires: python-Sphinx >= 1.3
Requires: python-semantic_version
Requires: python-six >= 1.4.1
BuildArch: noarch BuildArch: noarch
%if %{with test}
Name: python-releases-%{flavor}
%else
Name: python-releases
%endif
%if %{with test}
BuildRequires: %{python_module Sphinx >= 1.3}
BuildRequires: %{python_module invocations}
BuildRequires: %{python_module invoke}
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module semantic_version}
BuildRequires: %{python_module six >= 1.4.1}
BuildRequires: %{python_module spec >= 0.11.3}
%endif
%python_subpackages %python_subpackages
%description %description
@ -59,13 +77,21 @@ Specifically:
%python_build %python_build
%install %install
%if !%{with test}
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%python_expand invoke-%{$python_bin_suffix} test
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-)
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%if !%{with test}
%{python_sitelib}/* %{python_sitelib}/*
%endif
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c4b2ff79490e11f7b59ff89537f1c221bb57dc8412ce51289734567bd1d0ad0
size 39405

3
releases-1.6.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a1b3163ab062d41dc4e61d8f51df055756d146f1fb6e18ee5cf55d91c9cda54
size 42029