commit: 177b7b46f24e03cd4183c54160774c1f88522fe0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 10:16:25 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 10:24:07 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177b7b46
dev-python/click: Remove python2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../{click-6.7-r1.ebuild => click-6.7-r2.ebuild} | 24 +++-------------------
.../{click-7.1.2.ebuild => click-7.1.2-r1.ebuild} | 2 +-
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/dev-python/click/click-6.7-r1.ebuild
b/dev-python/click/click-6.7-r2.ebuild
similarity index 60%
rename from dev-python/click/click-6.7-r1.ebuild
rename to dev-python/click/click-6.7-r2.ebuild
index 4da283791c9..d74a3ed19c0 100644
--- a/dev-python/click/click-6.7-r1.ebuild
+++ b/dev-python/click/click-6.7-r2.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
+PYTHON_COMPAT=( python3_{6,7} pypy3 )
inherit distutils-r1
@@ -14,15 +14,12 @@ HOMEPAGE="https://palletsprojects.com/p/click/
https://pypi.org/project/click/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390
sparc x86"
-IUSE="doc examples test"
+IUSE="examples test"
RESTRICT="!test? ( test )"
-REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
-
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
PATCHES=(
# From upstream, can be removed in next release.
@@ -31,26 +28,11 @@ PATCHES=(
"${FILESDIR}/${PN}-6.7-support-sphinx-1.7.patch"
)
-pkg_setup() {
- use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
-}
-
-python_prepare_all() {
- # Prevent un-needed d'loading
- sed -e "s/, 'sphinx.ext.intersphinx'//" -i docs/conf.py || die
- distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
- use doc && emake -C docs html
-}
-
python_test() {
emake test
}
python_install_all() {
- use doc && local HTML_DOCS=( docs/_build/html/. )
use examples && dodoc -r examples
distutils-r1_python_install_all
}
diff --git a/dev-python/click/click-7.1.2.ebuild
b/dev-python/click/click-7.1.2-r1.ebuild
similarity index 93%
rename from dev-python/click/click-7.1.2.ebuild
rename to dev-python/click/click-7.1.2-r1.ebuild
index 803bc15a989..9b40761fda0 100644
--- a/dev-python/click/click-7.1.2.ebuild
+++ b/dev-python/click/click-7.1.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
inherit distutils-r1