forked from pool/python-methodtools
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
81c58ba32d
commit
16f3e118a1
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:603050dd93ae5b30ed2ebdd36d30b69e82bc5c75030dc3435fe757c7a431d1c6
|
oid sha256:084e8cc6dc1e261938ea6d4240897677a048eae0214e1576673ee3be94e0ec92
|
||||||
size 3037
|
size 6374
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 20 07:58:13 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to github archive for tests and license
|
||||||
|
- Run tests
|
||||||
|
- Add missing python2 dependencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 19 10:30:11 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
|
Wed Aug 19 10:30:11 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -17,19 +17,24 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%bcond_without python2
|
||||||
Name: python-methodtools
|
Name: python-methodtools
|
||||||
Version: 0.4.2
|
Version: 0.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Expand Standard Functools to Methods
|
Summary: Expand Standard Functools to Methods
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/youknowone/methodtools
|
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_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module wirerope >= 0.4.2}
|
BuildRequires: %{python_module wirerope >= 0.4.2}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-wirerope >= 0.4.2
|
Requires: python-wirerope >= 0.4.2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-functools32 >= 3.2.3
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -44,9 +49,13 @@ staticmethods and even for (unofficial) hybrid methods.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(644,root,root,755)
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user