From 56a597689e7509193b0924a635d2022f21b1a3e4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 4 Mar 2024 11:43:04 +0000 Subject: gentoo auto-resync : 04:03:2024 - 11:43:04 --- dev-python/nox/nox-2024.03.02.ebuild | 64 ++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 dev-python/nox/nox-2024.03.02.ebuild (limited to 'dev-python/nox/nox-2024.03.02.ebuild') diff --git a/dev-python/nox/nox-2024.03.02.ebuild b/dev-python/nox/nox-2024.03.02.ebuild new file mode 100644 index 000000000000..a6a145b1df10 --- /dev/null +++ b/dev-python/nox/nox-2024.03.02.ebuild @@ -0,0 +1,64 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Flexible test automation for Python" +HOMEPAGE=" + https://github.com/wntrblm/nox/ + https://pypi.org/project/nox/ +" +SRC_URI=" + https://github.com/wntrblm/nox/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + >=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}] + >=dev-python/colorlog-2.6.1[${PYTHON_USEDEP}] + >=dev-python/packaging-20.9[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.14.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/py[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # remove upper bounds from dependencies + sed -i -e 's:<[0-9.]*,::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO: conda? + 'tests/test_sessions.py::TestSessionRunner::test__create_venv_options[nox.virtualenv.CondaEnv.create-conda-CondaEnv]' + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # hardcoded CPython assumption + tests/test_tox_to_nox.py::test_skipinstall + tests/test_tox_to_nox.py::test_trivial + tests/test_tox_to_nox.py::test_usedevelop + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o tmp_path_retention_policy=all +} -- cgit v1.2.3