diff --git a/dev-python/stevedore/Manifest b/dev-python/stevedore/Manifest index 87b9880938c36..23e64ad0a38f2 100644 --- a/dev-python/stevedore/Manifest +++ b/dev-python/stevedore/Manifest @@ -1 +1,2 @@ DIST stevedore-5.4.0.tar.gz 513899 BLAKE2B 6fda4d24f51ef9dd25db8adf28832ff30308415feaac0416c4fa93d3cdc185ed99ee82b8d6f93c8fbf4ef747827dff4f95494dccd4c89bc926727a1964380570 SHA512 b377f79c3d467fc910b6a85bb1788f85982f6e0df561b5187ac06652301ca357d274048e1538b0d641d1159c1de973edfa2146561946a965ac86015a88b7cce0 +DIST stevedore-5.4.1.tar.gz 513858 BLAKE2B 9aa55e0234a7a472432cfbdca7bbe235eca2e16b54b2b07401a8f0ffe441806b0c6677cc0d198c2dd76579c620b016c7f414e6adb3662453e1dc9c38f052be1b SHA512 cd2f23b7c4b48eb82b4a389a49d890d4cdeee9383f3a633a8c9f7e5c1edacbcb522af72240807dff204ecd2df1ee34cb3f5633d373b0ae95ed5e9fa0f3a7684d diff --git a/dev-python/stevedore/stevedore-5.4.1.ebuild b/dev-python/stevedore/stevedore-5.4.1.ebuild new file mode 100644 index 0000000000000..b48c9999045de --- /dev/null +++ b/dev-python/stevedore/stevedore-5.4.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Manage dynamic plugins for Python applications" +HOMEPAGE=" + https://opendev.org/openstack/stevedore/ + https://github.com/openstack/stevedore/ + https://pypi.org/project/stevedore/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + test? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx 'doc/source' \ + '>=dev-python/openstackdocstheme-1.18.1' \ + '>=dev-python/reno-2.5.0' \ + '>=dev-python/sphinx-2.0.0' + +python_prepare_all() { + # Delete spurious data in requirements.txt + sed -e '/^pbr/d' -i requirements.txt || die + + # Also known problem, inside venv + sed -i -e 's:test_disable_caching_file:_&:' \ + stevedore/tests/test_cache.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_IGNORE=() + if ! has_version "dev-python/sphinx[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + stevedore/tests/test_sphinxext.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}