dev-python/wheel: Sync with Gentoo

It's from Gentoo commit df2d0a403a1148b69ba1649f2cc9aa64a7e9ad7d.
This commit is contained in:
Flatcar Buildbot 2024-11-11 07:06:09 +00:00 committed by Krzesimir Nowak
parent 0ea5ac7c32
commit e0920bbe44
2 changed files with 52 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST wheel-0.44.0.tar.gz 100733 BLAKE2B 6beefa0875be52fb2dff2921cb87063bcafdf2e31c43963676fbae8aef4e68ea21675aa715f94052edc9f5e8dbbd5e2afe3abc17f521eb36b24fa628b0522bbe SHA512 f0a1efbf70e8a2eebdf7564932bdfa3892940a3fbfc00f256f61be03a51ff9cc5a55570d1d3f5878670be84ab233483453ce754ea46c508574fcf4ec61d480c8 DIST wheel-0.44.0.tar.gz 100733 BLAKE2B 6beefa0875be52fb2dff2921cb87063bcafdf2e31c43963676fbae8aef4e68ea21675aa715f94052edc9f5e8dbbd5e2afe3abc17f521eb36b24fa628b0522bbe SHA512 f0a1efbf70e8a2eebdf7564932bdfa3892940a3fbfc00f256f61be03a51ff9cc5a55570d1d3f5878670be84ab233483453ce754ea46c508574fcf4ec61d480c8
DIST wheel-0.45.0.tar.gz 107426 BLAKE2B 57cfbe247bbc2f0598a3ee18a1ab4b309e6ec6eb89486391bc7b5baa148736829b2620d05f1c6f75b0743ee1065ccbdc66ce690ee7efcf5f2b58519eb4cc8b25 SHA512 dca95cadde7c551baebde50f66ca79d4205d0a896da34b7f4f103c62fb72f78c0b9e71933564b951ab3878e6bc47d1961a73545bc0ead45e618de33b6b7cb16a

View File

@ -0,0 +1,51 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..13} python3_13t pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="A built-package format for Python"
HOMEPAGE="
https://github.com/pypa/wheel/
https://pypi.org/project/wheel/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/setuptools[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
# fails if any setuptools plugin imported the module first
tests/test_bdist_wheel.py::test_deprecated_import
)
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# unbundle packaging
rm -r src/wheel/vendored || die
find -name '*.py' -exec sed -i \
-e 's:wheel\.vendored\.::' \
-e 's:\.\+vendored\.::' {} + || die
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}