diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-01-04 18:54:09 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-01-04 18:54:09 +0000 |
| commit | e1e67a5d95d606250a2ca98dec076ecd6e0062d8 (patch) | |
| tree | 90984b16cea88cb9f1b36e111cf808588f9e9a13 /dev-python/pyudev | |
| parent | 92629f2f4536ac235fc005fbfa176526369acbe0 (diff) | |
| download | baldeagleos-repo-e1e67a5d95d606250a2ca98dec076ecd6e0062d8.tar.gz baldeagleos-repo-e1e67a5d95d606250a2ca98dec076ecd6e0062d8.tar.xz baldeagleos-repo-e1e67a5d95d606250a2ca98dec076ecd6e0062d8.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyudev')
| -rw-r--r-- | dev-python/pyudev/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyudev/pyudev-0.24.1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/pyudev/pyudev-0.24.3.ebuild | 13 |
3 files changed, 11 insertions, 55 deletions
diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest index 874c438f922a..c847ea977f96 100644 --- a/dev-python/pyudev/Manifest +++ b/dev-python/pyudev/Manifest @@ -1,2 +1 @@ -DIST pyudev-0.24.1.tar.gz 85963 BLAKE2B 86c6d04691c99671735915564f58b4ef892e45925047487500bc7005343db7145941dde270f4ce9279881bd9bbf203965082d54b34b396febff52f387a1c26ac SHA512 10e32d9a74884000fbf8b86bee60530f6e7b936b990e7ae3b76099ace71834602de404721101c1076ef57365622a9a8f4819d57f58508ced09a21b7d50326886 DIST pyudev-0.24.3.gh.tar.gz 80807 BLAKE2B 8b047c1d44f9bbb9ace782b690e0859eb3cdc2c1a994a398513e7cc2288803f8cfcdc227546de22275d47961f880bd76e0dec244e46abf451534f5648682febe SHA512 9075437f6fdba0fc1921e252c0a49e1a5eeed8c5cf598856a32aa9f9fcb8885dc0727258d2965241b2e044acfdf70561d5aa3f1380b84e013afc7cb8dcbfce2b diff --git a/dev-python/pyudev/pyudev-0.24.1.ebuild b/dev-python/pyudev/pyudev-0.24.1.ebuild deleted file mode 100644 index b080a8f4d81f..000000000000 --- a/dev-python/pyudev/pyudev-0.24.1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Python binding to libudev" -HOMEPAGE="https://pyudev.readthedocs.io/en/latest/ https://github.com/pyudev/pyudev" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86" -IUSE="qt5" - -# Known to fail on test system that aren't exactly the same devices as on CI -RESTRICT="test" - -RDEPEND="virtual/udev" -BDEPEND=" - test? ( - dev-python/docutils[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - ) -" - -DOCS=( CHANGES.rst README.rst ) - -distutils_enable_tests pytest - -python_prepare_all() { - if use test; then - ewarn "If your PORTAGE_TMPDIR is longer in length then '/var/tmp/'," - ewarn "change it to /var/tmp to ensure tests will pass." - fi - - # tests are known to pass then fail on alternate runs - # tests: fix run_path - sed -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \ - -i tests/test_core.py || die - - # disable usage of hypothesis timeouts (too short) - sed -e '/@settings/s/(/(deadline=None,/' -i tests{,/_device_tests}/*.py || die - - distutils-r1_python_prepare_all -} - -pkg_postinst() { - optfeature "PyQt5 bindings" "dev-python/pyqt5" -} diff --git a/dev-python/pyudev/pyudev-0.24.3.ebuild b/dev-python/pyudev/pyudev-0.24.3.ebuild index 974ecec97377..c2303a74b64c 100644 --- a/dev-python/pyudev/pyudev-0.24.3.ebuild +++ b/dev-python/pyudev/pyudev-0.24.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/pyudev/pyudev/archive/refs/tags/v${PV}.tar.gz -> ${P LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86" IUSE="qt5" # Known to fail on test system that aren't exactly the same devices as on CI @@ -72,6 +72,15 @@ python_test() { epytest tests } +src_test() { + local virt=$(systemd-detect-virt 2>/dev/null) + if [[ ${virt} == systemd-nspawn ]] ; then + ewarn "Skipping tests because in systemd-nspawn container" + else + distutils-r1_src_test + fi +} + pkg_postinst() { optfeature "PyQt5 bindings" "dev-python/pyqt5" } |
