diff options
author | Tom Gillespie <tgbugs@gmail.com> | 2020-06-27 13:09:12 -0700 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-06 08:22:51 +0200 |
commit | 86abeeb2136bf8961a234de44bb2bab7e6d2d06a (patch) | |
tree | a2d9008477baf797676b15137c2e29e5cb29d1b3 /dev-python/gevent | |
parent | dev-python/reportlab: Bump to 3.6.0 (diff) | |
download | gentoo-86abeeb2136bf8961a234de44bb2bab7e6d2d06a.tar.gz gentoo-86abeeb2136bf8961a234de44bb2bab7e6d2d06a.tar.bz2 gentoo-86abeeb2136bf8961a234de44bb2bab7e6d2d06a.zip |
dev-python/gevent: add IUSE=events
The gevent.events module has runtime dependencies on zope.event
and zope.interface. This commit adds an events use flag which sets
dev-python/zope-event and dev-python/zope-inferface as dependencies.
This addition mimics the upstream behavior in gevent setup.py.
Signed-off-by: Tom Gillespie <tgbugs@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/gevent')
-rw-r--r-- | dev-python/gevent/gevent-21.1.2.ebuild | 12 | ||||
-rw-r--r-- | dev-python/gevent/metadata.xml | 3 |
2 files changed, 11 insertions, 4 deletions
diff --git a/dev-python/gevent/gevent-21.1.2.ebuild b/dev-python/gevent/gevent-21.1.2.ebuild index 61c3d717cbf5..1568ccd6675d 100644 --- a/dev-python/gevent/gevent-21.1.2.ebuild +++ b/dev-python/gevent/gevent-21.1.2.ebuild @@ -16,20 +16,24 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="doc examples test" +IUSE="doc events examples test" RESTRICT="!test? ( test )" RDEPEND=" >=dev-libs/libev-4.31:= dev-libs/libuv:= >=net-dns/c-ares-1.12:= - dev-python/zope-event[${PYTHON_USEDEP}] - dev-python/zope-interface[${PYTHON_USEDEP}] - virtual/python-greenlet[${PYTHON_USEDEP}]" + virtual/python-greenlet[${PYTHON_USEDEP}] + events? ( + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + )" DEPEND="${RDEPEND} test? ( dev-python/psutil[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] )" distutils_enable_sphinx doc diff --git a/dev-python/gevent/metadata.xml b/dev-python/gevent/metadata.xml index e10bdae3530f..7faa4e9a24e2 100644 --- a/dev-python/gevent/metadata.xml +++ b/dev-python/gevent/metadata.xml @@ -5,6 +5,9 @@ <email>python@gentoo.org</email> <name>Python</name> </maintainer> + <use> + <flag name="events">Enables the gevent events system which is required by libraries that use gevent monkey patching. This adds <pkg>dev-python/zope-event</pkg> and <pkg>dev-python/zope-interface</pkg> as runtime dependencies.</flag> + </use> <upstream> <remote-id type="github">gevent/gevent</remote-id> <remote-id type="pypi">gevent</remote-id> |