dev-python/URLObject: Removed boundled six

Closes: https://bugs.gentoo.org/616082
Package-Manager: Portage-2.3.71, Repoman-2.3.16
Signed-off-by: Slawek Lis <slis@gentoo.org>
This commit is contained in:
Slawomir Lis
2019-08-16 07:21:25 +02:00
parent ef87f734ad
commit dfbdeb1883

View File

@@ -19,7 +19,8 @@ KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="test"
RDEPEND=""
RDEPEND="
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
@@ -28,6 +29,13 @@ DEPEND="
S=${WORKDIR}/${GITHUB_P}
python_prepare_all() {
rm "${S}/urlobject/six.py" || die
find "${S}/urlobject" -type f -name \*.py \
-exec sed -e 's/from \.six import/from six import/g' -i "{}" \; || die
distutils-r1_python_prepare_all
}
python_test() {
nosetests -v || die "Tests fail with ${EPYTHON}"
}