summaryrefslogtreecommitdiff
path: root/dev-python/dirty-equals
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-06 16:19:28 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-06 16:19:28 +0000
commit9afce155a599e5f4518f3c7913b6424ac13be12e (patch)
tree60420eafdcf940c0e4555d9aa8e4e9017a646344 /dev-python/dirty-equals
parenteb7aa327b218d640c8bda63ba0fd1ace2bd2d17b (diff)
gentoo auto-resync : 06:11:2023 - 16:19:27
Diffstat (limited to 'dev-python/dirty-equals')
-rw-r--r--dev-python/dirty-equals/Manifest2
-rw-r--r--dev-python/dirty-equals/dirty-equals-0.6.0-r3.ebuild (renamed from dev-python/dirty-equals/dirty-equals-0.6.0-r2.ebuild)22
2 files changed, 21 insertions, 3 deletions
diff --git a/dev-python/dirty-equals/Manifest b/dev-python/dirty-equals/Manifest
index 3957f19b5242..f9d0d27360f5 100644
--- a/dev-python/dirty-equals/Manifest
+++ b/dev-python/dirty-equals/Manifest
@@ -1,3 +1,3 @@
DIST dirty-equals-0.6.0.gh.tar.gz 47114 BLAKE2B 910f09e5f5b2ec62d3b4d50ac23a17ee481875b9ae7303faf9bb610282113941b8a121d39e14e1a63cae0433055e639b1bc2da5c1fc3a9ece4915e34c172f40b SHA512 aff41b31c255294c2d6c3a3170daea56d98da4875f9ffdef96b522db24fbed92edf4618646b3e1b50680ce03fca1b9c2bb591730c397b85143ace846c513ac01
-EBUILD dirty-equals-0.6.0-r2.ebuild 975 BLAKE2B 60545788f783578a7b14632207f976403de58a67667b1562bb4e64da0954c7c026c88dc72582378221f4d64f5259d6c3a136e7c4d9583d8a536e98cc29664f16 SHA512 c9a41f215f3468a0d2c0c50d2516bb0c7e35facf862e7156840e3c69a328b498a30b8ebfa708f0c46e4237e247990c808c1116c9965c2dc53e4e3e4600c3c43b
+EBUILD dirty-equals-0.6.0-r3.ebuild 1438 BLAKE2B d0c8b8dc6046b8ed14d843e31bbe812dad634f9791034f38cc394de9dc9ab5ce055bb6befff895c63ba55caed4d61bfc41c5adfba47ea5c8983bf46fc0a5b9b0 SHA512 37894700273abf784e808e9ee38c4bb348abe72fd8f2f7d1d118577fa1d24a3d04dd271adcb9150ecd853aaf496170e21abccc614d64b654507b1ef361208394
MISC metadata.xml 359 BLAKE2B 120f82faf2460b2528927b708a41b2d105248a57af2f3f11966b102237731f9dab87962069728dd78327757c190790f01646c94c228d0e79bf60fbab82e1ca39 SHA512 fb17ee5e8483cd6c5ce840c2f070601c4506b0d62a8c6a80338e8748e57bfb49ee412faf7b95f21c16e5c5730efb9879d8d66fd4fd1c134ca459af3657994f98
diff --git a/dev-python/dirty-equals/dirty-equals-0.6.0-r2.ebuild b/dev-python/dirty-equals/dirty-equals-0.6.0-r3.ebuild
index 45dacef97239..d11e92a9c462 100644
--- a/dev-python/dirty-equals/dirty-equals-0.6.0-r2.ebuild
+++ b/dev-python/dirty-equals/dirty-equals-0.6.0-r3.ebuild
@@ -24,7 +24,6 @@ SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
RDEPEND="
- <dev-python/pydantic-2[${PYTHON_USEDEP}]
>=dev-python/pytz-2021.3[${PYTHON_USEDEP}]
"
BDEPEND="
@@ -36,12 +35,31 @@ BDEPEND="
distutils_enable_tests pytest
+src_prepare() {
+ # hackaround IsUrl use in global scope (for parametrize)
+ if ! has_version "dev-python/pydantic[${PYTHON_USEDEP}]"; then
+ sed -i -e 's:IsUrl([^)]*):IsUrl:g' tests/test_other.py || die
+ fi
+
+ distutils-r1_src_prepare
+}
+
python_test() {
local EPYTEST_IGNORE=(
# require unpackaged pytest-examples
tests/test_docs.py
)
+ local args=()
+
+ if ! has_version "<dev-python/pydantic-2[${PYTHON_USEDEP}]"; then
+ args+=(
+ # IsUrl is not used in any revdeps, and it's broken
+ # with pydantic-2
+ # https://github.com/samuelcolvin/dirty-equals/issues/72
+ -k "not is_url"
+ )
+ fi
local -x TZ=UTC
- epytest
+ epytest "${args[@]}"
}