summaryrefslogtreecommitdiff
path: root/dev-python/propcache
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-03 02:07:18 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-03 02:07:18 +0000
commit7f4b508a2da3c371c7e770aa6ab83b0c4237cd1c (patch)
tree81d78cbf05f5daa7d57418d32f44b0149a56a765 /dev-python/propcache
parentd4f65848c7ecabb56e2f93889cbd20078cd347f7 (diff)
gentoo auto-resync : 03:12:2024 - 02:07:18
Diffstat (limited to 'dev-python/propcache')
-rw-r--r--dev-python/propcache/Manifest2
-rw-r--r--dev-python/propcache/propcache-0.2.1.ebuild54
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/propcache/Manifest b/dev-python/propcache/Manifest
index 355840adf20b..04e6b3d27cd8 100644
--- a/dev-python/propcache/Manifest
+++ b/dev-python/propcache/Manifest
@@ -1,3 +1,5 @@
DIST propcache-0.2.0.tar.gz 40951 BLAKE2B f3e6aed19e6dfd21c02e769a3fa3c5bb0042f0b46d3dbe71ac06d52a49cfc86c62770ed8589fed58872016b5f50905610de50e707051871b9c30930e262d9d0c SHA512 f99838627652ab13919d7f516530a91565a737fc411d728cad1492ce0ed44f25b0cefbdb6fa49b2ef516e7fee120e7c49686b6853691c5cd02f5f7db9a15d998
+DIST propcache-0.2.1.tar.gz 41735 BLAKE2B 9353846b481449f732751ce1bf419bf1d171b3e8fa5b4755637bab063677bfe8845da48c2cfc979936cd1af2ef559b6eb82368f9b9616b3b90a955f0b5bbeed7 SHA512 ce54baa27a9f4cec14d6db139721cb1af920e585153f541b6a192a22d805766b7a0248514fed9889d7073a611d05896fee6da1df526f2314206eca48942b860d
EBUILD propcache-0.2.0.ebuild 1109 BLAKE2B 81a7b53537be9f49f69d39a698bbb0fc45819f4887acca4e695374ffd733dd3bd957f3ca5df03850013da65529d8fb22d50d1162ef9705d08c879ac71b891c95 SHA512 bde0328711f52513bf0183ec3fd0d6c5e3fbc0d0d11e33b7406bf4a0cd5f25cb9595c118e16f25bfa3c22608e3698f6e057d323999bc3bc885d5bc1f08ba883c
+EBUILD propcache-0.2.1.ebuild 1172 BLAKE2B 00cea14c77e806e204579da80af1fc783419bf8b2b4b04a5a4845feacec14b6eec80e7ba7a709ffe974d4e317b78669b9e9333a40adc06a742810443a9dc94c2 SHA512 fb8de853b7ad2117b3ac7942f87653e10110a6da5ca5c0d58585a0cb32b9259877d5d921a9f0fa6000da5aa08d11663048ecfac033710e39e24b20430eba5d59
MISC metadata.xml 371 BLAKE2B 2aae9561b0b663dbdf1935d4417af8fdba00636b23ec09037bd14d0ab3bdbf6ff4b093a5ca901b50046134b6b4f25d72a09b544ca949663688d9e1c64ae49a4e SHA512 b4e36caa49357be56c1d07d75c29a30dd18c0cdf1e7e6edfd347748a3edc084743b2163f60e94b837477ffc6320e6140a721769a42d224d3963cc91a18d492bf
diff --git a/dev-python/propcache/propcache-0.2.1.ebuild b/dev-python/propcache/propcache-0.2.1.ebuild
new file mode 100644
index 000000000000..cfbbf5c36a53
--- /dev/null
+++ b/dev-python/propcache/propcache-0.2.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 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 )
+
+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[@]}"
+}