1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-backports_abc
6 VARIANTS= py27 py36 py37
7 SDESC[py36]= Containers Base Classes backported fixes (PY 36)
8 SDESC[py37]= Containers Base Classes backported fixes (PY 37)
9 SDESC[py27]= Containers Base Classes backported fixes (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 PY36 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py36]= PY27=OFF PY36=ON PY37=OFF
24 VOPTS[py37]= PY27=OFF PY36=OFF PY37=ON
25 VOPTS[py27]= PY27=ON PY36=OFF PY37=OFF
27 DISTNAME= backports_abc-0.5
31 [PY36].USES_ON= python:py36
33 [PY37].USES_ON= python:py37
35 [PY27].USES_ON= python:py27
37 [FILE:2151:descriptions/desc.single]
44 .. code-block:: python
47 # ABCs live in "collections.abc" in Python >= 3.3
48 from collections.abc import Coroutine, Generator
50 # fall back to import from "backports_abc"
51 from backports_abc import Coroutine, Generator
53 You can also install the ABCs into the stdlib by calling the ``patch()``
56 .. code-block:: python
62 # ABCs live in "collections.abc" in Python >= 3.3
63 from collections.abc import Coroutine, Generator
65 # fall back to import from "collections" in Python <= 3.2
66 from backports_abc import Coroutine, Generator
68 Currently, ``patch()`` provides the following names if missing:
70 * ``collections.abc.Generator``
71 * ``collections.abc.Awaitable``
72 * ``collections.abc.Coroutine``
73 * ``inspect.isawaitable(obj)``
75 All of them are also available directly from the ``backports_abc``
78 In Python 2.x and Python 3.2, it patches the ``collections`` module
79 instead of the ``collections.abc`` module. Any names that are already
80 available when importing this module will not be overwritten.
82 The names that were previously patched by ``patch()`` can be queried
83 through the mapping in ``backports_abc.PATCHED``.
91 * support old-style (mro-missing) classes
96 * direct wheel building support
98 * make all names available at the module level instead of requiring
105 * removed patching of ``inspect.iscoroutine()`` as it is not ABC based
111 * require explicit ``backports_abc.patch()`` call to do the patching
112 (avoids side-effects on import and allows future configuration)
114 * provide access to patched names through global ``PATCHED`` dict
116 * add ABC based implementations of inspect.iscoroutine() and
117 inspect.isawaitable()
123 * initial public release
125 * provided ABCs: Generator, Coroutine, Awaitable
130 033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde 9807 backports_abc-0.5.tar.gz