dev-python/lazy-object-proxy: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-04 18:54:03 +02:00
parent d9c3df4991
commit 1a1cc8643f
4 changed files with 0 additions and 120 deletions

View File

@@ -1,2 +1 @@
DIST lazy_object_proxy-1.11.0.tar.gz 44736 BLAKE2B e620131e34a6862af34aa0bda58f201b0db4a9b94785a4f2f1b27900ce93cce9539c52ac6f8488c94672b7fe3e09965467b568fd596ee4e32b6a88d4763af632 SHA512 1c0fe6a5c8fc549e706109235fc380e45d0ff706d7f0915780f93d1ce19be800bb68983baca9959a80679d10d95e24823ffbd66062f64065364a764737d691d7
DIST lazy_object_proxy-1.12.0.tar.gz 43681 BLAKE2B 6c3985743ad33cc13ac2a50b36bd00f24c2f72ed715313594edaa2123905c088d5479fc15d6449c275856a080e8066c0ff5c6b01e41920d113dc0fff01a91fa0 SHA512 af1baef392793d5bcfe8cb94237516a66f63784faad1f70b46f5fed697579ea659afa0843e48b33b85dfaa2c45b6e549768695479235df56981398439b046f45

View File

@@ -1,29 +0,0 @@
From 25decee2bd5a68d290dd3349aa9a72ce41b398b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Fri, 15 Dec 2023 17:45:42 +0100
Subject: [PATCH] Support SETUPPY_FORCE_PURE in tests
Support testing without the C extension if SETUPPY_FORCE_PURE is set.
This makes the test suite behavior consistent with setup.py behavior.
---
tests/conftest.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 11d0379..2ba3209 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+import os
import sys
import pytest
@@ -19,7 +20,7 @@ class FakeModule:
try:
from lazy_object_proxy.cext import Proxy
except ImportError:
- if PYPY:
+ if PYPY or os.environ.get('SETUPPY_FORCE_PURE'):
pytest.skip(reason='C Extension not available.')
else:
raise

View File

@@ -1,39 +0,0 @@
From daba375a4c424ee114123122e5c1285e3db4d62e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sat, 31 May 2025 10:52:38 +0200
Subject: [PATCH 1/5] Loosen exception regexps for Python 3.14
Python 3.14 changes the exception message for passing wrong types
to `await` to:
TypeError: 'int' object can't be awaited
Loosen the regular expression to accept both the old and the new
exception message.
---
tests/test_async_py3.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_async_py3.py b/tests/test_async_py3.py
index 0d9450b..3fbba18 100644
--- a/tests/test_async_py3.py
+++ b/tests/test_async_py3.py
@@ -498,7 +498,7 @@ def test_await_1(lop):
async def foo():
await 1
- with pytest.raises(TypeError, match='object int can.t.*await'):
+ with pytest.raises(TypeError, match='int.*can.t.*await'):
run_async(lop.Proxy(foo))
@@ -506,7 +506,7 @@ def test_await_2(lop):
async def foo():
await []
- with pytest.raises(TypeError, match='object list can.t.*await'):
+ with pytest.raises(TypeError, match='list.*can.t.*await'):
run_async(lop.Proxy(foo))

View File

@@ -1,51 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="A fast and thorough lazy object proxy"
HOMEPAGE="
https://github.com/ionelmc/python-lazy-object-proxy/
https://pypi.org/project/lazy-object-proxy/
https://python-lazy-object-proxy.readthedocs.io/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
IUSE="+native-extensions"
BDEPEND="
>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
PATCHES=(
# https://github.com/ionelmc/python-lazy-object-proxy/pull/79
"${FILESDIR}/${PN}-1.10.0-pure-tests.patch"
# https://github.com/ionelmc/python-lazy-object-proxy/pull/88
"${FILESDIR}/${P}-py314.patch"
)
python_prepare_all() {
distutils-r1_python_prepare_all
# No need to benchmark
sed \
-e '/benchmark/s:test_:_&:g' \
-e '/pytest.mark.benchmark/d' \
-i tests/test_lazy_object_proxy.py || die
if use native-extensions; then
unset SETUPPY_FORCE_PURE
else
export SETUPPY_FORCE_PURE=1
fi
}