diff options
| author | Crucible <crucible@localhost> | 2026-09-30 19:07:39 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-09-30 19:07:39 -0500 |
| commit | 9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784 (patch) | |
| tree | 5f38413a80b9e584e9f6c579b013e8abd6ae2702 /dev-python | |
| parent | 9c4e6e8fed8999df35813182c3b9577d541394e0 (diff) | |
| download | srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.gz srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.xz srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.zip | |
Publish srcux candidate 0000000528-20260930-190542
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/coverage/coverage-7.16.2.ebuild | 17 | ||||
| -rw-r--r-- | dev-python/esp-pylib/esp-pylib-1.1.4.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/packaging/packaging-26.3.ebuild | 12 | ||||
| -rw-r--r-- | dev-python/psutil/psutil-7.2.2.ebuild | 7 | ||||
| -rw-r--r-- | dev-python/pygments/pygments-2.21.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pysequoia/pysequoia-0.1.35.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/pytest-mock/pytest-mock-3.16.0.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/python-dateutil/python-dateutil-2.9.0_p0.ebuild | 7 | ||||
| -rw-r--r-- | dev-python/tomlkit/tomlkit-0.15.1.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild | 17 |
11 files changed, 88 insertions, 35 deletions
diff --git a/dev-python/coverage/coverage-7.16.2.ebuild b/dev-python/coverage/coverage-7.16.2.ebuild index bb83b5e46e2e..e06d7b973915 100644 --- a/dev-python/coverage/coverage-7.16.2.ebuild +++ b/dev-python/coverage/coverage-7.16.2.ebuild @@ -6,6 +6,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYPI_VERIFY_REPO=https://github.com/coveragepy/coveragepy +PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14,15}t ) PYTHON_COMPAT=( python3_{13..14} ) PYTHON_REQ_USE="threads(+),sqlite(+)" @@ -26,10 +27,13 @@ IUSE="+native-extensions" BDEPEND=" test? ( >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/hypothesis[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") ) " -EPYTEST_PLUGINS=( hypothesis pytest-{rerunfailures,xdist} ) +EPYTEST_PLUGINS=( pytest-{rerunfailures,xdist} ) EPYTEST_XDIST=1 distutils_enable_tests pytest @@ -59,6 +63,11 @@ test_tracer() { } python_test() { + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" ) + if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + EPYTEST_PLUGINS+=( hypothesis ) + fi + local EPYTEST_DESELECT=( # broken because of pytest plugins explicity loaded tests/test_debug.py::ShortStackTest::test_short_stack{,_skip} @@ -99,8 +108,10 @@ python_test() { test_tracer pytrace "${xdist_args[@]}" - # available since Python 3.12 - test_tracer sysmon "${xdist_args[@]}" + # available since CPython 3.12 + if [[ ${EPYTHON} == python* ]]; then + test_tracer sysmon "${xdist_args[@]}" + fi if [[ -n ${c_ext} ]]; then rm coverage/*.so || die diff --git a/dev-python/esp-pylib/esp-pylib-1.1.4.ebuild b/dev-python/esp-pylib/esp-pylib-1.1.4.ebuild index accb1d1b01e5..a8f4cf3d450a 100644 --- a/dev-python/esp-pylib/esp-pylib-1.1.4.ebuild +++ b/dev-python/esp-pylib/esp-pylib-1.1.4.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~riscv" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv" RDEPEND=" dev-python/click[${PYTHON_USEDEP}] diff --git a/dev-python/packaging/packaging-26.3.ebuild b/dev-python/packaging/packaging-26.3.ebuild index c5adb200d150..e9fdbf3eac47 100644 --- a/dev-python/packaging/packaging-26.3.ebuild +++ b/dev-python/packaging/packaging-26.3.ebuild @@ -6,6 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=flit-core PYPI_VERIFY_REPO=https://github.com/pypa/packaging +PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14..15}t ) PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 pypi @@ -27,9 +28,11 @@ RDEPEND=" " DEPEND=" test? ( - dev-python/hypothesis[${PYTHON_USEDEP}] dev-python/pretend[${PYTHON_USEDEP}] dev-python/tomli-w[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/hypothesis[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") ) " @@ -37,5 +40,12 @@ EPYTEST_PLUGINS=() distutils_enable_tests pytest python_test() { + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" ) + local EPYTEST_IGNORE=() + if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + EPYTEST_PLUGINS+=( hypothesis ) + else + EPYTEST_IGNORE+=( tests/property/ ) + fi epytest --capture=no } diff --git a/dev-python/psutil/psutil-7.2.2.ebuild b/dev-python/psutil/psutil-7.2.2.ebuild index f936dd5864b4..f8b3a3041407 100644 --- a/dev-python/psutil/psutil-7.2.2.ebuild +++ b/dev-python/psutil/psutil-7.2.2.ebuild @@ -85,6 +85,13 @@ python_test() { ) case ${EPYTHON} in + pypy3.12) + EPYTEST_DESELECT+=( + tests/test_process.py::TestProcess::test_cmdline + tests/test_process.py::TestProcess::test_long_cmdline + tests/test_process.py::TestProcess::test_long_name + ) + ;; python3.15*) EPYTEST_DESELECT+=( tests/test_process.py::TestProcess::test_rlimit_infinity_value diff --git a/dev-python/pygments/pygments-2.21.0.ebuild b/dev-python/pygments/pygments-2.21.0.ebuild index 7573fa423620..2468206720a8 100644 --- a/dev-python/pygments/pygments-2.21.0.ebuild +++ b/dev-python/pygments/pygments-2.21.0.ebuild @@ -23,8 +23,8 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 BDEPEND=" test? ( - dev-python/lxml[${PYTHON_USEDEP}] $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_USEDEP}] dev-python/pillow[${PYTHON_USEDEP}] ' "${PYTHON_FULLY_TESTED[@]}") dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}] diff --git a/dev-python/pysequoia/pysequoia-0.1.35.ebuild b/dev-python/pysequoia/pysequoia-0.1.35.ebuild index b22816e8cfee..2c7776b29e8d 100644 --- a/dev-python/pysequoia/pysequoia-0.1.35.ebuild +++ b/dev-python/pysequoia/pysequoia-0.1.35.ebuild @@ -33,7 +33,7 @@ LICENSE+=" Unicode-3.0 ZLIB " SLOT="0" -KEYWORDS="amd64" +KEYWORDS="amd64 ~arm64" QA_FLAGS_IGNORED="usr/lib/python.*/site-packages/pysequoia/.*.so" diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild index 9c7d19d1db4b..9f39414cd24c 100644 --- a/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild +++ b/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild @@ -5,6 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-asyncio +PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14..15}t ) PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 pypi @@ -29,9 +30,14 @@ RDEPEND=" " BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + $(python_gen_cond_dep ' + dev-python/hypothesis[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") + ) " -EPYTEST_PLUGINS=( hypothesis "${PN}" ) +EPYTEST_PLUGINS=( "${PN}" ) EPYTEST_PLUGIN_LOAD_VIA_ENV=1 EPYTEST_XDIST=1 distutils_enable_tests pytest @@ -54,3 +60,14 @@ src_prepare() { # remove pins sed -i -e 's:,<[0-9.]*::' pyproject.toml || die } + +python_test() { + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" ) + local EPYTEST_IGNORE=() + if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + EPYTEST_PLUGINS+=( hypothesis ) + else + EPYTEST_IGNORE+=( tests/hypothesis/ ) + fi + epytest +} diff --git a/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild index c595b138683c..b714251e427e 100644 --- a/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild @@ -5,7 +5,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-mock -PYTHON_TESTED=( python3_{13..14} ) PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 pypi @@ -19,29 +18,19 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/pytest-6.2.5[${PYTHON_USEDEP}] " BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - $(python_gen_cond_dep ' - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - ' "${PYTHON_TESTED[@]}") - ) " -python_test() { - if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then - einfo "Skipping tests on ${EPYTHON}" - return - fi +EPYTEST_PLUGINS=( "${PN}" pytest-asyncio ) +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +distutils_enable_tests pytest - local EPYTEST_PLUGINS=( "${PN}" pytest-asyncio ) - local EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +python_test() { local EPYTEST_DESELECT=() if has_version dev-python/mock; then diff --git a/dev-python/python-dateutil/python-dateutil-2.9.0_p0.ebuild b/dev-python/python-dateutil/python-dateutil-2.9.0_p0.ebuild index e592f30a6a2a..5a274dbad741 100644 --- a/dev-python/python-dateutil/python-dateutil-2.9.0_p0.ebuild +++ b/dev-python/python-dateutil/python-dateutil-2.9.0_p0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_FULLY_TESTED=( python3_{11..14} python3_{13..14}t ) +PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14..15}t ) PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 pypi @@ -52,7 +52,10 @@ python_prepare_all() { python_test() { local EPYTEST_IGNORE=() - if ! has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" ) + if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + EPYTEST_PLUGINS+=( hypothesis ) + else EPYTEST_IGNORE+=( tests/property ) diff --git a/dev-python/tomlkit/tomlkit-0.15.1.ebuild b/dev-python/tomlkit/tomlkit-0.15.1.ebuild index 884813564de0..fe2c2ad94cea 100644 --- a/dev-python/tomlkit/tomlkit-0.15.1.ebuild +++ b/dev-python/tomlkit/tomlkit-0.15.1.ebuild @@ -18,12 +18,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -BDEPEND=" - test? ( - dev-python/pyyaml[${PYTHON_USEDEP}] - ) -" - EPYTEST_PLUGINS=() distutils_enable_tests pytest @@ -46,3 +40,16 @@ src_configure() { # which are older than what zip can handle... find -exec touch {} + || die } + +python_test() { + local EPYTEST_DESELECT=() + + if [[ ${EPYTHON} == pypy* ]]; then + EPYTEST_DESELECT+=( + # https://github.com/python-poetry/tomlkit/issues/619 + tests/test_items.py::test_times_behave_like_times + ) + fi + + epytest +} diff --git a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild index cf41cad446c1..0d9f8bb884b6 100644 --- a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild +++ b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{13..14} ) PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 @@ -21,16 +22,24 @@ SRC_URI=" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" BDEPEND=" test? ( - dev-python/hypothesis[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") ) " -EPYTEST_PLUGINS=() -distutils_enable_tests pytest - python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping testing on ${EPYTHON}" + return + fi + + local EPYTEST_PLUGINS=( hypothesis ) epytest test.py } |
