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
This commit is contained in:
Tomáš Chvátal 2019-03-20 07:56:37 +00:00 committed by Git OBS Bridge
parent 83c1fd484e
commit 705cd5403f
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Mar 20 01:58:47 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- 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 <dmueller@suse.com>

View File

@ -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}/*