14
0
forked from pool/python-wheel
2025-04-14 10:56:13 +00:00
committed by Git OBS Bridge
parent 3a395b2652
commit 78fc0b693c
5 changed files with 133 additions and 20 deletions

View File

@@ -32,19 +32,20 @@
%endif
%{?sle15_python_module_pythons}
Name: python-wheel%{psuffix}
Version: 0.46.0
Version: 0.45.1
Release: 0
Summary: A built-package format for Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pypa/wheel
Source: https://github.com/pypa/wheel/archive/%{version}.tar.gz#/wheel-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/pypa/wheel/pull/651 fix test failures
Patch: tests.patch
# Bootstrap: Don't BuildRequire setuptools or pip here!
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module flit-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
Requires: python-packaging
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
@@ -98,7 +99,8 @@ export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%if %{with test}
export LC_ALL=en_US.utf8
export PYTHONDONTWRITEBYTECODE=1
%pytest
# license tests failing with setuptools 77: https://github.com/pypa/wheel/issues/658
%pytest -k "not (test_licenses_default or test_licenses_deprecated or test_licenses_override)"
%endif
%if !%{with test}