OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=51
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user