commit: 21e2354539be81aae407d55ab3c8dc5fda77ca06 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 14 17:23:20 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 14 17:25:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21e23545
dev-python/reflink: Bump to 0.2.2 Closes: https://bugs.gentoo.org/921692 Closes: https://bugs.gentoo.org/909962 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/reflink/Manifest | 1 + dev-python/reflink/reflink-0.2.2.ebuild | 55 +++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dev-python/reflink/Manifest b/dev-python/reflink/Manifest index 962a554aedba..6cd6407aa062 100644 --- a/dev-python/reflink/Manifest +++ b/dev-python/reflink/Manifest @@ -1 +1,2 @@ DIST reflink-0.2.1.tar.gz 14638 BLAKE2B a6449ebb27619ead9ff8452df6c48f3617e5f06eb347fbbe14ab00b9a43c01de8e101466288ac6fb73602165d4d4e9315f941c2f28dffe245ed2c39a10a61cf1 SHA512 5995ed787bda93cb46d99a603110768087420edd72c01d5f3f7f08a3f8f63b4629b900a3c173dd7f3119a892ac19ab1a9c3000ddd83810b22a52dfb5fb892a28 +DIST reflink-0.2.2.tar.gz 21956 BLAKE2B 48631117b76f09cfc90d60907f77ce772794d306bacd938756bca544251660c13694e862786eb93517555c3fc26e9d39ff4e925ff1bea95d1847f760a2d024d4 SHA512 11874303a4d57ce23a9e25bd54b2d4ca5f95c640c8de3234587c82f03566783f7ce2afc0b63d408964b74f4ec8d7cb8eaefe44eec7a011083deff79e6748d847 diff --git a/dev-python/reflink/reflink-0.2.2.ebuild b/dev-python/reflink/reflink-0.2.2.ebuild new file mode 100644 index 000000000000..83e0653fe4a1 --- /dev/null +++ b/dev-python/reflink/reflink-0.2.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python wrapper around the reflink system calls" +HOMEPAGE=" + https://gitlab.com/rubdos/pyreflink/ + https://pypi.org/project/reflink/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${RDEPEND} + test? ( sys-fs/btrfs-progs ) +" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_src_prepare +} + +src_test() { + rm -rf reflink || die + + if [[ ${EUID} != 0 ]]; then + ewarn "Tests require root permissions (FEATURES=-userpriv)" + elif [[ ! -c /dev/loop-control ]]; then + die "Tests require /dev/loop-control" + else + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + addwrite /dev + distutils-r1_src_test + fi +}
