From d8a0e3396f3e2cadb3abe5d12bdf9cf0a54412f6c6c50f549563fde216188185 Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Thu, 28 Jun 2018 21:13:28 +0000 Subject: [PATCH] Accepting request 619617 from devel:languages:python:singlespec-staging Clean up SPEC file Enable tests OBS-URL: https://build.opensuse.org/request/show/619617 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-venusian?expand=0&rev=11 --- python-venusian-doc.changes | 3 ++- python-venusian-doc.spec | 32 +++++++++++--------------------- python-venusian.changes | 13 ++++++++++++- python-venusian.spec | 21 +++++++++++++++------ 4 files changed, 40 insertions(+), 29 deletions(-) diff --git a/python-venusian-doc.changes b/python-venusian-doc.changes index c87482d..189e5e1 100644 --- a/python-venusian-doc.changes +++ b/python-venusian-doc.changes @@ -34,7 +34,7 @@ Fri Feb 6 11:12:24 UTC 2015 - hpj@urpla.net venusian decorators attached to superclass methods. See the API documentation for more information. - Fix bug where otherwise undecorated subclass of a superclass that had - venusian decorators on it would inherit its superclass’ decorations. + venusian decorators on it would inherit its superclass' decorations. Venusian decorators should have never been inherited implicitly. See https://github.com/Pylons/venusian/issues/11#issuecomment-4977352 @@ -66,3 +66,4 @@ Sun Jul 28 20:12:18 UTC 2013 - hpj@urpla.net - version 1.0a8: initial release + diff --git a/python-venusian-doc.spec b/python-venusian-doc.spec index eefd5e4..1309c38 100644 --- a/python-venusian-doc.spec +++ b/python-venusian-doc.spec @@ -1,7 +1,7 @@ # # spec file for package python-venusian-doc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -24,26 +24,19 @@ Release: 0 Summary: Documentation for python-venusian License: SUSE-Repoze Group: Development/Languages/Python -Url: https://pylonsproject.org +URL: https://github.com/Pylons/venusian Source: https://files.pythonhosted.org/packages/source/v/venusian/venusian-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: %{python_module venusian = %{version}} +BuildRequires: python-rpm-macros +Provides: %{python_module venusian-doc = %{version}} +BuildArch: noarch # SECTION documentation requirements BuildRequires: python3-Sphinx BuildRequires: python3-pylons-sphinx-themes BuildRequires: python3-repoze.sphinx.autointerface # /SECTION -# SECTION test requirements -BuildRequires: %{python_module coverage} -BuildRequires: %{python_module nose-exclude} -BuildRequires: %{python_module nose} -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest} -# /SECTION -BuildRequires: python-rpm-macros -Provides: %{python_module venusian-doc = %{version}} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +%python_subpackages %description This package contains documentation files for python-venusian. @@ -52,17 +45,14 @@ This package contains documentation files for python-venusian. %setup -q -n venusian-%{version} %build -ln -s %{python3_sitelib}/pylons_sphinx_themes docs/_themes -%{_python_use_flavor python3} -%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv +# ln -s %{python3_sitelib}/pylons_sphinx_themes docs/_themes +%python_build +# python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv %install -# nothing to do +%python_install -%check -%python_exec %{_bindir}/py.test - -%files +%files %{python_files} %doc build/sphinx/html/ %changelog diff --git a/python-venusian.changes b/python-venusian.changes index c87482d..d4d9b34 100644 --- a/python-venusian.changes +++ b/python-venusian.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Jun 28 17:17:31 UTC 2018 - mcepl@suse.com + +- Clean up SPEC file +- Enable tests + +------------------------------------------------------------------- +Thu Aug 24 13:56:55 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Jul 14 07:00:53 UTC 2017 - aloisio@gmx.com @@ -34,7 +45,7 @@ Fri Feb 6 11:12:24 UTC 2015 - hpj@urpla.net venusian decorators attached to superclass methods. See the API documentation for more information. - Fix bug where otherwise undecorated subclass of a superclass that had - venusian decorators on it would inherit its superclass’ decorations. + venusian decorators on it would inherit its superclass' decorations. Venusian decorators should have never been inherited implicitly. See https://github.com/Pylons/venusian/issues/11#issuecomment-4977352 diff --git a/python-venusian.spec b/python-venusian.spec index 5e4622d..f8e5199 100644 --- a/python-venusian.spec +++ b/python-venusian.spec @@ -1,7 +1,7 @@ # # spec file for package python-venusian # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -22,15 +22,21 @@ Name: python-venusian Version: 1.1.0 Release: 0 Summary: A library for deferring decorator actions -License: SUSE-Repoze +License: SUSE-Repoze AND ZPL-2.1 Group: Development/Languages/Python -Url: https://pylonsproject.org +URL: https://github.com/Pylons/venusian Source: https://files.pythonhosted.org/packages/source/v/venusian/venusian-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module nose-exclude} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +# /SECTION %python_subpackages %description @@ -53,9 +59,12 @@ rm -rf venusian.egg-info %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%check +%python_expand py.test-%{$python_bin_suffix} -v venusian + %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst LICENSE.txt README.rst +%license LICENSE.txt +%doc CHANGES.rst README.rst %{python_sitelib}/venusian %{python_sitelib}/venusian-%{version}-py%{python_version}.egg-info