# -*- coding: ascii; tab-width: 4 -*- Info2: << Package: greenlet-py%type_pkg[python] # Be careful upgrading since its ABI sensitive with gevent Version: 3.1.1 Revision: 1 Type: python (3.8 3.9 3.10) Description: Lightweight in-process concurrent programming DescDetail: << The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". A "greenlet", on the other hand, is a still more primitive notion of micro-thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python's own generators is that our generators can call nested functions and the nested functions can yield values too. Additionally, you don't need a "yield" keyword. See the example in tests/test_generator.py. << Maintainer: Daniel Johnson License: BSD Homepage: https://pypi.org/project/greenlet/ Source: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%v.tar.gz Source-Checksum: SHA256(4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467) Depends: python%type_pkg[python] BuildDepends: << setuptools-tng-py%type_pkg[python] << GCC: 4.0 CompileScript: << %p/bin/python%type_raw[python] setup.py build_ext -i << InfoTest: << TestDepends: << objgraph-py%type_pkg[python], psutil-py%type_pkg[python] << TestScript: << PYTHONPATH=src GREENLET_TEST_CPP=1 %p/bin/python%type_raw[python] -B -m unittest discover -v src || exit 2 << << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root=%d << DocFiles: benchmarks docs/greenlet.rst AUTHORS LICENSE* README.rst DescPackaging: << * Tests don't work when built as PEP517 wheel, so use setup.py directly cf https://github.com/python-greenlet/greenlet/issues/289 << <<