14
0
forked from pool/python-wheel

- Update to version 0.46.0

* Dropped support for Python 3.8
  * Removed the bdist_wheel setuptools command implementation and entry point.
    The wheel.bdist_wheel module is now just an alias to setuptools.command.bdist_wheel,
    emitting a deprecation warning on import.
  * Removed vendored packaging in favor of a run-time dependency on it.
  * Made the wheel.metadata module private (with a deprecation warning if it's imported).
  * Made the wheel.cli package private (no deprecation warning).
  * Fixed an exception when calling the convert command with an empty description field.
- Drop tests.patch and unskip other fixed tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wheel?expand=0&rev=86
This commit is contained in:
2025-04-11 07:13:09 +00:00
committed by Git OBS Bridge
parent e17558968f
commit 3a395b2652
5 changed files with 20 additions and 133 deletions

View File

@@ -32,20 +32,19 @@
%endif
%{?sle15_python_module_pythons}
Name: python-wheel%{psuffix}
Version: 0.45.1
Version: 0.46.0
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
@@ -99,8 +98,7 @@ export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%if %{with test}
export LC_ALL=en_US.utf8
export PYTHONDONTWRITEBYTECODE=1
# 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)"
%pytest
%endif
%if !%{with test}