forked from pool/python-unittest-mixins
Accepting request 1177693 from home:mcalabkova:branches:devel:languages:python
- Add drop-old-pythons.patch to get rid of six OBS-URL: https://build.opensuse.org/request/show/1177693 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unittest-mixins?expand=0&rev=4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-unittest-mixins
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-unittest-mixins
|
||||
Version: 1.6
|
||||
Release: 0
|
||||
@@ -25,13 +24,11 @@ Summary: Helpful mixins for unittest classes
|
||||
URL: https://github.com/nedbat/unittest-mixins
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/u/unittest-mixins/unittest-mixins-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/nedbat/unittest-mixins/pull/4 drop python<=3.7 support and use of six module
|
||||
Patch: drop-old-pythons.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module six >= 1.4.0}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-six >= 1.4.0
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -40,7 +37,7 @@ BuildArch: noarch
|
||||
Helpful mixins for unittest classes.
|
||||
|
||||
%prep
|
||||
%setup -q -n unittest-mixins-%{version}
|
||||
%autosetup -p1 -n unittest-mixins-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -55,6 +52,7 @@ Helpful mixins for unittest classes.
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/unittest_mixins
|
||||
%{python_sitelib}/unittest_mixins-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user