()
| 31 | # Load metadata |
| 32 | |
| 33 | def README(): |
| 34 | with io.open('README.rst', encoding='utf-8') as f: |
| 35 | readme_lines = f.readlines() |
| 36 | |
| 37 | # The .. doctest directive is not supported by PyPA |
| 38 | lines_out = [] |
| 39 | for line in readme_lines: |
| 40 | if line.startswith('.. doctest'): |
| 41 | lines_out.append('.. code-block:: python3\n') |
| 42 | else: |
| 43 | lines_out.append(line) |
| 44 | |
| 45 | return ''.join(lines_out) |
| 46 | README = README() # NOQA |
| 47 | |
| 48 |