Tomáš Chvátal 2019-08-15 08:35:16 +00:00 committed by Git OBS Bridge
parent 585d4a79ce
commit 41760e8993

View File

@ -21,12 +21,11 @@
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%define skip_python2 1
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-packaging
Name: python-packaging%{psuffix}
Version: 19.1
Release: 0
Summary: Core utilities for Python packages
@ -42,8 +41,6 @@ Patch3: 0004-Fix-test_macos_version_detection-failure-on-32-bit-L.patch
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# https://github.com/pypa/packaging/issues/91
Requires: python-attrs
Requires: python-pyparsing >= 2.0.2
Requires: python-six
BuildArch: noarch
@ -75,7 +72,7 @@ test -d packaging.egg-info
%if %{with test}
%check
%python_exec %{_bindir}/py.test
%pytest
%endif # %%{with_test}
%if !%{with test}