diff options
author | Sam James <sam@gentoo.org> | 2022-01-28 05:02:00 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-28 05:16:48 +0000 |
commit | 96c23cb9b008aafdd5428c1c979f84fb6000a5e7 (patch) | |
tree | 3434f4b5a86a4f4ac17402b3bc92d1f663760b05 /dev-util/ropper | |
parent | dev-util/unicorn: minor cleanups (diff) | |
download | gentoo-96c23cb9b008aafdd5428c1c979f84fb6000a5e7.tar.gz gentoo-96c23cb9b008aafdd5428c1c979f84fb6000a5e7.tar.bz2 gentoo-96c23cb9b008aafdd5428c1c979f84fb6000a5e7.zip |
dev-util/ropper: convert to PEP517; run tests
See: https://github.com/gentoo/gentoo/pull/23806
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/ropper')
-rw-r--r-- | dev-util/ropper/ropper-1.13.6.ebuild | 15 | ||||
-rw-r--r-- | dev-util/ropper/ropper-9999.ebuild | 15 |
2 files changed, 22 insertions, 8 deletions
diff --git a/dev-util/ropper/ropper-1.13.6.ebuild b/dev-util/ropper/ropper-1.13.6.ebuild index edf020a8ceb0..6bd50c5a169b 100644 --- a/dev-util/ropper/ropper-1.13.6.ebuild +++ b/dev-util/ropper/ropper-1.13.6.ebuild @@ -3,8 +3,9 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..10} ) inherit distutils-r1 @@ -16,7 +17,7 @@ if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/sashs/Ropper" else SRC_URI="https://github.com/sashs/Ropper/archive/v${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/Ropper-${PV}" + S="${WORKDIR}"/Ropper-${PV} KEYWORDS="~amd64 ~x86" fi @@ -24,7 +25,6 @@ fi LICENSE="BSD" SLOT="0" IUSE="z3" -RESTRICT="test" RDEPEND="${PYTHON_DEPS} $(python_gen_cond_dep ' @@ -36,4 +36,11 @@ RDEPEND="${PYTHON_DEPS} " DEPEND="${RDEPEND}" -distutils_enable_tests setup.py +distutils_enable_tests unittest + +src_prepare() { + # Remove test which dies on trying to import itself (stub loader, not a real test) + rm test.py || die + + distutils-r1_src_prepare +} diff --git a/dev-util/ropper/ropper-9999.ebuild b/dev-util/ropper/ropper-9999.ebuild index edf020a8ceb0..6bd50c5a169b 100644 --- a/dev-util/ropper/ropper-9999.ebuild +++ b/dev-util/ropper/ropper-9999.ebuild @@ -3,8 +3,9 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..10} ) inherit distutils-r1 @@ -16,7 +17,7 @@ if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/sashs/Ropper" else SRC_URI="https://github.com/sashs/Ropper/archive/v${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/Ropper-${PV}" + S="${WORKDIR}"/Ropper-${PV} KEYWORDS="~amd64 ~x86" fi @@ -24,7 +25,6 @@ fi LICENSE="BSD" SLOT="0" IUSE="z3" -RESTRICT="test" RDEPEND="${PYTHON_DEPS} $(python_gen_cond_dep ' @@ -36,4 +36,11 @@ RDEPEND="${PYTHON_DEPS} " DEPEND="${RDEPEND}" -distutils_enable_tests setup.py +distutils_enable_tests unittest + +src_prepare() { + # Remove test which dies on trying to import itself (stub loader, not a real test) + rm test.py || die + + distutils-r1_src_prepare +} |