dev-python/rfc3987: add python3.6 and pypy to PYTHON_COMPAT
authorZac Medico <zmedico@gentoo.org>
Wed, 3 May 2017 20:13:16 +0000 (13:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 May 2017 20:26:55 +0000 (13:26 -0700)
Since dev-python/regex does not compile with pypy3, and the
regex module is not a hard dep, use python_gen_cond_dep to
omit the dev-python/regex dependency for pypy3.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-python/rfc3987/rfc3987-1.3.7.ebuild

index e21e5e9dbdae204a47f3975b7022e4b9f330617e..c55109efc5e0002edd74f5e014cec18fa4506ff5 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
 
 inherit distutils-r1
 
@@ -16,7 +16,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
 IUSE=""
 
-RDEPEND="dev-python/regex[${PYTHON_USEDEP}]"
+RDEPEND="$(python_gen_cond_dep \
+       'dev-python/regex[${PYTHON_USEDEP}]' python2_7 'python3*' pypy)"
 DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
 "