commit: 763be25dcbe872d8fc44b4850cd5aee011b84b1d Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Sep 7 12:17:14 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Sep 7 12:17:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763be25d
dev-python/argparse-manpage: patch out six dep Closes: https://bugs.gentoo.org/811969 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../argparse-manpage/argparse-manpage-1.5.ebuild | 4 ++++ .../files/argparse-manpage-1.5-remove-six-dep.patch | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild index f1f23c8c017..749cf578346 100644 --- a/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild +++ b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild @@ -14,4 +14,8 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" +PATCHES=( + "${FILESDIR}/${P}-remove-six-dep.patch" +) + distutils_enable_tests pytest diff --git a/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch b/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch new file mode 100644 index 00000000000..7a5aa777739 --- /dev/null +++ b/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch @@ -0,0 +1,19 @@ +--- a/examples/copr/copr_cli/main.py ++++ b/examples/copr/copr_cli/main.py +@@ -8,15 +8,11 @@ import argparse + import sys + import datetime + import time +-import six + import simplejson + from collections import defaultdict + + import logging +-if six.PY2: +- from urlparse import urlparse +-else: +- from urllib.parse import urlparse ++from urllib.parse import urlparse + + if sys.version_info < (2, 7): + class NullHandler(logging.Handler):
