From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/argparse-manpage/, dev-python/argparse-manpage/files/
Date: Tue, 7 Sep 2021 12:17:25 +0000 (UTC) [thread overview]
Message-ID: <1631017034.763be25dcbe872d8fc44b4850cd5aee011b84b1d.arthurzam@gentoo> (raw)
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):
next reply other threads:[~2021-09-07 12:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 12:17 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-27 18:13 [gentoo-commits] repo/gentoo:master commit in: dev-python/argparse-manpage/, dev-python/argparse-manpage/files/ Patrick McLean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1631017034.763be25dcbe872d8fc44b4850cd5aee011b84b1d.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox