diff options
author | Louis Sautier <sbraz@gentoo.org> | 2019-07-02 14:55:15 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2019-07-02 15:31:04 +0200 |
commit | c4edda0d524dfca20de6f9546f3806de9109fdae (patch) | |
tree | fa4a4ac5a045369c66c061804d6ff5c13615dc9c /dev-python/namespace-jaraco | |
parent | dev-python/jaraco-*: depend on old pkg_resources-style namespace pkg (diff) | |
download | gentoo-c4edda0d524dfca20de6f9546f3806de9109fdae.tar.gz gentoo-c4edda0d524dfca20de6f9546f3806de9109fdae.tar.bz2 gentoo-c4edda0d524dfca20de6f9546f3806de9109fdae.zip |
dev-python/namespace-jaraco: bump to v2 for pkgutil-style packages
All dev-python/jaraco-* packages are switching to pkgutil-style
packages.
Drop blocker on older jaraco-logging versions that are not in the tree
any more.
Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/namespace-jaraco')
-rw-r--r-- | dev-python/namespace-jaraco/namespace-jaraco-2.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/namespace-jaraco/namespace-jaraco-2.ebuild b/dev-python/namespace-jaraco/namespace-jaraco-2.ebuild new file mode 100644 index 000000000000..eae5d12efb45 --- /dev/null +++ b/dev-python/namespace-jaraco/namespace-jaraco-2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} ) +inherit python-r1 + +DESCRIPTION="Namespace package declaration for jaraco" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages" +SRC_URI="" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" +IUSE="" + +RDEPEND=" + !<dev-python/jaraco-packaging-5.1 + ${PYTHON_DEPS} +" +DEPEND="${PYTHON_DEPS}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_unpack() { + mkdir -p "${S}"/jaraco || die + cat > "${S}"/jaraco/__init__.py <<-EOF || die + __path__ = __import__('pkgutil').extend_path(__path__, __name__) + EOF +} + +src_install() { + python_foreach_impl python_domodule jaraco +} |