summaryrefslogtreecommitdiff
path: root/dev-python/wheel
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/wheel')
-rw-r--r--dev-python/wheel/Manifest3
-rw-r--r--dev-python/wheel/files/wheel-0.45.1-test.patch125
-rw-r--r--dev-python/wheel/wheel-0.45.1.ebuild23
3 files changed, 144 insertions, 7 deletions
diff --git a/dev-python/wheel/Manifest b/dev-python/wheel/Manifest
index 7e2aaa8645e8..82ebf7678f33 100644
--- a/dev-python/wheel/Manifest
+++ b/dev-python/wheel/Manifest
@@ -1,3 +1,4 @@
+AUX wheel-0.45.1-test.patch 4449 BLAKE2B 3c5d91cc2c520d1595362e9a66f1f8178954dc4cffd7d39a81d7e564a870935261f7f8c7e843d97856c4663af35e079727cf4e15773d1edc4d76c2f5be6aa81b SHA512 f850de96257ed5b98e4be96fef8866ce27034d7a63f50905934918f20ca25201293485dcf76cb3c88e575cad29f94989d4eefd8b7717e6edf8e5d237c352f42f
DIST wheel-0.45.1.tar.gz 107545 BLAKE2B 13c8d60a2e39ded3d911c9e03915b01bda201f7e8cd6de456484ce6eeb2a990861a01f26e5d9f2ac4ca0ab2b6d0fea9db437d6f82cb39db9b1059c3c53202ec0 SHA512 df45f00e9eaeae2f27f813f31591590c961da2f6bff15bba6fb2a14d529c221f39b29894b8da408fe49cd4b760840a0e05c4baef377ccfacd9983c0bba83d6d8
-EBUILD wheel-0.45.1.ebuild 1125 BLAKE2B ee121a4ad59d77073fec7d5c3f0530fd528cc79ed3553ac643c044dab210e78ab7dff4f44414ac55e07930ce0efd736d550c42d341e41385cbb8b024fe403665 SHA512 aab30bcc302e9749844dacdc84553e848e39cf007d4b82b5e30bf7bcde86cf0d52ebae67bc679af379f45dac678d349b3ff316dab1c68cf3c54d0a0b1937de51
+EBUILD wheel-0.45.1.ebuild 1468 BLAKE2B 6768ed687fbe085f692a445bc3c3bba958afef49d53db35943ce8da1d35d31a17a61de0ab0456fab9109ecbc48c2c30a0979739fb33aa55ba88b41e5f1fca57d SHA512 341fd8563de5a4e8bad478e0a51d5fa83c2041033cbe9e01994c1d17979979aeefbd618eff86dd5aa59825d5ed9f408d25fc3caa01c228915044e1c025136389
MISC metadata.xml 383 BLAKE2B 352e8b44b3c4f7008c6ac73b8d4454602785ea86ad52ba4601b1c598a0da4831ecdf1b36cfbeaaa1635e52a924a3317d6abff9dc1b26d3f77f04c681208265d3 SHA512 a810c2c7bdff95154a907ce2a00ed2ccc63174e0ba7dea21c6faf62624aac12c2f772557f4f26406693b8963d3bfa77b95dc9e4156493ee991d64021ad8f6c44
diff --git a/dev-python/wheel/files/wheel-0.45.1-test.patch b/dev-python/wheel/files/wheel-0.45.1-test.patch
new file mode 100644
index 000000000000..49dba4e2e579
--- /dev/null
+++ b/dev-python/wheel/files/wheel-0.45.1-test.patch
@@ -0,0 +1,125 @@
+From 36877e99122e8df90d4aa41d414999857d6d852d Mon Sep 17 00:00:00 2001
+From: shenxianpeng <xianpeng.shen@gmail.com>
+Date: Sun, 16 Mar 2025 01:35:32 +0800
+Subject: [PATCH] Fixed test failures (#651)
+
+---
+ tests/test_bdist_wheel.py | 4 ++--
+ tests/test_tagopt.py | 18 +++++++++---------
+ tests/testdata/unicode.dist/setup.py | 2 +-
+ 3 files changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py
+index fcb2dfc..21eddd0 100644
+--- a/tests/test_bdist_wheel.py
++++ b/tests/test_bdist_wheel.py
+@@ -79,9 +79,9 @@ def test_no_scripts(wheel_paths):
+
+
+ def test_unicode_record(wheel_paths):
+- path = next(path for path in wheel_paths if "unicode.dist" in path)
++ path = next(path for path in wheel_paths if "unicode_dist" in path)
+ with ZipFile(path) as zf:
+- record = zf.read("unicode.dist-0.1.dist-info/RECORD")
++ record = zf.read("unicode_dist-0.1.dist-info/RECORD")
+
+ assert "åäö_日本語.py".encode() in record
+
+diff --git a/tests/test_tagopt.py b/tests/test_tagopt.py
+index 5335af4..5733e1a 100644
+--- a/tests/test_tagopt.py
++++ b/tests/test_tagopt.py
+@@ -14,7 +14,7 @@ SETUP_PY = """\
+ from setuptools import setup, Extension
+
+ setup(
+- name="Test",
++ name="test",
+ version="1.0",
+ author_email="author@example.com",
+ py_modules=["test"],
+@@ -63,7 +63,7 @@ def test_default_tag(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name == f"Test-1.0-py{sys.version_info[0]}-none-any.whl"
++ assert wheels[0].name == f"test-1.0-py{sys.version_info[0]}-none-any.whl"
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -76,7 +76,7 @@ def test_build_number(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name == f"Test-1.0-1-py{sys.version_info[0]}-none-any.whl"
++ assert wheels[0].name == f"test-1.0-1-py{sys.version_info[0]}-none-any.whl"
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -89,7 +89,7 @@ def test_explicit_tag(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py32-")
++ assert wheels[0].name.startswith("test-1.0-py32-")
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -101,7 +101,7 @@ def test_universal_tag(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py2.py3-")
++ assert wheels[0].name.startswith("test-1.0-py2.py3-")
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -114,7 +114,7 @@ def test_universal_beats_explicit_tag(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py2.py3-")
++ assert wheels[0].name.startswith("test-1.0-py2.py3-")
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -129,7 +129,7 @@ def test_universal_in_setup_cfg(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py2.py3-")
++ assert wheels[0].name.startswith("test-1.0-py2.py3-")
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -144,7 +144,7 @@ def test_pythontag_in_setup_cfg(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py32-")
++ assert wheels[0].name.startswith("test-1.0-py32-")
+ assert wheels[0].suffix == ".whl"
+
+
+@@ -157,7 +157,7 @@ def test_legacy_wheel_section_in_setup_cfg(temp_pkg):
+ assert dist_dir.is_dir()
+ wheels = list(dist_dir.iterdir())
+ assert len(wheels) == 1
+- assert wheels[0].name.startswith("Test-1.0-py2.py3-")
++ assert wheels[0].name.startswith("test-1.0-py2.py3-")
+ assert wheels[0].suffix == ".whl"
+
+
+diff --git a/tests/testdata/unicode.dist/setup.py b/tests/testdata/unicode.dist/setup.py
+index ec66d1e..46ef0a1 100644
+--- a/tests/testdata/unicode.dist/setup.py
++++ b/tests/testdata/unicode.dist/setup.py
+@@ -3,7 +3,7 @@ from __future__ import annotations
+ from setuptools import setup
+
+ setup(
+- name="unicode.dist",
++ name="unicode_dist",
+ version="0.1",
+ description="A testing distribution \N{SNOWMAN}",
+ packages=["unicodedist"],
diff --git a/dev-python/wheel/wheel-0.45.1.ebuild b/dev-python/wheel/wheel-0.45.1.ebuild
index ebf512c733de..7fa0a7ca64be 100644
--- a/dev-python/wheel/wheel-0.45.1.ebuild
+++ b/dev-python/wheel/wheel-0.45.1.ebuild
@@ -5,7 +5,7 @@
EAPI=8
DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{10..13} python3_13t pypy3 pypy3_11 )
+PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1 pypi
@@ -28,14 +28,14 @@ BDEPEND="
)
"
-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() {
+ local PATCHES=(
+ # https://github.com/pypa/wheel/pull/651
+ "${FILESDIR}/${P}-test.patch"
+ )
+
distutils-r1_src_prepare
# unbundle packaging
@@ -46,6 +46,17 @@ src_prepare() {
}
python_test() {
+ local EPYTEST_DESELECT=(
+ # fails if any setuptools plugin imported the module first
+ tests/test_bdist_wheel.py::test_deprecated_import
+
+ # broken by setuptools license changes
+ # upstream removed the tests already
+ tests/test_bdist_wheel.py::test_licenses_default
+ tests/test_bdist_wheel.py::test_licenses_deprecated
+ tests/test_bdist_wheel.py::test_licenses_override
+ )
+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}