Codebase list sphinxcontrib-asyncio / af5a67a
Import upstream version 0.3.0+git20201204.1.f17e648 Debian Janitor 2 years ago
13 changed file(s) with 83 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
00 CHANGES
11 =======
2
3
4 0.3.0 (2020-08-19)
5 ------------------
6
7 * Make the plugin compatible with Sphinx 3
8
29
310 0.2.0 (2016-04-15)
411 ------------------
0 Copyright 2020 aio-libs collaboration.
1
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
5
6 http://www.apache.org/licenses/LICENSE-2.0
7
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
0 include LICENSE.txt
0 include LICENSE
11 include CHANGES.rst
22 include README.rst
33 include Makefile
00 Metadata-Version: 1.1
11 Name: sphinxcontrib-asyncio
2 Version: 0.2.0
2 Version: 0.3.0
33 Summary: sphinx extension to support coroutines in markup
44 Home-page: https://github.com/aio-libs/sphinxcontrib-asyncio
55 Author: Andrew Svetlov
1010
1111 Sphinx extension for adding asyncio-specific markups
1212
13 Read docs https://sphinxcontrib-asyncio.readthedocs.io/en/latest/ for more details
14
1315 CHANGES
1416 =======
17
18
19 0.3.0 (2020-08-19)
20 ------------------
21
22 * Make the plugin compatible with Sphinx 3
23
1524
1625 0.2.0 (2016-04-15)
1726 ------------------
2534 * Initial release
2635 Platform: UNKNOWN
2736 Classifier: Environment :: Plugins
37 Classifier: Framework :: AsyncIO
2838 Classifier: Framework :: Sphinx :: Extension
2939 Classifier: Intended Audience :: Developers
3040 Classifier: License :: OSI Approved :: Apache Software License
3141 Classifier: Programming Language :: Python
32 Classifier: Programming Language :: Python :: 2.7
3342 Classifier: Programming Language :: Python :: 3
34 Classifier: Programming Language :: Python :: 3.3
35 Classifier: Programming Language :: Python :: 3.4
3643 Classifier: Programming Language :: Python :: 3.5
44 Classifier: Programming Language :: Python :: 3.6
45 Classifier: Programming Language :: Python :: 3.7
46 Classifier: Programming Language :: Python :: 3.8
47 Classifier: Programming Language :: Python :: 3.9
3748 Classifier: Topic :: Documentation :: Sphinx
3849 Classifier: Topic :: Software Development :: Documentation
11 =====================
22
33 Sphinx extension for adding asyncio-specific markups
4
5 Read docs https://sphinxcontrib-asyncio.readthedocs.io/en/latest/ for more details
(New empty file)
1414 Installation
1515 ------------
1616
17 1. Install from PyPI::
17 1. Install from PyPI:
18
19 .. code-block:: shell
1820
1921 $ pip install sphinxcontrib-asyncio
2022
21 2. Enable ``sphinxcontrib-asyncio`` extension in your ``conf.py``::
23 2. Enable ``sphinxcontrib-asyncio`` extension in your ``conf.py``:
24
25 .. code-block:: python
2226
2327 extensions = ['sphinxcontrib.asyncio']
2428
3236 Simple coroutine function.
3337
3438 .. cofunction:: coro(a, b)
39 :noindex:
3540
3641 Simple coroutine function.
3742
4449 Coroutine method.
4550
4651 .. class:: A
52 :noindex:
4753
4854 .. comethod:: meth(self, param)
4955
7783
7884 .. cofunction:: iter_vals(arg)
7985 :async-for:
86 :noindex:
8087
8188 A function the returns asynchronous generator.
8289
100107 .. cofunction:: get(url)
101108 :async-with:
102109 :coroutine:
110 :noindex:
103111
104112 A function can be used in ``async with`` and ``await`` context.
105113
114122 This is classmethod
115123
116124 .. class:: A
125 :noindex:
117126
118127 .. comethod:: f(cls, arg)
119128 :classmethod:
146155 Will yield next documentation:
147156
148157 .. autocofunction:: coro
158 :noindex:
149159
150160 .. autoclass:: MyClass
151161 :members:
162 :noindex:
152163
153164 You can set directive options by adding it to `autocofunction` and
154165 `autocomethod` directives::
160171 .. autocofunction:: coro
161172 :async-for:
162173 :coroutine:
174 :noindex:
163175
164176 You can also force `coroutine` prefix on not-coroutine method by overriding it
165177 as `autocomethod` directive::
173185 .. autoclass:: MyClass
174186 :members:
175187 :exclude-members: my_func
188 :noindex:
176189
177190 .. autocomethod:: my_func()
178191
33 [egg_info]
44 tag_build =
55 tag_date = 0
6 tag_svn_revision = 0
76
1212 raise RuntimeError('Unable to determine version.')
1313
1414
15 install_requires = ['sphinx']
15 install_requires = ['sphinx>=3.0']
1616
1717
1818 def read(f):
3939 long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'))),
4040 classifiers=[
4141 'Environment :: Plugins',
42 'Framework :: AsyncIO',
4243 'Framework :: Sphinx :: Extension',
4344 'Intended Audience :: Developers',
4445 'License :: OSI Approved :: Apache Software License',
4546 'Programming Language :: Python',
46 'Programming Language :: Python :: 2.7',
4747 'Programming Language :: Python :: 3',
48 'Programming Language :: Python :: 3.3',
49 'Programming Language :: Python :: 3.4',
5048 'Programming Language :: Python :: 3.5',
49 'Programming Language :: Python :: 3.6',
50 'Programming Language :: Python :: 3.7',
51 'Programming Language :: Python :: 3.8',
52 'Programming Language :: Python :: 3.9',
5153 'Topic :: Documentation :: Sphinx',
5254 'Topic :: Software Development :: Documentation'],
5355 author='Andrew Svetlov',
00 from docutils.parsers.rst import directives
1 from sphinx.domains.python import PyModulelevel, PyClassmember
1 from sphinx.domains.python import PyFunction, PyMethod
22 from sphinx.ext.autodoc import FunctionDocumenter, MethodDocumenter, \
33 bool_option
44 try:
88 """Return True if func is a decorated coroutine function."""
99 return getattr(func, '_is_coroutine', False)
1010
11 __version__ = '0.2.0'
11 __version__ = '0.3.0'
1212
1313
1414 def merge_dicts(*dcts):
4444 return ret
4545
4646
47 class PyCoroutineFunction(PyCoroutineMixin, PyModulelevel):
47 class PyCoroutineFunction(PyCoroutineMixin, PyFunction):
4848 option_spec = merge_dicts(PyCoroutineMixin.option_spec,
49 PyModulelevel.option_spec)
49 PyFunction.option_spec)
5050
5151 def run(self):
5252 self.name = 'py:function'
5353 return super(PyCoroutineFunction, self).run()
5454
5555
56 class PyCoroutineMethod(PyCoroutineMixin, PyClassmember):
56 class PyCoroutineMethod(PyCoroutineMixin, PyMethod):
5757 option_spec = merge_dicts(PyCoroutineMixin.option_spec,
58 PyClassmember.option_spec,
58 PyMethod.option_spec,
5959 {'staticmethod': directives.flag,
6060 'classmethod': directives.flag})
6161
00 Metadata-Version: 1.1
11 Name: sphinxcontrib-asyncio
2 Version: 0.2.0
2 Version: 0.3.0
33 Summary: sphinx extension to support coroutines in markup
44 Home-page: https://github.com/aio-libs/sphinxcontrib-asyncio
55 Author: Andrew Svetlov
1010
1111 Sphinx extension for adding asyncio-specific markups
1212
13 Read docs https://sphinxcontrib-asyncio.readthedocs.io/en/latest/ for more details
14
1315 CHANGES
1416 =======
17
18
19 0.3.0 (2020-08-19)
20 ------------------
21
22 * Make the plugin compatible with Sphinx 3
23
1524
1625 0.2.0 (2016-04-15)
1726 ------------------
2534 * Initial release
2635 Platform: UNKNOWN
2736 Classifier: Environment :: Plugins
37 Classifier: Framework :: AsyncIO
2838 Classifier: Framework :: Sphinx :: Extension
2939 Classifier: Intended Audience :: Developers
3040 Classifier: License :: OSI Approved :: Apache Software License
3141 Classifier: Programming Language :: Python
32 Classifier: Programming Language :: Python :: 2.7
3342 Classifier: Programming Language :: Python :: 3
34 Classifier: Programming Language :: Python :: 3.3
35 Classifier: Programming Language :: Python :: 3.4
3643 Classifier: Programming Language :: Python :: 3.5
44 Classifier: Programming Language :: Python :: 3.6
45 Classifier: Programming Language :: Python :: 3.7
46 Classifier: Programming Language :: Python :: 3.8
47 Classifier: Programming Language :: Python :: 3.9
3748 Classifier: Topic :: Documentation :: Sphinx
3849 Classifier: Topic :: Software Development :: Documentation
00 CHANGES.rst
1 LICENSE
12 MANIFEST.in
23 Makefile
34 README.rst
89 docs/conf.py
910 docs/index.rst
1011 docs/make.bat
12 docs/_static/.gitignore
1113 sphinxcontrib/__init__.py
1214 sphinxcontrib/asyncio.py
1315 sphinxcontrib_asyncio.egg-info/PKG-INFO