mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-24 08:38:07 -07:00
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:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user