From 8d54a2833ccb36965c9373e5f9b99469a07bf5b5 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 20 Feb 2022 16:36:04 +0100 Subject: Improve ebuild for dev-python/etoolkit --- dev-python/etoolkit/Manifest | 2 +- dev-python/etoolkit/etoolkit-1.0.0-r1.ebuild | 41 ++++++++++++++++++++++++++++ dev-python/etoolkit/etoolkit-1.0.0.ebuild | 38 -------------------------- 3 files changed, 42 insertions(+), 39 deletions(-) create mode 100644 dev-python/etoolkit/etoolkit-1.0.0-r1.ebuild delete mode 100644 dev-python/etoolkit/etoolkit-1.0.0.ebuild (limited to 'dev-python/etoolkit') diff --git a/dev-python/etoolkit/Manifest b/dev-python/etoolkit/Manifest index aa550e3..6f95ba9 100644 --- a/dev-python/etoolkit/Manifest +++ b/dev-python/etoolkit/Manifest @@ -1,3 +1,3 @@ DIST etoolkit-1.0.0.tar.gz 37130 BLAKE2B f9b3aeb9f0a34e4f2c6ccd0919314622c3a7a61aacfb8aca692bcb020adb2669be716b6a9f97ebf7b0e84db92203d37d9b8b888168f160396af2824a81a52087 SHA512 90f51a01a1fcf1b9f6a4139c022930c925e6fa2c5b4403110a0e4527f35fa083f47270a769361632689e03fb28f32487623b9e72611f1755e64e299f4c0de1fb -EBUILD etoolkit-1.0.0.ebuild 882 BLAKE2B 9916ba6319f89a0d41f853e4ad32b82bf015e9269d0a88be47930bc694577945d24e72cc0a84b304301b52f6f70f35eae2460201cc5c075ea1e184828c9ce043 SHA512 f6eebe81967a8da3a9b7c72f8b39dd1df6a994256a22365caa38fa6340fa62dd87efda2a541ed3421be73c9015db77adb0f7f7b04600ade09362b563f2226331 +EBUILD etoolkit-1.0.0-r1.ebuild 939 BLAKE2B d9d833fd8d5f786a46c30f44ef3ab35e5a69d6bc758cb9e378270004d7a324d9d74955a9316fefcd55cab2d2f347ed77e8ce6731e0d2421ab41d1d69d7f757b5 SHA512 51e75559aff5207fe327e929512e46bac7cdda8df3cd39da73bba20bc7acb6a08c2861ab27610a63545c1dbb51839cace30cbaca5752a9f2dd709ad115ec779e MISC metadata.xml 400 BLAKE2B ca972e1b3593dba8814075aea91870d3782c2dc72f52925df71087e1901585f45c5fc5bbdf7e95b62fe1e396e0e9caa7e2282414bbd0434362e1984b0a6fad39 SHA512 9dd16ca280c598a6ce48816bf5e6e1b7a11b71e1915c06df0981e12995726fcaeebbe18b8106f793504963202d841ac7cb8c11f6afea77eed71e4b864147e7a4 diff --git a/dev-python/etoolkit/etoolkit-1.0.0-r1.ebuild b/dev-python/etoolkit/etoolkit-1.0.0-r1.ebuild new file mode 100644 index 0000000..4ebb343 --- /dev/null +++ b/dev-python/etoolkit/etoolkit-1.0.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7..10} ) + +inherit distutils-r1 + +DESCRIPTION="A simple toolkit for setting environment variables in a flexible way" +HOMEPAGE="https://github.com/blackm0re/etoolkit" +MY_PN="etoolkit" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" +KEYWORDS="amd64 arm arm64 hppa ia64 ppc ppc64 riscv s390 x86" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/cryptography-3.2.0[${PYTHON_USEDEP}]" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + PYTHONPATH=${S}:${PYTHONPATH} \ + pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all +} diff --git a/dev-python/etoolkit/etoolkit-1.0.0.ebuild b/dev-python/etoolkit/etoolkit-1.0.0.ebuild deleted file mode 100644 index abcd218..0000000 --- a/dev-python/etoolkit/etoolkit-1.0.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="A simple toolkit for setting environment variables in a flexible way" -HOMEPAGE="https://github.com/blackm0re/etoolkit" -MY_PN="etoolkit" -MY_P="${MY_PN}-${PV}" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" -KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux" -S="${WORKDIR}/${MY_P}" - -LICENSE="BSD" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - dev-python/pytest[${PYTHON_USEDEP}] - )" - -python_test() { - PYTHONPATH=${S}:${PYTHONPATH} \ - pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}" -} - -python_install_all() { - distutils-r1_python_install_all -} -- cgit v1.3