From f479dc37a4d5dd74b51e50b97ab7ab8388fc6dfb40f6ca06a07f912f2beee9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 11 Aug 2018 09:51:15 +0000 Subject: [PATCH 1/3] - Update to 1.6.1: * Support sphinx 1.7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=3 --- python-releases.changes | 6 ++++++ python-releases.spec | 15 ++++++--------- releases-1.5.0.tar.gz | 3 --- releases-1.6.1.tar.gz | 3 +++ 4 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 releases-1.5.0.tar.gz create mode 100644 releases-1.6.1.tar.gz diff --git a/python-releases.changes b/python-releases.changes index 0cd0251..2dbfc0b 100644 --- a/python-releases.changes +++ b/python-releases.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-releases.spec b/python-releases.spec index 63f1b57..9b499cd 100644 --- a/python-releases.spec +++ b/python-releases.spec @@ -13,26 +13,24 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Tests have dependency loop with python-invoke and python-invocations Name: python-releases -Version: 1.5.0 +Version: 1.6.1 Release: 0 -License: BSD-2-Clause Summary: A Sphinx extension for changelog manipulation -Url: https://github.com/bitprophet/releases +License: BSD-2-Clause Group: Development/Languages/Python +URL: https://github.com/bitprophet/releases 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: fdupes -Requires: python-semantic_version < 3.0 +BuildRequires: python-rpm-macros Requires: python-Sphinx >= 1.3 +Requires: python-semantic_version < 3.0 BuildArch: noarch - %python_subpackages %description @@ -63,7 +61,6 @@ Specifically: %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE %{python_sitelib}/* diff --git a/releases-1.5.0.tar.gz b/releases-1.5.0.tar.gz deleted file mode 100644 index 3eaec5a..0000000 --- a/releases-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c4b2ff79490e11f7b59ff89537f1c221bb57dc8412ce51289734567bd1d0ad0 -size 39405 diff --git a/releases-1.6.1.tar.gz b/releases-1.6.1.tar.gz new file mode 100644 index 0000000..cbd7858 --- /dev/null +++ b/releases-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a1b3163ab062d41dc4e61d8f51df055756d146f1fb6e18ee5cf55d91c9cda54 +size 42029 From 6d73634f1d1add70f1dd08d292b0a25f55dc3ee5bf60cc15f69c55af2fee966a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 11 Aug 2018 14:43:55 +0000 Subject: [PATCH 2/3] - Enable testsuite in multibuild mode as it creates cycle otherwise OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=4 --- _multibuild | 3 +++ python-releases.changes | 5 +++++ python-releases.spec | 33 +++++++++++++++++++++++++++++++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-releases.changes b/python-releases.changes index 2dbfc0b..cb7a24a 100644 --- a/python-releases.changes +++ b/python-releases.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-releases.spec b/python-releases.spec index 9b499cd..43fd36a 100644 --- a/python-releases.spec +++ b/python-releases.spec @@ -16,8 +16,13 @@ # +%global flavor @BUILD_FLAVOR@%{nil} %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-releases +%if "%{flavor}" == "test" +%bcond_without test +%else +%bcond_with test +%endif Version: 1.6.1 Release: 0 Summary: A Sphinx extension for changelog manipulation @@ -29,8 +34,23 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Sphinx >= 1.3 -Requires: python-semantic_version < 3.0 +Requires: python-semantic_version +Requires: python-six >= 1.4.1 BuildArch: noarch +%if %{with test} +Name: python-releases-%{flavor} +%else +Name: python-releases +%endif +%if %{with tests} +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 %description @@ -57,12 +77,21 @@ Specifically: %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%python_expand invoke-%{$python_bin_suffix} test +%endif %files %{python_files} %doc README.rst %license LICENSE +%if !%{with test} %{python_sitelib}/* +%endif %changelog From 6d55fb826c53448f3b6b32718d417ddf2fb3afe8cc3ce2aa763c756d68e1c5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 11 Aug 2018 14:45:21 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=5 --- python-releases.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-releases.spec b/python-releases.spec index 43fd36a..49d6614 100644 --- a/python-releases.spec +++ b/python-releases.spec @@ -42,7 +42,7 @@ Name: python-releases-%{flavor} %else Name: python-releases %endif -%if %{with tests} +%if %{with test} BuildRequires: %{python_module Sphinx >= 1.3} BuildRequires: %{python_module invocations} BuildRequires: %{python_module invoke}