From 16f3e118a1ebb1daf7c2089551fc7f7550fd0403720f9dd237d0d801f2d6a23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 20 Aug 2020 08:00:13 +0000 Subject: [PATCH] - Switch to github archive for tests and license - Run tests - Add missing python2 dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-methodtools?expand=0&rev=2 --- methodtools-0.4.2.tar.gz | 4 ++-- python-methodtools.changes | 7 +++++++ python-methodtools.spec | 17 +++++++++++++---- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/methodtools-0.4.2.tar.gz b/methodtools-0.4.2.tar.gz index 4083781..2c6e957 100644 --- a/methodtools-0.4.2.tar.gz +++ b/methodtools-0.4.2.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:603050dd93ae5b30ed2ebdd36d30b69e82bc5c75030dc3435fe757c7a431d1c6 -size 3037 +oid sha256:084e8cc6dc1e261938ea6d4240897677a048eae0214e1576673ee3be94e0ec92 +size 6374 diff --git a/python-methodtools.changes b/python-methodtools.changes index 5c5a8c1..1775787 100644 --- a/python-methodtools.changes +++ b/python-methodtools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 20 07:58:13 UTC 2020 - Tomáš Chvátal + +- Switch to github archive for tests and license +- Run tests +- Add missing python2 dependencies + ------------------------------------------------------------------- Wed Aug 19 10:30:11 UTC 2020 - Matthias Fehring diff --git a/python-methodtools.spec b/python-methodtools.spec index adc0591..47f9bd1 100644 --- a/python-methodtools.spec +++ b/python-methodtools.spec @@ -17,19 +17,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%bcond_without python2 Name: python-methodtools Version: 0.4.2 Release: 0 Summary: Expand Standard Functools to Methods License: BSD-2-Clause URL: https://github.com/youknowone/methodtools -Source0: https://files.pythonhosted.org/packages/source/m/methodtools/methodtools-%{version}.tar.gz +Source0: https://github.com/youknowone/methodtools/archive/%{version}.tar.gz#/methodtools-%{version}.tar.gz +BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module setuptools} -BuildRequires: python-rpm-macros BuildRequires: %{python_module wirerope >= 0.4.2} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-wirerope >= 0.4.2 BuildArch: noarch +%if %{with python2} +BuildRequires: python-functools32 >= 3.2.3 +%endif %python_subpackages %description @@ -44,9 +49,13 @@ staticmethods and even for (unofficial) hybrid methods. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest %files %{python_files} -%defattr(644,root,root,755) +%license LICENSE %doc README.rst %{python_sitelib}/*