From 705cd5403f3b0ba850d56902866c07b0914f2e2eef98db56de8e0fb56647c724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 20 Mar 2019 07:56:37 +0000 Subject: [PATCH] Accepting request 686809 from home:jayvdb:branches:devel:languages:python - Add missing %license - Re-activate test suite - Remove bcond python2 - Add missing build dependency jaraco.functools >= 1.20 - Remove inappropriate build dependency pytest-flake8 OBS-URL: https://build.opensuse.org/request/show/686809 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tempora?expand=0&rev=10 --- python-tempora.changes | 9 +++++++++ python-tempora.spec | 11 ++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-tempora.changes b/python-tempora.changes index b41066e..0014465 100644 --- a/python-tempora.changes +++ b/python-tempora.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Mar 20 01:58:47 UTC 2019 - John Vandenberg + +- Add missing %license +- Re-activate test suite +- Remove bcond python2 +- Add missing build dependency jaraco.functools >= 1.20 +- Remove inappropriate build dependency pytest-flake8 + ------------------------------------------------------------------- Mon Mar 18 09:31:58 UTC 2019 - Dirk Mueller diff --git a/python-tempora.spec b/python-tempora.spec index 2bbf529..2884a29 100644 --- a/python-tempora.spec +++ b/python-tempora.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 Name: python-tempora Version: 1.14 Release: 0 @@ -26,7 +25,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/jaraco/tempora Source: https://files.pythonhosted.org/packages/source/t/tempora/tempora-%{version}.tar.gz -BuildRequires: %{python_module pytest-flake8} +BuildRequires: %{python_module jaraco.functools >= 1.20} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools_scm} @@ -35,13 +34,11 @@ BuildRequires: %{python_module six} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python2-backports.unittest_mock Requires: python-jaraco.functools >= 1.20 Requires: python-pytz Requires: python-six BuildArch: noarch -%if %{with python2} -BuildRequires: python2-backports.unittest_mock -%endif %python_subpackages %description @@ -63,10 +60,10 @@ Modules include: %fdupes %{buildroot} %check -# https://github.com/jaraco/tempora/issues/6 -# %%pytest tests +%python_exec setup.py test %files %{python_files} +%license LICENSE %doc CHANGES.rst README.rst docs/*rst %python3_only %{_bindir}/calc-prorate %{python_sitelib}/*