pkgsrc/net/py-gevent/Makefile

45 lines
1.6 KiB
Makefile
Raw Normal View History

py-gevent: updated to 1.4.0 1.4.0: - Build with Cython 0.29 in '3str' mode. - Test with PyPy 6.0 on Windows. - Add support for application-wide callbacks when Greenlet objects are started. - Fix consuming a single ready object using next(gevent.iwait(objs)). Previously such a construction would hang because iter was not called. - Make gevent.iwait return an iterator that can now also be used as a context manager. If you'll only be consuming part of the iterator, use it in a with block to avoid leaking resources. - Fix semaphores to immediately notify links if they are ready and rawlink() is called. This behaves like Event and AsyncEvent. Note that the order in which semaphore links are called is not specified. - Improve safety of handling exceptions during interpreter shutdown. - Remove the deprecated ability to specify GEVENT_RESOLVER and other importable settings as a path/to/a/package.module.item. This had race conditions and didn't work with complicated resolver implementations. Place the required package or module on sys.path first. - Reduce the chances that using the blocking monitor functionality could result in apparently random SystemError: Objects/tupleobject.c: bad argument to internal function. - Refactored the gevent test runner and test suite to make them more reusable. In particular, the tests are now run with python -m gevent.tests. - Make a monkey-patched socket.getaddrinfo return socket module enums instead of plain integers for the socket type and address family on Python 3. - Make gevent's pywsgi server set the non-standard environment value wsgi.input_terminated to True. - Make gevent.util.assert_switches produce more informative messages when the assertion fails. - Python 2: If a gevent.socket was closed asynchronously (in a different greenlet or a hub callback), AttributeError could result if the socket was already in use. Now the correct socket.error should be raised. - Fix :meth:gevent.threadpool.ThreadPool.join raising a UserWarning when using the libuv backend. - Fix FileObjectPosix.seek raising OSError when it should have been IOError on Python 2. - Upgrade libuv from 1.23.2 to 1.24.0.
2019-02-19 13:26:13 +01:00
# $NetBSD: Makefile,v 1.14 2019/02/19 12:26:13 adam Exp $
py-gevent: updated to 1.4.0 1.4.0: - Build with Cython 0.29 in '3str' mode. - Test with PyPy 6.0 on Windows. - Add support for application-wide callbacks when Greenlet objects are started. - Fix consuming a single ready object using next(gevent.iwait(objs)). Previously such a construction would hang because iter was not called. - Make gevent.iwait return an iterator that can now also be used as a context manager. If you'll only be consuming part of the iterator, use it in a with block to avoid leaking resources. - Fix semaphores to immediately notify links if they are ready and rawlink() is called. This behaves like Event and AsyncEvent. Note that the order in which semaphore links are called is not specified. - Improve safety of handling exceptions during interpreter shutdown. - Remove the deprecated ability to specify GEVENT_RESOLVER and other importable settings as a path/to/a/package.module.item. This had race conditions and didn't work with complicated resolver implementations. Place the required package or module on sys.path first. - Reduce the chances that using the blocking monitor functionality could result in apparently random SystemError: Objects/tupleobject.c: bad argument to internal function. - Refactored the gevent test runner and test suite to make them more reusable. In particular, the tests are now run with python -m gevent.tests. - Make a monkey-patched socket.getaddrinfo return socket module enums instead of plain integers for the socket type and address family on Python 3. - Make gevent's pywsgi server set the non-standard environment value wsgi.input_terminated to True. - Make gevent.util.assert_switches produce more informative messages when the assertion fails. - Python 2: If a gevent.socket was closed asynchronously (in a different greenlet or a hub callback), AttributeError could result if the socket was already in use. Now the correct socket.error should be raised. - Fix :meth:gevent.threadpool.ThreadPool.join raising a UserWarning when using the libuv backend. - Fix FileObjectPosix.seek raising OSError when it should have been IOError on Python 2. - Upgrade libuv from 1.23.2 to 1.24.0.
2019-02-19 13:26:13 +01:00
DISTNAME= gevent-1.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gevent/}
MAINTAINER= kamel.derouiche@gmail.com
HOMEPAGE= http://www.gevent.org/
COMMENT= Python-gevent a coroutine-based Python networking library
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-cffi>=1.11.5:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-greenlet>=0.4.14:../../devel/py-greenlet
TEST_DEPENDS+= ${PYPKGPREFIX}-ZopeEvent-[0-9]*:../../devel/py-ZopeEvent
TEST_DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface
TEST_DEPENDS+= ${PYPKGPREFIX}-objgraph-[0-9]*:../../graphics/py-objgraph
TEST_DEPENDS+= ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
TEST_DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
TEST_DEPENDS+= ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
.endif
1.2.2: - Testing on Python 3.5 now uses Python 3.5.3 due to SSL changes. See :issue:`943`. - Linux CI has been updated from Ubuntu 12.04 to Ubuntu 14.04 since the former has reached EOL. - Linux CI now tests on PyPy2 5.7.1, updated from PyPy2 5.6.0. - Linux CI now tests on PyPy3 3.5-5.7.1-beta, updated from PyPy3 3.3-5.5-alpha. - Python 2 sockets are compatible with the ``SOCK_CLOEXEC`` flag found on Linux. They no longer pass the socket type or protocol to ``getaddrinfo`` when ``connect`` is called. Reported in :issue:`944` by Bernie Hackett. - Replace ``optparse`` module with ``argparse``. See :issue:`947`. - Update to version 1.3.1 of ``tblib`` to fix :issue:`954`, reported by ml31415. - Fix the name of the ``type`` parameter to :func:`gevent.socket.getaddrinfo` to be correct on Python 3. This would cause callers using keyword arguments to raise a :exc:`TypeError`. Reported in :issue:`960` by js6626069. Likewise, correct the argument names for ``fromfd`` and ``socketpair`` on Python 2, although they cannot be called with keyword arguments under CPython. .. note:: The ``gethost*`` functions take different argument names under CPython and PyPy. gevent follows the CPython convention, although these functions cannot be called with keyword arguments on CPython. - The previously-singleton exception objects ``FileObjectClosed`` and ``cancel_wait_ex`` were converted to classes. On Python 3, an exception object is stateful, including references to its context and possibly traceback, which could lead to objects remaining alive longer than intended. - Make sure that ``python -m gevent.monkey <script>`` runs code in the global scope, not the scope of the ``main`` function.
2017-07-14 12:19:36 +02:00
MAKE_ENV+= CARES_EMBED=0 LIBEV_EMBED=0
USE_LANGUAGES= c c++
# Explicitly disable inotify on SunOS, assumes Linux statfs.
MAKE_ENV.SunOS+= ac_cv_header_sys_inotify_h=no
2018-10-22 17:33:44 +02:00
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
BUILDLINK_TRANSFORM.SunOS+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600
.endif
.include "../../devel/py-cython/buildlink3.mk"
1.2.2: - Testing on Python 3.5 now uses Python 3.5.3 due to SSL changes. See :issue:`943`. - Linux CI has been updated from Ubuntu 12.04 to Ubuntu 14.04 since the former has reached EOL. - Linux CI now tests on PyPy2 5.7.1, updated from PyPy2 5.6.0. - Linux CI now tests on PyPy3 3.5-5.7.1-beta, updated from PyPy3 3.3-5.5-alpha. - Python 2 sockets are compatible with the ``SOCK_CLOEXEC`` flag found on Linux. They no longer pass the socket type or protocol to ``getaddrinfo`` when ``connect`` is called. Reported in :issue:`944` by Bernie Hackett. - Replace ``optparse`` module with ``argparse``. See :issue:`947`. - Update to version 1.3.1 of ``tblib`` to fix :issue:`954`, reported by ml31415. - Fix the name of the ``type`` parameter to :func:`gevent.socket.getaddrinfo` to be correct on Python 3. This would cause callers using keyword arguments to raise a :exc:`TypeError`. Reported in :issue:`960` by js6626069. Likewise, correct the argument names for ``fromfd`` and ``socketpair`` on Python 2, although they cannot be called with keyword arguments under CPython. .. note:: The ``gethost*`` functions take different argument names under CPython and PyPy. gevent follows the CPython convention, although these functions cannot be called with keyword arguments on CPython. - The previously-singleton exception objects ``FileObjectClosed`` and ``cancel_wait_ex`` were converted to classes. On Python 3, an exception object is stateful, including references to its context and possibly traceback, which could lead to objects remaining alive longer than intended. - Make sure that ``python -m gevent.monkey <script>`` runs code in the global scope, not the scope of the ``main`` function.
2017-07-14 12:19:36 +02:00
.include "../../devel/libev/buildlink3.mk"
.include "../../lang/python/egg.mk"
1.2.2: - Testing on Python 3.5 now uses Python 3.5.3 due to SSL changes. See :issue:`943`. - Linux CI has been updated from Ubuntu 12.04 to Ubuntu 14.04 since the former has reached EOL. - Linux CI now tests on PyPy2 5.7.1, updated from PyPy2 5.6.0. - Linux CI now tests on PyPy3 3.5-5.7.1-beta, updated from PyPy3 3.3-5.5-alpha. - Python 2 sockets are compatible with the ``SOCK_CLOEXEC`` flag found on Linux. They no longer pass the socket type or protocol to ``getaddrinfo`` when ``connect`` is called. Reported in :issue:`944` by Bernie Hackett. - Replace ``optparse`` module with ``argparse``. See :issue:`947`. - Update to version 1.3.1 of ``tblib`` to fix :issue:`954`, reported by ml31415. - Fix the name of the ``type`` parameter to :func:`gevent.socket.getaddrinfo` to be correct on Python 3. This would cause callers using keyword arguments to raise a :exc:`TypeError`. Reported in :issue:`960` by js6626069. Likewise, correct the argument names for ``fromfd`` and ``socketpair`` on Python 2, although they cannot be called with keyword arguments under CPython. .. note:: The ``gethost*`` functions take different argument names under CPython and PyPy. gevent follows the CPython convention, although these functions cannot be called with keyword arguments on CPython. - The previously-singleton exception objects ``FileObjectClosed`` and ``cancel_wait_ex`` were converted to classes. On Python 3, an exception object is stateful, including references to its context and possibly traceback, which could lead to objects remaining alive longer than intended. - Make sure that ``python -m gevent.monkey <script>`` runs code in the global scope, not the scope of the ``main`` function.
2017-07-14 12:19:36 +02:00
.include "../../net/libcares/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"