17
0
2021-11-07 11:12:09 +00:00
committed by Git OBS Bridge
parent 4ad81c1617
commit 89e02c0848
3 changed files with 39 additions and 3 deletions

View File

@@ -34,6 +34,8 @@ Summary: Core utilities for Python packages
License: Apache-2.0
URL: https://github.com/pypa/packaging
Source: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
# Restore compatibility with 20.4 for setuptools
Patch1: no-legacyversion-warning.patch
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -61,7 +63,7 @@ Provides: %{mypython}3dist(packaging) = %{version}-%{release}
Core utilities for Python packages
%prep
%setup -q -n packaging-%{version}
%autosetup -p1 -n packaging-%{version}
# sdist must provide a packaging.egg-info, used below in install phase
test -d packaging.egg-info
@@ -70,7 +72,8 @@ test -d packaging.egg-info
%if %{with test}
%check
%pytest
# no-legacyversion-warning.patch causes these to fail
%pytest -k "not (test_legacy_specifier_is_deprecated or test_legacy_version_is_deprecated)"
%endif # %%{with_test}