commit: 7e0350d7f6e009d531696fc0a7ed9784d66eba7b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 21 04:51:13 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 05:19:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e0350d7
dev-python/propcache: Bump to 0.3.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/propcache/Manifest | 1 +
dev-python/propcache/propcache-0.3.0.ebuild | 54 +++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/dev-python/propcache/Manifest b/dev-python/propcache/Manifest
index 3a353380fe69..55b7789ac9ad 100644
--- a/dev-python/propcache/Manifest
+++ b/dev-python/propcache/Manifest
@@ -1,2 +1,3 @@
DIST propcache-0.2.0.tar.gz 40951 BLAKE2B
f3e6aed19e6dfd21c02e769a3fa3c5bb0042f0b46d3dbe71ac06d52a49cfc86c62770ed8589fed58872016b5f50905610de50e707051871b9c30930e262d9d0c
SHA512
f99838627652ab13919d7f516530a91565a737fc411d728cad1492ce0ed44f25b0cefbdb6fa49b2ef516e7fee120e7c49686b6853691c5cd02f5f7db9a15d998
DIST propcache-0.2.1.tar.gz 41735 BLAKE2B
9353846b481449f732751ce1bf419bf1d171b3e8fa5b4755637bab063677bfe8845da48c2cfc979936cd1af2ef559b6eb82368f9b9616b3b90a955f0b5bbeed7
SHA512
ce54baa27a9f4cec14d6db139721cb1af920e585153f541b6a192a22d805766b7a0248514fed9889d7073a611d05896fee6da1df526f2314206eca48942b860d
+DIST propcache-0.3.0.tar.gz 42722 BLAKE2B
2687c2f03464b0e81c1d3e93a0b8a11364e4b03f5614de44ea89ca401867531079c1456cc97831f9c8e885dbacca8c9dbeb30e0a31b121a2aaa3666b0397ddf0
SHA512
258e2e9e6fff5c3af62d21d0afc43026e87b8c94009db9534f8beff6d81873ab05ea626c36e43ab1ee16dea1b18dde2ec732b78b93cac82cb9c1d0438e544b42
diff --git a/dev-python/propcache/propcache-0.3.0.ebuild
b/dev-python/propcache/propcache-0.3.0.ebuild
new file mode 100644
index 000000000000..f9aebdde55ee
--- /dev/null
+++ b/dev-python/propcache/propcache-0.3.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Yet another URL library"
+HOMEPAGE="
+ https://github.com/aio-libs/propcache/
+ https://pypi.org/project/propcache/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv
~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+BDEPEND="
+ native-extensions? (
+ dev-python/cython[${PYTHON_USEDEP}]
+ )
+ dev-python/expandvars[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_compile() {
+ local -x PROPCACHE_NO_EXTENSIONS=0
+ if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then
+ PROPCACHE_NO_EXTENSIONS=1
+ fi
+ distutils-r1_python_compile
+}
+
+python_test() {
+ local EPYTEST_IGNORE=(
+ tests/test_benchmarks.py
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local opts=()
+ if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then
+ opts+=( --no-c-extensions )
+ fi
+
+ rm -rf propcache || die
+ epytest -o addopts= "${opts[@]}"
+}