1 | #!/usr/bin/env python |
||
2 | # -*- coding: utf-8 -*- |
||
3 | from __future__ import absolute_import, with_statement |
||
4 | import os |
||
5 | import sys |
||
6 | |||
7 | try: |
||
8 | import pypandoc |
||
9 | except ImportError: |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
10 | print('Please install pypandoc first, run pip install pypandoc.') |
||
11 | sys.exit() |
||
12 | |||
13 | rst = pypandoc.convert('README.md', 'rst') |
||
14 | with open('README.rst', 'w+') as f: |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
15 | f.write(rst.encode('utf-8')) |
||
16 | os.system("python setup.py release") |
||
17 | os.remove('README.rst') |
||
18 |