From 94813bea089e052bcc2ebf015cdda53329e5a72872e784c4d689e9fd4aa7a0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 2 Jan 2019 14:15:56 +0000 Subject: [PATCH] - Really run tests - Sort out with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery-batches?expand=0&rev=2 --- python-celery-batches.changes | 6 ++++++ python-celery-batches.spec | 22 ++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/python-celery-batches.changes b/python-celery-batches.changes index d7f98e9..57a8dbf 100644 --- a/python-celery-batches.changes +++ b/python-celery-batches.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 2 14:14:35 UTC 2019 - Tomáš Chvátal + +- Really run tests +- Sort out with spec-cleaner + ------------------------------------------------------------------- Fri Nov 30 12:02:33 UTC 2018 - Matthias Fehring diff --git a/python-celery-batches.spec b/python-celery-batches.spec index 0bb220f..a02e933 100644 --- a/python-celery-batches.spec +++ b/python-celery-batches.spec @@ -1,7 +1,7 @@ # # spec file for package python-celery-batches # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 Matthias Fehring # # All modifications and additions to the file contributed by third parties @@ -13,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,17 +25,16 @@ Release: 0 Summary: Process Multiple Celery Task Requests Together License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/percipient/celery-batches +URL: https://github.com/percipient/celery-batches Source: https://github.com/percipient/%{_pkgname}/archive/v%{version}.tar.gz#/%{_pkgname}-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: fdupes BuildRequires: %{python_module celery >= 4.0} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module coverage} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-celery >= 4.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -56,16 +55,11 @@ Django, so it plays nice with any other form application. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v t/ %files %{python_files} -%defattr(-,root,root,-) %doc README.rst CHANGELOG.rst -%if 0%{?suse_version} < 1500 -%doc LICENSE -%else %license LICENSE -%endif %{python_sitelib}/* %changelog