summaryrefslogtreecommitdiff
path: root/dev-python/nox
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-11 04:04:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-11 04:04:15 +0100
commit61af1efe96cf1037982d2fc90af0749b5ec5a0c6 (patch)
treefd4966f3b19ef9b18ed5024d7e2f48ef73eb2fee /dev-python/nox
parent3aae425b3c39d02e2dc917db0fae8c225c158ca1 (diff)
gentoo auto-resync : 11:10:2024 - 04:04:14
Diffstat (limited to 'dev-python/nox')
-rw-r--r--dev-python/nox/Manifest2
-rw-r--r--dev-python/nox/nox-2024.10.09.ebuild69
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/nox/Manifest b/dev-python/nox/Manifest
index 3d0a10830610..74867676a6d6 100644
--- a/dev-python/nox/Manifest
+++ b/dev-python/nox/Manifest
@@ -1,3 +1,5 @@
DIST nox-2024.04.15.gh.tar.gz 4001096 BLAKE2B 22a332afe499811be23876760e33be60dac200b686aa19fb7fe7b92315e2681f874a4c175419e3b4dc9eb709bb98821a99d3a7bf2d7dfa756894e5d1265e46e7 SHA512 99143b4c372e40c5b436ef786e72582eae3182513e9763cb76eb123dcb4d16de8b0585a21119c3513fe9aae4bb6d9d19b16f3129a42f3addf2878e6e7f044ebb
+DIST nox-2024.10.09.gh.tar.gz 4003528 BLAKE2B 51bf42870eac462fdb87e897c225c8262703ccc222d5c463e45d91acf08e4211153f60f72450e3fb964d4ca386501bfa88559e8cff38d55aa2f22310a17d7911 SHA512 51d1f70ba94d01abd10ba3a12896facd13a7a2881496221b6fa9d0a43ff947303b0cc975a29169a3d9e0174277e23e0bc4b1137b2774c1abffa23a48c9d69a11
EBUILD nox-2024.04.15.ebuild 1495 BLAKE2B 24c9c77c3b38584033f0d81ef80aedfcb4cded1a7403e45aa428e6498eb3ba642f2f88c477a2075552927a2f9550b83739dc1c9d69e57cac75fd8d8498cf962a SHA512 7b2e3668b97c3723b9a4189c9782d5c145ef580edf4fc2a73c098b20f70b7a4ece5a925b7fa2c0289f5a035fe9d3de910e1783b952a7ec7d99b06ca2f4bb4ce3
+EBUILD nox-2024.10.09.ebuild 1552 BLAKE2B 60cd8860f57ac0c590aea46ef983a36ae6850148956f0e3328fe3f8877b31328da3b591304c7c65807e93ac71611f7cc3f0241519463250cc91164d730cd7f26 SHA512 4f16f2c8c2d79e00c6e1548968359e8cc3e4032483370f9103e7fab4d2bd3af5b947a37bf9fbf68bd6aba281141ea302d9fe7b9b619fedffb0ef4568b635181b
MISC metadata.xml 382 BLAKE2B 52bcdba99198ee70c06bcb2d118ae3d92f3072ad7df91433670b6ba14ca76489dac5b275780d11b1052e19a1c03d5021f42ba75c3d5e236f1e028c54f19129c2 SHA512 9fb9741a9920cc7537180b07f2715e40b058c5fd18b74e030c0cc598a46dc5a72b227982a11e39fc09dfe200b3cff0a4c150436709c86cb6e44508e412d364b7
diff --git a/dev-python/nox/nox-2024.10.09.ebuild b/dev-python/nox/nox-2024.10.09.ebuild
new file mode 100644
index 000000000000..49b36144860b
--- /dev/null
+++ b/dev-python/nox/nox-2024.10.09.ebuild
@@ -0,0 +1,69 @@
+# 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..13} )
+
+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}]
+ $(python_gen_cond_dep '
+ >=dev-python/tomli-1[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+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]'
+ # Internet
+ tests/test_virtualenv.py::test_uv_install
+ )
+
+ 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
+}