14
0
forked from pool/python-wheel

Accepting request 1134665 from home:bnavigator:branches:devel:languages:python

- Update to 0.42.0
  * Allowed removing build tag with wheel tags --build ""
  * Fixed wheel pack and wheel tags writing updated WHEEL fields
    after a blank line, causing other tools to ignore them
  * Fixed wheel pack and wheel tags writing WHEEL with CRLF line
    endings or a mix of CRLF and LF
  * Fixed wheel pack --build-number "" not removing build tag from
    WHEEL (above changes by Benjamin Gilbert)
- Release 0.41.3
  * Updated vendored packaging to 23.2
  * Fixed ABI tag generation for CPython 3.13a1 on Windows (PR by
    Sam Gross)
- Remove pip dependency for easier bootstrap

OBS-URL: https://build.opensuse.org/request/show/1134665
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wheel?expand=0&rev=75
This commit is contained in:
2023-12-27 10:45:42 +00:00
committed by Git OBS Bridge
parent b6ba5b4f06
commit a97fdf1fa9
4 changed files with 34 additions and 7 deletions

View File

@@ -32,16 +32,16 @@
%endif
%{?sle15_python_module_pythons}
Name: python-wheel%{psuffix}
Version: 0.41.2
Version: 0.42.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
# Bootstrap: Don't BuildRequire setuptools or pip here!
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
%if %{with libalternatives}
@@ -74,11 +74,21 @@ final locations) at any later time.
%autosetup -p1 -n wheel-%{version}
%build
%pyproject_wheel
%if !%{with test}
%{python_expand # bootstrap with built-in pip
$python -m venv build/env
build/env/bin/python -m ensurepip
export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%{$python_pyproject_wheel}
}
%endif
%install
%if !%{with test}
%pyproject_install
%{python_expand # use pip bootstrapped above
export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%{$python_pyproject_install}
}
%python_clone -a %{buildroot}%{_bindir}/wheel
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif