1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-backports_abc
6 VARIANTS= py27 py35 py36
7 SDESC[py35]= Backport of recent additions to the 'colle (PY 35)
8 SDESC[py36]= Backport of recent additions to the 'colle (PY 36)
9 SDESC[py27]= Backport of recent additions to the 'colle (PY 27)
10 HOMEPAGE= https://github.com/cython/backports_abc
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/b/backports_abc
15 DISTFILE[1]= backports_abc-0.5.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY35 PY36
22 OPTIONS_STANDARD= none
23 VOPTS[py35]= PY27=OFF PY35=ON PY36=OFF
24 VOPTS[py36]= PY27=OFF PY35=OFF PY36=ON
25 VOPTS[py27]= PY27=ON PY35=OFF PY36=OFF
27 DISTNAME= backports_abc-0.5
29 LICENSE= CUSTOM1:single
30 LICENSE_NAME= CUSTOM1:"UNKNOWN"
32 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE
36 [PY35].USES_ON= python:py35
38 [PY36].USES_ON= python:py36
40 [PY27].USES_ON= python:py27
42 [FILE:2151:descriptions/desc.single]
49 .. code-block:: python
52 # ABCs live in "collections.abc" in Python >= 3.3
53 from collections.abc import Coroutine, Generator
55 # fall back to import from "backports_abc"
56 from backports_abc import Coroutine, Generator
58 You can also install the ABCs into the stdlib by calling the ``patch()``
61 .. code-block:: python
67 # ABCs live in "collections.abc" in Python >= 3.3
68 from collections.abc import Coroutine, Generator
70 # fall back to import from "collections" in Python <= 3.2
71 from backports_abc import Coroutine, Generator
73 Currently, ``patch()`` provides the following names if missing:
75 * ``collections.abc.Generator``
76 * ``collections.abc.Awaitable``
77 * ``collections.abc.Coroutine``
78 * ``inspect.isawaitable(obj)``
80 All of them are also available directly from the ``backports_abc``
83 In Python 2.x and Python 3.2, it patches the ``collections`` module
84 instead of the ``collections.abc`` module. Any names that are already
85 available when importing this module will not be overwritten.
87 The names that were previously patched by ``patch()`` can be queried
88 through the mapping in ``backports_abc.PATCHED``.
96 * support old-style (mro-missing) classes
101 * direct wheel building support
103 * make all names available at the module level instead of requiring patching
109 * removed patching of ``inspect.iscoroutine()`` as it is not ABC based
115 * require explicit ``backports_abc.patch()`` call to do the patching
116 (avoids side-effects on import and allows future configuration)
118 * provide access to patched names through global ``PATCHED`` dict
120 * add ABC based implementations of inspect.iscoroutine() and
121 inspect.isawaitable()
127 * initial public release
129 * provided ABCs: Generator, Coroutine, Awaitable
134 033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde 9807 backports_abc-0.5.tar.gz